Have backtest use the same logic to get the ROI entry

This commit is contained in:
Matthias
2019-01-12 13:45:43 +01:00
parent e9d61eb35d
commit cd2bccd441
2 changed files with 4 additions and 4 deletions

View File

@@ -221,7 +221,7 @@ class Backtesting(object):
elif sell.sell_type == (SellType.ROI):
# get next entry in min_roi > to trade duration
# Interface.py skips on trade_duration <= duration
roi_entry = max(list(filter(lambda x: trade_dur > x,
roi_entry = max(list(filter(lambda x: trade_dur >= x,
self.strategy.minimal_roi.keys())))
roi = self.strategy.minimal_roi[roi_entry]