remove precision on year calculation
This commit is contained in:
parent
78ae177a5b
commit
da419e6022
@ -38,7 +38,7 @@ class CalmarHyperOptLoss(IHyperOptLoss):
|
|||||||
|
|
||||||
simulated_drawdowns = []
|
simulated_drawdowns = []
|
||||||
|
|
||||||
backtest_duration_years = ((max_date-min_date).days/365.2425)
|
backtest_duration_years = ((max_date-min_date).days/365)
|
||||||
trade_count_average_per_year = trade_count/backtest_duration_years
|
trade_count_average_per_year = trade_count/backtest_duration_years
|
||||||
|
|
||||||
# add slipage to be closed to live
|
# add slipage to be closed to live
|
||||||
|
Loading…
Reference in New Issue
Block a user