Fix t_index to be normalized

This commit is contained in:
hroff-1902
2020-02-09 21:20:15 +03:00
committed by GitHub
parent 6b279f297c
commit 9ec9a7b124

View File

@@ -39,7 +39,8 @@ class SortinoHyperOptLossDaily(IHyperOptLoss):
results['profit_percent'] - slippage_per_trade_ratio
# create the index within the min_date and end max_date
t_index = date_range(start=min_date, end=max_date, freq=resample_freq)
t_index = date_range(start=min_date, end=max_date, freq=resample_freq,
normalize=True)
sum_daily = (
results.resample(resample_freq, on='close_time').agg(