Skip to content

Commit 48d1106

Browse files
committed
fix: undefined candle_type_def in lookahead-analysis
1 parent 6452521 commit 48d1106

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

freqtrade/optimize/analysis/lookahead.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def prepare_data(self, varholder: VarHolder, pairs_to_load: list[DataFrame]):
125125

126126
backtesting = Backtesting(prepare_data_config, self.exchange)
127127
self.exchange = backtesting.exchange
128+
self.local_config["candle_type_def"] = prepare_data_config["candle_type_def"]
128129
self._fee = backtesting.fee
129130
backtesting._set_strategy(backtesting.strategylist[0])
130131

0 commit comments

Comments
 (0)