04-04-2018, 07:08 AM
I have this error when I launch Gekkoga... Someone knows how can I resolve it? Thank you in advance.
2018-04-04 09:05:06 (INFO): Setting up Gekko in backtest mode
2018-04-04 09:05:06 (INFO):
2018-04-04 09:05:06 (INFO): Setting up:
2018-04-04 09:05:06 (INFO): Trading Advisor
2018-04-04 09:05:06 (INFO): Calculate trading advice
2018-04-04 09:05:06 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
2018-04-04 09:05:06 (INFO): Setting up Gekko in backtest mode
/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39
this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
^
TypeError: Cannot read property 'long' of undefined
at Base.init (/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39:56)
at Base.bound [as init] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Base (/root/gekko/plugins/tradingAdvisor/baseTradingMethod.js:87:8)
at Actor.setupTradingMethod (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:62:17)
at Actor.bound [as setupTradingMethod] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Actor (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:23:8)
at load (/root/gekko/core/pluginUtil.js:95:22)
at /root/gekko/node_modules/async/dist/async.js:1156:9
at replenish (/root/gekko/node_modules/async/dist/async.js:1030:17)
at iterateeCallback (/root/gekko/node_modules/async/dist/async.js:1015:17)
2018-04-04 09:05:06 (INFO):
/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39
this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
^
2018-04-04 09:05:06 (INFO): Setting up Gekko in backtest mode
2018-04-04 09:05:06 (INFO):
2018-04-04 09:05:06 (INFO): Setting up:
2018-04-04 09:05:06 (INFO): Trading Advisor
2018-04-04 09:05:06 (INFO): Calculate trading advice
2018-04-04 09:05:06 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
2018-04-04 09:05:06 (INFO): Setting up Gekko in backtest mode
/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39
this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
^
TypeError: Cannot read property 'long' of undefined
at Base.init (/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39:56)
at Base.bound [as init] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Base (/root/gekko/plugins/tradingAdvisor/baseTradingMethod.js:87:8)
at Actor.setupTradingMethod (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:62:17)
at Actor.bound [as setupTradingMethod] (/root/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Actor (/root/gekko/plugins/tradingAdvisor/tradingAdvisor.js:23:8)
at load (/root/gekko/core/pluginUtil.js:95:22)
at /root/gekko/node_modules/async/dist/async.js:1156:9
at replenish (/root/gekko/node_modules/async/dist/async.js:1030:17)
at iterateeCallback (/root/gekko/node_modules/async/dist/async.js:1015:17)
2018-04-04 09:05:06 (INFO):
/root/gekko/strategies/RSI_BULL_BEAR_ADX.js:39
this.addIndicator('maSlow', 'SMA', this.settings.SMA.long );
^