xFFFFF / Gekko-BacktestTool

Batch backtest, import and strategy params optimalization for Gekko Trading Bot. With one command you will run any number of backtests.
MIT License
228 stars 83 forks source link

Backtest is failed. #28

Open mayurmahajan opened 6 years ago

mayurmahajan commented 6 years ago

Gekko BacktestTool is coming up with empty results set for the candles/strategies/pairs. I have tried various combinations.

@strategies = qw( MACD );

@pairs = qw( poloniex:ALL );

@warmup = qw( 1:1 );

mycomputer:~/github/gekko/gekkobacktesttool (gekko) (develop) $ ls history/ poloniex_0.1.db (I made sure it's not empty)

Not sure why the backtesttool is giving me empty result set:

[2018-06-03 19:30:33] Collect data from coinmarketcap.com dbname=history/poloniex_0.1.db[2018-06-03 19:30:34] Use TOML files for strategies configuration [2018-06-03 19:30:34] Save output to csvfile: database.csv [2018-06-03 19:30:34] Starting Backtest Machine (5 threads)... ============================================================== I N P U T D A T A =============================================================== Pairs

poloniex:USDT:BTC Total: 1

Strategies

StepGains MACD Total: 2

=================================================================================================================================================== Candles

1:1 Total: 1

[2018-06-03 19:30:34] 2 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 HODL Days Time


USDT-BTC Backtest is failed. USDT-BTC Backtest is failed.

GekkoFreak commented 6 years ago

I have the same problem. Did you have a solution ?

ssalcedo00 commented 5 years ago

Still having the same problem almost a year later.

RyutaTobita commented 5 years ago

There might be some message hiding behind the "USDT-BTC Backtest is failed." message. You may add the below code right before the line 1471 in backtest.pl, and you may find out the hidden message as it puts you in the debug mode:

@error = $grun;

https://github.com/xFFFFF/Gekko-BacktestTool/blob/9180779164f9a8cf179d4dfea604aee6996c2019/backtest.pl#L1471

In my case , I found the error similar to the below issue: https://github.com/xFFFFF/Gekko-BacktestTool/issues/27