implement fallback loading for load_backtest_data

This commit is contained in:
Matthias
2020-06-27 07:15:33 +02:00
parent 1339479882
commit c13ec4a1d4
2 changed files with 26 additions and 21 deletions

View File

@@ -55,7 +55,7 @@ def backtest_result_to_list(results: DataFrame) -> List[List]:
# Return 0 as "index" for compatibility reasons (for now)
# TODO: Evaluate if we can remove this
return [[t.pair, t.profit_percent, t.open_date.timestamp(),
t.open_date.timestamp(), 0, t.trade_duration,
t.close_date.timestamp(), 0, t.trade_duration,
t.open_rate, t.close_rate, t.open_at_end, t.sell_reason.value]
for index, t in results.iterrows()]