fix: adjust minimum out-of-sample trades and Z cutoff values for improved model performance

This commit is contained in:
Luke Mosoti
2026-04-26 12:22:00 +03:00
parent 94f6e6ae9b
commit b6717af55e
3 changed files with 4 additions and 4 deletions
Binary file not shown.
+1 -1
View File
@@ -46,7 +46,7 @@ def _study_db(broker: str) -> str:
# TF-specific hard floor: trials below these counts return -50.0 immediately.
# They produce statistically meaningless RF/PF ratios (10 trades → RF=20 by chance)
# and pollute the surrogate model, biasing future sampling toward "tiny trade" configs.
MIN_OOS_TRADES_HARD = {"M5": 60, "M15": 30, "H1": 20}
MIN_OOS_TRADES_HARD = {"M5": 120, "M15": 30, "H1": 20}
MAX_FLOAT_DD = 0.20 # 20% floating drawdown hard cap — terminal for $15 account
PAYOFF_FLOOR_USD = 0.035 # $0.035 minimum average edge per trade — covers spread + gives real alpha
RAM_HIGH_PCT = 90 # pause new trials when used RAM exceeds this %
+3 -3
View File
@@ -57,9 +57,9 @@ _TF_CUTOFF_OVERRIDES: Dict[str, Dict[str, Any]] = {
"MIN_CHOP_BARS_FOR_MR": 3,
},
"M5": {
"Z_CUTOFF_BULL": 2.8,
"Z_CUTOFF_BEAR": -2.8,
"Z_CUTOFF_CHOP_MR": {2: 3.5, 3: 4.0},
"Z_CUTOFF_BULL": 2.5,
"Z_CUTOFF_BEAR": -2.5,
"Z_CUTOFF_CHOP_MR": {2: 3.2, 3: 3.7},
"HIGH_VOL_ADJUSTMENT": 0.4,
"MIN_CHOP_BARS_FOR_MR": 4,
},