05-09-2018, 03:40 PM
(05-09-2018, 07:40 AM)Cryptos Wrote:Thanks I fixed it all! Works great now.(05-08-2018, 06:20 PM)whoodat Wrote: C:\Users\cr043134\Documents\gekko-develop\gekko-develop\strategies\RSI_BULL_BEAR_ADX.js:39
this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
^
TypeError: Cannot read property 'long' of undefined
You are using a wrong setting for SMA.long, check if you use the correct syntax.
this.settings.SMA.long for toml file:
[SMA]
long: xxx
short: xxx
####
this.settings.SMA.long translates for config file:
SMA: {
long: xx,
short: xx,
},
The settings and TOML files of this strategy changed in the past, maybe you have an old version.