Gekko Forum
NNv2 Install - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Discussion (https://forum.gekko.wizb.it/forum-23.html)
+--- Thread: NNv2 Install (/thread-57972.html)



NNv2 Install - jcdude - 07-17-2019

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)


RE: NNv2 Install - jcdude - 07-30-2019

It was my error it is fixed


RE: NNv2 Install - PGTART - 08-22-2019

how did you fix it ?,

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


RE: NNv2 Install - jcdude - 08-23-2019

(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


RE: NNv2 Install - TonyV152 - 09-07-2020

Also make note of Upper case and Lower case letters.
I had some issues between TOML files and Config.js files.