10-14-2018, 01:49 PM
(10-11-2018, 07:33 AM)Rabberzzz Wrote: Is this post still alive?
I give it a try!
I got the same problem that only the ADX strategie doesn't work. I got the following error:
Error: non-error thrown:
ERROR: I do not know the indicator ADX
at Object.onerror (/home/nick/gekko/node_modules/koa/lib/context.js:105:40)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
uncaughtException TypeError: Indicators[type] is not a constructor
at Base.addIndicator (/home/nick/gekko/plugins/tradingAdvisor/baseTradingMethod.js:236:34)
at Base.bound [as addIndicator] (/home/nick/gekko/node_modules/lodash/dist/lodash.js:729:21)
at Base.init (/home/nick/gekko/strategies/RSI_BULL_BEAR_ADX.js:47:8)
at Base.bound [as init] (/home/nick/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Base (/home/nick/gekko/plugins/tradingAdvisor/baseTradingMethod.js:69:8)
at Actor.setupStrategy (/home/nick/gekko/plugins/tradingAdvisor/tradingAdvisor.js:61:19)
at Actor.bound [as setupStrategy] (/home/nick/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Actor (/home/nick/gekko/plugins/tradingAdvisor/tradingAdvisor.js:23:8)
at load (/home/nick/gekko/core/pluginUtil.js:98:22)
at /home/nick/gekko/node_modules/async/dist/async.js:1156:9
And yes I copied the test_adx + adx .js files to gekko/strategies/indicators directory
What can I do more?
I couldn't resolve the uncaughtException TypeError: Indicators[type] is not a constructor issue.
But I re-installed everything from scratch and it does work again.
The only thing I did different was clone the files via CLI and move the files from over there to correct directory's.