mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 05:11:15 +00:00
fix: cut-off (too short) timeframe-detail bug
If the detail data stops short, this shouldn't cause an exception. instead, we should continue with "parent only" logic.
This commit is contained in:
@@ -1649,7 +1649,7 @@ class Backtesting:
|
|||||||
pair_detail = self.get_detail_data(pair, row)
|
pair_detail = self.get_detail_data(pair, row)
|
||||||
if pair_detail is not None:
|
if pair_detail is not None:
|
||||||
pair_detail_cache[pair] = pair_detail
|
pair_detail_cache[pair] = pair_detail
|
||||||
row = pair_detail_cache[pair][idx]
|
row = pair_detail_cache[pair][idx]
|
||||||
|
|
||||||
is_last_row = current_time_det == end_date
|
is_last_row = current_time_det == end_date
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user