Heya,
I'm trying to backtest from command line on v0.6 and getting some errors; however i've never done backtests from command line on older versions so I may just be doing something wrong; anyway it looks like this:
I'm trying to backtest from command line on v0.6 and getting some errors; however i've never done backtests from command line on older versions so I may just be doing something wrong; anyway it looks like this:
Code:
2018-06-27 17:14:51 (INFO): Setting up Gekko in backtest mode
2018-06-27 17:14:51 (INFO):
2018-06-27 17:14:51 (WARN): The plugin Candle writer does not support the mode backtest. It has been disabled.
2018-06-27 17:14:51 (INFO): Setting up:
2018-06-27 17:14:51 (INFO): Trading Advisor
2018-06-27 17:14:51 (INFO): Calculate trading advice
2018-06-27 17:14:51 (INFO): Using the strategy: buyatsellat
2018-06-27 17:14:51 (INFO):
2018-06-27 17:14:51 (INFO): Setting up:
2018-06-27 17:14:51 (INFO): Paper Trader
2018-06-27 17:14:51 (INFO): Paper trader that simulates fake trades.
2018-06-27 17:14:51 (INFO):
2018-06-27 17:14:51 (INFO): Setting up:
2018-06-27 17:14:51 (INFO): Performance Analyzer
2018-06-27 17:14:51 (INFO): Analyzes performancesof trades
2018-06-27 17:14:51 (INFO):
2018-06-27 17:14:51 (INFO): WARNING: BACKTESTING FEATURE NEEDS PROPER TESTING
2018-06-27 17:14:51 (INFO): WARNING: ACT ON THESE NUMBERS AT YOUR OWN RISK!
/home/henry/gekko/node_modules/sqlite3/lib/trace.js:27
throw err;
^
ReferenceError: amount is not defined
at PaperTrader.processAdvice (/home/henry/gekko/plugins/paperTrader/paperTrader.js:125:5)
at Actor.bound (/home/henry/gekko/node_modules/lodash/dist/lodash.js:729:21)
at emitOne (events.js:116:13)
at Actor.emit (events.js:211:7)
at Actor.bound [as emit] (/home/henry/gekko/node_modules/lodash/dist/lodash.js:729:21)
at Actor.GekkoEventEmitter.broadcastDeferredEmit (/home/henry/gekko/core/emitter.js:30:8)
at Actor.bound [as broadcastDeferredEmit] (/home/henry/gekko/node_modules/lodash/dist/lodash.js:729:21)
at _.find.producer (/home/henry/gekko/core/gekkoStream.js:74:26)
at Function.find (/home/henry/gekko/node_modules/lodash/dist/lodash.js:3217:15)
at Gekko.flushDefferedEvents (/home/henry/gekko/core/gekkoStream.js:72:25)
--> in Database#all('\n SELECT * from candles_USDT_BTC\nWHERE start <= 1503017399 AND start >= 1503014400\n ORDER BY start ASC\n ', [Function])
at Reader.get (/home/henry/gekko/plugins/sqlite/reader.js:98:11)
at Reader.bound [as get] (/home/henry/gekko/node_modules/lodash/dist/lodash.js:729:21)
at Market.get (/home/henry/gekko/core/markets/backtest.js:61:15)
at Market.bound [as get] (/home/henry/gekko/node_modules/lodash/dist/lodash.js:729:21)
at Market.<anonymous> (/home/henry/gekko/core/markets/backtest.js:52:8)
at Market._read (/home/henry/gekko/node_modules/lodash/dist/lodash.js:5605:23)
at Market.bound [as _read] (/home/henry/gekko/node_modules/lodash/dist/lodash.js:729:21)
at Market.Readable.read (_stream_readable.js:442:10)
at Market.bound [as read] (/home/henry/gekko/node_modules/lodash/dist/lodash.js:729:21)