mirror of
https://github.com/lucasmos/GoldRegime_X.git
synced 2026-11-02 06:26:15 +00:00
fix: adjust minimum out-of-sample trades and Z cutoff values for improved model performance
This commit is contained in:
Binary file not shown.
+1
-1
@@ -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 %
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user