Gekko Forum
Error when i click backtest - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html)
+--- Thread: Error when i click backtest (/thread-57562.html)



Error when i click backtest - joaoroberto - 08-14-2018

Hello friends, i've found an error when i try to backtest some new strategies on my win 10
I have already installed math.js and i don't know what should be causing this,can anyone help me ?

thanks in advance Smile


RE: Error when i click backtest - Justaotheruser - 08-15-2018

Can you try backtesting by means of the command line ? In the command line you can see the specific error ? This is more a general error. It could mean anything.
link how to backtest by command line.
https://gekko.wizb.it/docs/commandline/backtesting.html


RE: Error when i click backtest - joaoroberto - 08-17-2018

(08-15-2018, 07:55 AM)Justaotheruser Wrote: Can you try backtesting by means of the command line ? In the command line you can see the specific error ? This is more a general error. It could mean anything.
link how to backtest by command line.
https://gekko.wizb.it/docs/commandline/backtesting.html

Hello my friend,
i've been trying to run backtest through CLI and i keep getting out of memory and stop, how can i put the gekko backtest tool to run on LOW ? i don't if takes time, i just don't want to be stopped.
thanks ! Smile


RE: Error when i click backtest - joaoroberto - 08-17-2018

Which command i put at the end of the backtest.pl ? pause didn't pause
When i start it stop very fast and i can't read the errors
the thing that i could copy is right here:
"
ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê
ΓûêΓûê ΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê
ΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê


ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê
ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê Γûê ΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê
ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûê
ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûê

Gekko BacktestTool v0.7
https://github.com/xFFFFF/Gekko-BacktestTool


[2018-08-17 17:36:50] Collect data from coinmarketcap.com
[2018-08-17 17:36:50] Use TOML files for strategies configuration
[2018-08-17 17:36:50] Save output to csvfile: database.csv
[2018-08-17 17:36:50] Starting Backtest Machine (5 threads)...

============================================================== I N P U T D A T A ===============================================================
Pairs
-----
bitifinex:BTC:ETH

Total: 1
===================================================================================================================================================
Strategies
----------
RSI_Bull_Bear_Adx

Total: 1

===================================================================================================================================================
Candles
-------
10:73 11:70 12:69 13:65

Total: 4
===================================================================================================================================================

[2018-08-17 17:36:56] 4 backtests remain

============================================================= L A S T R E S U L T S ============================================================
Pair Strategy Profit Profit-market Trades/day Win trades Best win Worst loss Candle Days Time
---- -------- ------ ------------- ---------- ---------- -------- ---------- ------ ---- ----
2018-08-17 17:36:57 (ERROR): Failed to load indicator Alligator
2018-08-17 17:36:57 (ERROR): Failed to load indicator HEIKEN
===================================================================================================================================================

[2018-08-17 17:36:57] 100% complete. Elapsed: 00:00:01, average backtest duration: 00:00


2018-08-17 17:36:57 (ERROR): Failed to load indicator PIVOTHIGHLOW
2018-08-17 17:36:57 (ERROR): Failed to load indicator Alligator
2018-08-17 17:36:57 (ERROR): Failed to load indicator RSI-beta
2018-08-17 17:36:58 (ERROR): Failed to load indicator source
2018-08-17 17:36:58 (ERROR): Failed to load indicator HEIKEN
C:\gk\strategies\RSI_Bull_Bear_Adx.js:38
this.addIndicator('maSlow', 'SMA', this.settings.SMA_long);
^

TypeError: Cannot read property 'SMA_long' of undefined
at Base.init (C:\gk\strategies\RSI_Bull_Bear_Adx.js:38:54)
at Base.bound [as init] (C:\gk\node_modules\lodash\dist\lodash.js:729:21)
at new Base (C:\gk\plugins\tradingAdvisor\baseTradingMethod.js:70:8)
at Actor.setupStrategy (C:\gk\plugins\tradingAdvisor\tradingAdvisor.js:61:19)
at Actor.bound [as setupStrategy] (C:\gk\node_modules\lodash\dist\lodash.js:729:21)
at new Actor (C:\gk\plugins\tradingAdvisor\tradingAdvisor.js:23:8)
at load (C:\gk\core\pluginUtil.js:98:22)
at C:\gk\node_modules\async\dist\async.js:1156:9
at replenish (C:\gk\node_modules\async\dist\async.js:1030:17)
at iterateeCallback (C:\gk\node_modules\async\dist\async.js:1015:17)
[2018-08-17 17:36:57] Creating ALL RESULTS table (sorted profit/day)...
Can't locate SQL/Dialects/AnyData.pm in @INC (you may need to install the SQL:Big Grinialects::AnyData module) (@INC contains: C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc\lib C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc CODE(0x367dde8) CODE(0x367dfe0)) at SQL/Parser.pm line 325.
at DBI/DBD/SqlEngine.pm line 517.
BTC-ETH Backtest is failed.
Can't locate SQL/Dialects/AnyData.pm in @INC (you may need to install the SQL:Big Grinialects::AnyData module) (@INC contains: C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc\lib C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc CODE(0x367dde8) CODE(0x367dfe0)) at SQL/Parser.pm line 325.
at SQL/Statement.pm line 74.
DBD::CSV::db prepare failed: Can't inject SQL:Big Grinialects::Role into SQL:Big Grinialects::AnyData: Can't locate SQL/Dialects/Role.pm in @INC (you may need to install the SQL:Big Grinialects::Role module) (@INC contains: C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc\lib C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc CODE(0x367dde8) CODE(0x367dfe0)) at (eval 83) line 3.
BEGIN failed--compilation aborted at (eval 83) line 3.
at SQL/Statement.pm line 74.
2018-08-17 17:36:58 (ERROR): Failed to load indicator Alligator
2018-08-17 17:36:58 (ERROR): Failed to load indicator PIVOTHIGHLOW
[for Statement "SELECT currency, asset, strategy, profit___, profit_market, profit_day___, trades_day, best_win, worst_loss, avg_HODL_min_, avg_price, overall_trades_day, volume_day FROM tmp\tmp_datahpcuu.csv"] at script/backtest.pl line 158.
2018-08-17 17:36:58 (ERROR): Failed to load indicator HEIKEN
2018-08-17 17:36:58 (ERROR): Failed to load indicator RSI-beta
2018-08-17 17:36:58 (ERROR): Failed to load indicator source
C:\gk\strategies\RSI_Bull_Bear_Adx.js:38
this.addIndicator('maSlow', 'SMA', this.settings.SMA_long);
^

TypeError: Cannot read property 'SMA_long' of undefined
at Base.init (C:\gk\strategies\RSI_Bull_Bear_Adx.js:38:54)
at Base.bound [as init] (C:\gk\node_modules\lodash\dist\lodash.js:729:21)
at new Base (C:\gk\plugins\tradingAdvisor\baseTradingMethod.js:70:8)
at Actor.setupStrategy (C:\gk\plugins\tradingAdvisor\tradingAdvisor.js:61:19)
at Actor.bound [as setupStrategy] (C:\gk\node_modules\lodash\dist\lodash.js:729:21)
at new Actor (C:\gk\plugins\tradingAdvisor\tradingAdvisor.js:23:8)
at load (C:\gk\core\pluginUtil.js:98:22)
at C:\gk\node_modules\async\dist\async.js:1156:9
at replenish (C:\gk\node_modules\async\dist\async.js:1030:17)
at iterateeCallback (C:\gk\node_modules\async\dist\async.js:1015:17)
DBD::CSV::db prepare failed: Can't inject SQL:Big Grinialects::Role into SQL:Big Grinialects::AnyData: Can't locate SQL/Dialects/Role.pm in @INC (you may need to install the SQL:Big Grinialects::Role module) (@INC contains: C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc\lib C:\Users\user\AppData\Local\Temp\par-75736572\temp-7096\inc CODE(0x367dde8) CODE(0x367dfe0)) at (eval 83) line 3.
BEGIN failed--compilation aborted at (eval 83) line 3.
BTC-ETH Backtest is failed.
at SQL/Statement.pm line 74.
2018-08-17 17:36:59 (ERROR): Failed to load indicator Alligator
2018-08-17 17:36:59 (ERROR): Failed to load indicator PIVOTHIGHLOW
"
thanks for your kindness


RE: Error when i click backtest - Justaotheruser - 08-21-2018

How do you mean low ? Like running in the background ?
Do you have a picture of your error in the CLI ?