[SHARE] Simple RSI BULL/BEAR strategy
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 );
^
  Reply


Messages In This Thread
Werkkrew Stoploss - by susitronix - 02-02-2018, 09:39 PM
Removed post - by susitronix - 02-03-2018, 06:49 PM
@Gryphon Confirmation - by mvangoor - 03-22-2019, 11:59 PM
for 3 months - by ankasem - 02-18-2018, 05:30 PM
RE: [SHARE] Simple RSI BULL/BEAR strategy - by luke77 - 04-04-2018, 07:08 AM

Forum Jump:


Users browsing this thread: