Skip to content

Commit 25aabdb

Browse files
committed
fix check for backtesting.log
1 parent e8531ff commit 25aabdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/prove-backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def parse_backtesting_line(
607607
"max_profit_on_clean_wins",
608608
]:
609609
# drop any results containing losses, stales, or holds
610-
if 0 not in [l, s, h] or w == 0:
610+
if sum([l, s, h]) > 0 or w == 0:
611611
return (False, {})
612612

613613
blob: Dict[str, Any] = json.loads(_cfg)

0 commit comments

Comments
 (0)