Tests should use new Datetime format too

This commit is contained in:
Matthias
2020-06-09 08:14:18 +02:00
parent fbddfaeacf
commit cf044d166e
2 changed files with 16 additions and 16 deletions

View File

@@ -250,9 +250,9 @@ def generate_backtest_stats(config: Dict, btdata: Dict[str, DataFrame],
strat_stats.update({
'max_drawdown': 0.0,
'drawdown_start': datetime.min,
'drawdown_start_ts': datetime.min.timestamp(),
'drawdown_start_ts': datetime(1970, 1, 1).timestamp(),
'drawdown_end': datetime.min,
'drawdown_end_ts': datetime.min.timestamp(),
'drawdown_end_ts': datetime(1970, 1, 1).timestamp(),
})
strategy_results = generate_strategy_metrics(stake_currency=stake_currency,