diff --git a/freqtrade/edge/__init__.py b/freqtrade/edge/__init__.py index 49acbd3e7..9bd43e37f 100644 --- a/freqtrade/edge/__init__.py +++ b/freqtrade/edge/__init__.py @@ -144,20 +144,6 @@ class Edge(): self._cached_pairs = self._process_expectancy(trades_df) self._last_updated = arrow.utcnow().timestamp - # Not a nice hack but probably simplest solution: - # When backtest load data it loads the delta between disk and exchange - # The problem is that exchange consider that recent. - # it is but it is incomplete (c.f. _async_get_candle_history) - # So it causes get_signal to exit cause incomplete ticker_hist - # A patch to that would be update _pairs_last_refresh_time of exchange - # so it will download again all pairs - # Another solution is to add new data to klines instead of reassigning it: - # self.klines[pair].update(data) instead of self.klines[pair] = data in exchange package. - # But that means indexing timestamp and having a verification so that - # there is no empty range between two timestaps (recently added and last - # one) - self.exchange._pairs_last_refresh_time = {} - return True def stake_amount(self, pair: str, free_capital: float,