(12-05-2018, 10:40 AM)xelixes Wrote: Guys;
I am experimenting with this - and would really love to fire it up on live trade (for testing) - As I have "0" experience coding
Unfortunately I am failing to create the config file (for running on CLI).
Could someone help ?
I was getting cannot set property 'batchsize' of undefined; and when I removed the backtesting part (lines 31); I get another error of cannot find module of undefined errors ...
this the error I am getting (note I cant start live trading on GUI either!):
======
/xx/pi/gekko/strategies/RSI_BULL_BEAR_ADX_CB_SGLGL.js:43
config.backtest.batchSize = 10000; // increase performance
^
TypeError: Cannot set property 'batchSize' of undefined
at Base.init (/xx/pi/gekko/strategies/RSI_BULL_BEAR_ADX_CB_SGLGL.js:43:31)
at Base.bound [as init] (/xx/pi/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Base (/xx/pi/gekko/plugins/tradingAdvisor/baseTradingMethod.js:70:8)
at Actor.setupStrategy (/xx/pi/gekko/plugins/tradingAdvisor/tradingAdvisor.js:61:19)
at Actor.bound [as setupStrategy] (/xx/pi/gekko/node_modules/lodash/dist/lodash.js:729:21)
at new Actor (/xx/pi/gekko/plugins/tradingAdvisor/tradingAdvisor.js:23:8)
at load (/xx/pi/gekko/core/pluginUtil.js:98:22)
at /xx/pi/gekko/node_modules/async/dist/async.js:1156:9
at replenish (/xx/pi/gekko/node_modules/async/dist/async.js:1030:17)
at iterateeCallback (/xx/pi/gekko/node_modules/async/dist/async.js:1015:17)
=======
after removing batchsize thing from js file, I am getting:
2018-12-05 17:26:18 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed
module.js:550
throw err;
^
Error: Cannot find module '/xx/pi/gekko/core/../plugins/undefined/reader'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Stitcher.prepareHistoricalData (/xx/pi/gekko/core/tools/dataStitcher.js:50:16)
at new Actor (/xx/pi/gekko/plugins/tradingAdvisor/tradingAdvisor.js:34:14)
at load (/xx/pi/gekko/core/pluginUtil.js:98:22)
at /xx/pi/gekko/node_modules/async/dist/async.js:1156:9
at replenish (/xx/pi/gekko/node_modules/async/dist/async.js:1030:17)
at iterateeCallback (/xx/pi/gekko/node_modules/async/dist/async.js:1015:17)