Skip to content

Commit

Permalink
Correctly wrap opt_result, do not have raw value
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jul 20, 2024
1 parent d3b0768 commit cf3bdb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradeexecutor/backtest/optimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def __call__(
else:
# The backtest crashed with an exception,
# likely OutOfBalance
opt_result = self.filtered_result_value
opt_result = OptimiserSearchResult(self.filtered_result_value, negative=False)

# Apply result filter and zero out the value for optimiser if needed
if not self.result_filter(result):
Expand Down

0 comments on commit cf3bdb9

Please sign in to comment.