NNv2 Install

I am trying to get the NNv2 strategy to run but it runs for a while then returns no trades at all.
I run it over 1 years data and it still shows no trades.

I copied the toml into the correct place and the strategies and indicators to their respective places.

These are my settings
threshold_buy_bear= 1.0
threshold_buy_bull= 2.0
threshold_sell_bear= -0.2
threshold_sell_bull= -0.5
NN_SMMA_Length= 4
maFast= 30
maSlow= 200
decay= 0.6
price_buffer_len= 90
stoploss_threshold= 6
waitTime= 200

This is the log error I am getting

uncaughtException TypeError: Indicators[type] is not a constructor
at Base.addIndicator (/opt/gekko/plugins/tradingAdvisor/baseTradingMethod.js:236:34)
at Base.bound [as addIndicator] (/opt/gekko/node_modules/lodash/dist/lodash.js:729:21)
at Base.init (/opt/gekko/strategies/NNv2.js:15:10)
at Base.bound [as init] (/opt/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Base (/opt/gekko/plugins/tradingAdvisor/baseTradingMethod.js:69:8)
at Actor.setupStrategy (/opt/gekko/plugins/tradingAdvisor/tradingAdvisor.js:61:19)
at Actor.bound [as setupStrategy] (/opt/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Actor (/opt/gekko/plugins/tradingAdvisor/tradingAdvisor.js:23:8)
at load (/opt/gekko/core/pluginUtil.js:98:22)
at /opt/gekko/node_modules/async/dist/async.js:1156:9
xxx POST /api/backtest 500 154ms -

Error: non-error thrown:
ERROR: I do not know the indicator NNv2

at Object.onerror (/opt/gekko/node_modules/koa/lib/context.js:105:40)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
It was my error it is fixed

Forum Jump:

Users browsing this thread: