mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
Merge pull request #2891 from freqtrade/hroff-1902-patch-2
Fix SharpeHyperOptLossDaily
This commit is contained in:
commit
7c91c77fd9
|
@ -39,7 +39,8 @@ class SharpeHyperOptLossDaily(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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user