NNv2 Install
#1
Hello

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)
  Reply
#2
It was my error it is fixed
  Reply
#3
how did you fix it ?,

i got the same error, placed everything in the right locations so not sure what to check more.
  Reply
#4
(08-22-2019, 11:51 AM)PGTART Wrote: how did you fix it ?,

i got the same error, placed everything in the right locations so not sure what to check more.

I followed the instructions again and it worked missed one of the required installs
  Reply
#5
Also make note of Upper case and Lower case letters.
I had some issues between TOML files and Config.js files.
  Reply


Forum Jump:


Users browsing this thread: