Skip to content

Commit b5c2637

Browse files
committed
🐛: Fix fixed params
1 parent 9aadddf commit b5c2637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ def optimize(self, *,
13401340
raise ValueError('Need some strategy parameters to optimize')
13411341

13421342
if isinstance(maximize, str):
1343-
stats = self._results if self._results is not None else self.run()
1343+
stats = self._results if self._results is not None else self.run(fixed_params=fixed_params)
13441344
if maximize not in stats:
13451345
raise ValueError('`maximize`, if str, must match a key in pd.Series '
13461346
'result of backtest.run()')

0 commit comments

Comments
 (0)