From d000731cc75e2b00ffe036eefdeef7a6d5ba3b42 Mon Sep 17 00:00:00 2001 From: I Luk Kim Date: Mon, 11 May 2026 21:22:06 -0700 Subject: [PATCH] PEAD session: add 4 candidate engines + Oracle vocab normalizer + auto-refresh disable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New engines (configurable but not promoted by default): - libs/backtest/earnings_runup.py: pre-earnings drift entry (T-7 to T-3, attention+volume z-scores) - libs/backtest/peer_sympathy.py: peer reaction trade after leader earnings, with reaction_close variant - libs/backtest/vol_breakout_52w.py: 52-week high volume breakout - libs/backtest/cross_sectional_momentum.py: 12-1 momentum with VIX/SPY-50dma regime filter Pipeline additions: - libs/parser/event_type_normalizer.py: normalize Oracle fallback raw vocab to strategy vocabulary (earnings_result→earnings_release, regulation_fd→guidance_update, etc.). Wired into apps/pipeline/event_parser/main.py oracle-fallback path. - libs/labeler/label_generator.py: preserve future entry_dates as label_status='pending' instead of dropping as 'unavailable'. - libs/export/snapshot_export.py: include 'pending' labels in snapshot export. - libs/parser/rule_parser.py: harden 8-K item-code classifier against dirty input strings. Infrastructure: - libs/backtest/snapshot_store.py: _PRICE_FEATURE_WARMUP_DAYS 120→400 (needed for xsmom 12-1 lookback of 273 trading days). - apps/backtester/run.py + apps/paper_trader/backtest_sim.py: disable auto-refresh of snapshots (user request — auto-refresh was silently rebuilding snapshots with current code, making historical backtests irreproducible across DB mutations). Engine config support: - libs/backtest/domain.py: add fields for ER/PS/VolBO/xsmom engine configs. - libs/backtest/execution.py: wire pct-trailing for EarningsRunup. - libs/backtest/scoring.py: synthetic candidate scoring for new engines. Configs (POC + sweeps, none promoted as active strategy): - Phase A-E PEAD baseline comparisons (no PEAD / +ER / +xsmom / +sleeves variants) - Phase F1-F8 silo allocation sweep (v7.356 + ER/xsmom silos 15-60%) - xsmom_poc_v1, xsmom_v2_regime_mdd - v7.356_plus_er_silo_05/10/15/20/25/30 ranges - earnings_runup_* / peer_sympathy_* / vol_breakout_52w_* POCs Tests: 16-tests-each for each new engine + event_type_normalizer tests. Note: backtest reproducibility infrastructure remains broken — see _backup_2026-05-10/HANDOFF.md for details on the +12,592% reference run that cannot be reproduced after rebuilds. Followup work needed before trusting any specific backtest number. Co-Authored-By: Claude Sonnet 4.6 --- apps/backtester/run.py | 180 ++++- apps/paper_trader/backtest_sim.py | 21 +- .../earnings_runup_loose_att_0p8.json | 91 +++ .../earnings_runup_loose_att_1p0.json | 91 +++ .../earnings_runup_loose_att_1p2.json | 91 +++ .../earnings_runup_loose_att_1p3.json | 91 +++ .../earnings_runup_loose_att_1p4.json | 91 +++ .../earnings_runup_loose_days_1_12.json | 91 +++ .../earnings_runup_loose_days_2_10.json | 91 +++ .../earnings_runup_loose_days_2_8.json | 91 +++ .../earnings_runup_loose_days_3_10.json | 91 +++ .../earnings_runup_loose_dvol_0p0.json | 91 +++ .../earnings_runup_loose_dvol_0p5.json | 91 +++ .../earnings_runup_loose_dvol_0p8.json | 91 +++ .../earnings_runup_poc_v2_tuned.json | 22 +- .../earnings_runup_poc_v2_tuned_fixedcap.json | 93 +++ ...poc_v2_reaction_close_sweep01_corr065.json | 89 +++ ...poc_v2_reaction_close_sweep02_corr075.json | 89 +++ ...v2_reaction_close_sweep03_reaction010.json | 89 +++ ...y_poc_v2_reaction_close_sweep04_topn1.json | 89 +++ ...2_reaction_close_sweep05_earningsonly.json | 85 +++ ..._reaction_close_sweep06_corr075_topn1.json | 89 +++ ...poc_v2_reaction_close_sweep07_corr080.json | 89 +++ ..._reaction_close_sweep08_corr075_vix30.json | 90 +++ ...poc_v2_reaction_close_sweep09_corr085.json | 89 +++ .../phaseA_pead_pure_no_sleeves.json | 643 ++++++++++++++++ .../phaseA_pead_pure_no_sleeves_fixedcap.json | 643 ++++++++++++++++ configs/experiments/phaseB_er_plus_xsmom.json | 130 ++++ .../phaseB_er_plus_xsmom_fixedcap.json | 130 ++++ .../experiments/phaseC_er_plus_sleeves.json | 93 +++ .../phaseC_er_plus_sleeves_fixedcap.json | 93 +++ .../phaseD_xsmom_plus_sleeves.json | 97 +++ .../phaseD_xsmom_plus_sleeves_fixedcap.json | 97 +++ .../phaseE_er_plus_xsmom_plus_sleeves.json | 130 ++++ ...E_er_plus_xsmom_plus_sleeves_fixedcap.json | 130 ++++ .../experiments/phaseF1_v7356_er15_xs15.json | 707 ++++++++++++++++++ .../experiments/phaseF2_v7356_er20_xs25.json | 707 ++++++++++++++++++ .../experiments/phaseF3_v7356_er30_xs30.json | 707 ++++++++++++++++++ .../experiments/phaseF4_v7356_er40_xs40.json | 707 ++++++++++++++++++ .../experiments/phaseF5_v7356_er50_xs50.json | 707 ++++++++++++++++++ .../phaseF5_v7356_er50_xs50_fixedcap.json | 707 ++++++++++++++++++ .../experiments/phaseF6_v7356_er60_xs60.json | 707 ++++++++++++++++++ .../experiments/phaseF7_v7356_er50_xs30.json | 707 ++++++++++++++++++ .../phaseF7_v7356_er50_xs30_fixedcap.json | 707 ++++++++++++++++++ .../experiments/phaseF8_v7356_er30_xs50.json | 707 ++++++++++++++++++ ...max_long_v7.356_composed_gld_compound.json | 14 +- ...56_plus_er_silo15_strict_az20_dte4to6.json | 666 +++++++++++++++++ ....356_plus_er_silo15_strict_az20_dvz10.json | 666 +++++++++++++++++ ....356_plus_er_silo15_strict_az20_dvz15.json | 666 +++++++++++++++++ ....356_plus_er_silo15_strict_az25_dvz10.json | 666 +++++++++++++++++ configs/experiments/xsmom_poc_v1.json | 85 +++ configs/experiments/xsmom_v2_regime_mdd.json | 97 +++ .../xsmom_v2_regime_mdd_fixedcap.json | 97 +++ configs/experiments/xsmom_v2b_vix_only.json | 94 +++ configs/experiments/xsmom_v2c_spy_sma20.json | 94 +++ libs/backtest/cross_sectional_momentum.py | 473 ++++++++++++ libs/backtest/domain.py | 22 + libs/backtest/scoring.py | 111 +++ libs/backtest/snapshot_store.py | 81 +- libs/export/snapshot_export.py | 148 ++-- .../backtest/test_cross_sectional_momentum.py | 391 ++++++++++ tests/unit/backtest/test_earnings_runup.py | 77 ++ tests/unit/backtest/test_peer_sympathy.py | 52 ++ tests/unit/backtest/test_vol_breakout_52w.py | 49 ++ 64 files changed, 15891 insertions(+), 120 deletions(-) create mode 100644 configs/experiments/earnings_runup_loose_att_0p8.json create mode 100644 configs/experiments/earnings_runup_loose_att_1p0.json create mode 100644 configs/experiments/earnings_runup_loose_att_1p2.json create mode 100644 configs/experiments/earnings_runup_loose_att_1p3.json create mode 100644 configs/experiments/earnings_runup_loose_att_1p4.json create mode 100644 configs/experiments/earnings_runup_loose_days_1_12.json create mode 100644 configs/experiments/earnings_runup_loose_days_2_10.json create mode 100644 configs/experiments/earnings_runup_loose_days_2_8.json create mode 100644 configs/experiments/earnings_runup_loose_days_3_10.json create mode 100644 configs/experiments/earnings_runup_loose_dvol_0p0.json create mode 100644 configs/experiments/earnings_runup_loose_dvol_0p5.json create mode 100644 configs/experiments/earnings_runup_loose_dvol_0p8.json create mode 100644 configs/experiments/earnings_runup_poc_v2_tuned_fixedcap.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep01_corr065.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep02_corr075.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep03_reaction010.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep04_topn1.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep05_earningsonly.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep06_corr075_topn1.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep07_corr080.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep08_corr075_vix30.json create mode 100644 configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep09_corr085.json create mode 100644 configs/experiments/phaseA_pead_pure_no_sleeves.json create mode 100644 configs/experiments/phaseA_pead_pure_no_sleeves_fixedcap.json create mode 100644 configs/experiments/phaseB_er_plus_xsmom.json create mode 100644 configs/experiments/phaseB_er_plus_xsmom_fixedcap.json create mode 100644 configs/experiments/phaseC_er_plus_sleeves.json create mode 100644 configs/experiments/phaseC_er_plus_sleeves_fixedcap.json create mode 100644 configs/experiments/phaseD_xsmom_plus_sleeves.json create mode 100644 configs/experiments/phaseD_xsmom_plus_sleeves_fixedcap.json create mode 100644 configs/experiments/phaseE_er_plus_xsmom_plus_sleeves.json create mode 100644 configs/experiments/phaseE_er_plus_xsmom_plus_sleeves_fixedcap.json create mode 100644 configs/experiments/phaseF1_v7356_er15_xs15.json create mode 100644 configs/experiments/phaseF2_v7356_er20_xs25.json create mode 100644 configs/experiments/phaseF3_v7356_er30_xs30.json create mode 100644 configs/experiments/phaseF4_v7356_er40_xs40.json create mode 100644 configs/experiments/phaseF5_v7356_er50_xs50.json create mode 100644 configs/experiments/phaseF5_v7356_er50_xs50_fixedcap.json create mode 100644 configs/experiments/phaseF6_v7356_er60_xs60.json create mode 100644 configs/experiments/phaseF7_v7356_er50_xs30.json create mode 100644 configs/experiments/phaseF7_v7356_er50_xs30_fixedcap.json create mode 100644 configs/experiments/phaseF8_v7356_er30_xs50.json create mode 100644 configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dte4to6.json create mode 100644 configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz10.json create mode 100644 configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz15.json create mode 100644 configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az25_dvz10.json create mode 100644 configs/experiments/xsmom_poc_v1.json create mode 100644 configs/experiments/xsmom_v2_regime_mdd.json create mode 100644 configs/experiments/xsmom_v2_regime_mdd_fixedcap.json create mode 100644 configs/experiments/xsmom_v2b_vix_only.json create mode 100644 configs/experiments/xsmom_v2c_spy_sma20.json create mode 100644 libs/backtest/cross_sectional_momentum.py create mode 100644 tests/unit/backtest/test_cross_sectional_momentum.py diff --git a/apps/backtester/run.py b/apps/backtester/run.py index dde8139..068ce4f 100644 --- a/apps/backtester/run.py +++ b/apps/backtester/run.py @@ -71,6 +71,11 @@ from libs.backtest.vol_breakout_52w import ( _SnapshotStoreBarAdapter as _VolBreakout52wBarAdapter, build_candidates as build_vol_breakout_52w_candidates, ) +from libs.backtest.cross_sectional_momentum import ( + CROSS_SECTIONAL_MOMENTUM_EVENT_TYPE, + _SnapshotStoreBarAdapter as _XsmomBarAdapter, + build_candidates as build_cross_sectional_momentum_candidates, +) from libs.backtest.form4_calendar import load_pit_form4_calendar from libs.backtest.ownership_calendar import load_pit_ownership_calendar from libs.backtest.execution import ( @@ -1357,6 +1362,7 @@ class BacktestRunner: self._schedule_earnings_runup_candidates(date) self._schedule_peer_sympathy_candidates(date, phase="next_open") self._schedule_vol_breakout_52w_candidates(date) + self._schedule_cross_sectional_momentum_candidates(date) self._schedule_macro_short_candidates(date) self._schedule_macro_long_candidates(date) @@ -2259,6 +2265,36 @@ class BacktestRunner: ) return result + @staticmethod + def _filter_rows_for_engine_entry_convention( + rows: list[dict[str, Any]], + engine: Any, + ) -> list[dict[str, Any]]: + if not rows: + return rows + explicit = { + str(value).lower() + for value in (getattr(engine, "entry_conventions", None) or []) + if value + } + if explicit: + allowed = explicit + else: + policy = str(getattr(engine, "entry_timing_policy", "") or "").lower() + if policy == "reaction_close": + allowed = {"reaction_close"} + elif policy == "next_open": + allowed = {"next_open", "next_open_after_reaction_close"} + else: + return rows + if not any(row.get("entry_convention") for row in rows): + return rows + return [ + row + for row in rows + if str(row.get("entry_convention") or "").lower() in allowed + ] + def _select_candidates_for_date( self, date: dt.date, @@ -2298,6 +2334,7 @@ class BacktestRunner: if effective_engine.entry_timing_policy == "reaction_close" else self.store.get_candidates_for_date(date) ) + raw_rows = self._filter_rows_for_engine_entry_convention(raw_rows, effective_engine) selected = select_candidates( raw_rows, self.config.universe, @@ -2367,6 +2404,7 @@ class BacktestRunner: if effective_engine.entry_timing_policy == "reaction_close" else self.store.get_candidates_for_date(date) ) + raw_rows = self._filter_rows_for_engine_entry_convention(raw_rows, effective_engine) selected = select_candidates( raw_rows, self.config.universe, @@ -5650,6 +5688,12 @@ class BacktestRunner: trade_direction="long", engine_max_holding_days=max_holding_days, engine_risk_budget_pct=engine.engine_risk_budget_pct, + engine_capital_bucket_id=( + (engine.capital_bucket_id or engine.engine_id) + if engine.capital_bucket_allocation_pct is not None + else None + ), + engine_capital_bucket_allocation_pct=engine.capital_bucket_allocation_pct, engine_per_trade_risk_pct=engine.per_trade_risk_pct_override, engine_target_1_r=engine.target_1_r_override, engine_target_1_fraction=engine.target_1_fraction_override, @@ -6209,6 +6253,113 @@ class BacktestRunner: self._scheduled_delayed_entries[next_date].append(cand) preexisting_symbols.add(sym) + def _schedule_cross_sectional_momentum_candidates(self, date: dt.date) -> None: + """Emit top-N 12-1 momentum synthetic candidates on rebalance days (first + trading day of each calendar month). On non-rebalance days, no-op. + + Pure logic in libs.backtest.cross_sectional_momentum. This method only + adapts runner state to the BarHistoryProvider Protocol and routes + synthetic candidates into ``_scheduled_delayed_entries`` for execution + at next_open. + + Phase 20: applies engine-level regime gates BEFORE emission: + - xsmom_vix_max: skip if VIX > threshold at decision_date + - xsmom_spy_sma_filter_period: skip if spy_close < spy_sma_{period} + """ + next_date = self._next_trading_day.get(date) + if next_date is None: + return + + engines = [ + e for e in self._active_strategy_engines + if getattr(e, "xsmom_enabled", False) + and self._engine_allowed_for_date(e, date) + ] + if not engines: + return + + universe_symbols = sorted(self.store._bars.keys()) + if not universe_symbols: + return + + cached_adapter = getattr(self, "_xsmom_bar_adapter", None) + if cached_adapter is None: + cached_adapter = _XsmomBarAdapter(bars_by_symbol=self.store._bars) + self._xsmom_bar_adapter = cached_adapter + bar_provider = cached_adapter + + # Phase 20: regime gate. Macro data lookup at decision_date. + # If empty, regime gate does not fire (fail-open) since the engine has + # always been able to function without VIX/SPY data. + macro = self.store.get_macro_for_date(date) or {} + + open_symbols = {p.plan.candidate.symbol.upper() for p in self._open_positions} + preexisting_symbols = { + candidate.symbol.upper() + for candidate in self._scheduled_delayed_entries.get(next_date, []) + } + + for engine in engines: + # Apply per-engine regime gates BEFORE emission. + vix_max = getattr(engine, "xsmom_vix_max", None) + if vix_max is not None: + vix_val = macro.get("VIXCLS") or macro.get("macro_vix") + if vix_val is not None and float(vix_val) > float(vix_max): + logger.debug( + "xsmom_regime_skip_vix", + engine_id=engine.engine_id, + date=date.isoformat(), + vix=float(vix_val), + vix_max=float(vix_max), + ) + continue + + spy_sma_p = getattr(engine, "xsmom_spy_sma_filter_period", None) + if spy_sma_p is not None: + spy_close = macro.get("spy_close") + spy_sma = macro.get(f"spy_sma_{int(spy_sma_p)}") + if spy_close is not None and spy_sma is not None and float(spy_close) < float(spy_sma): + logger.debug( + "xsmom_regime_skip_spy_sma", + engine_id=engine.engine_id, + date=date.isoformat(), + spy_close=float(spy_close), + spy_sma=float(spy_sma), + period=int(spy_sma_p), + ) + continue + + try: + candidates = build_cross_sectional_momentum_candidates( + decision_date=date, + next_trading_date=next_date, + universe_symbols=universe_symbols, + engine=engine, + bar_provider=bar_provider, + ) + except Exception as exc: # noqa: BLE001 + logger.warning( + "cross_sectional_momentum_build_failed", + engine_id=engine.engine_id, + date=date.isoformat(), + error=str(exc), + ) + continue + if not candidates: + continue + logger.info( + "cross_sectional_momentum_candidates_built", + engine_id=engine.engine_id, + date=date.isoformat(), + candidate_count=len(candidates), + ) + for cand in candidates: + sym = cand.symbol.upper() + if sym in open_symbols or sym in preexisting_symbols: + continue + self._scheduled_delayed_entries[next_date].append(cand) + preexisting_symbols.add(sym) + def _schedule_macro_short_candidates(self, date: dt.date) -> None: """Generate synthetic SH (inverse ETF) candidates during deep bearish regimes. @@ -6288,6 +6439,12 @@ class BacktestRunner: trade_direction="long", engine_max_holding_days=engine.max_holding_days, engine_risk_budget_pct=engine.engine_risk_budget_pct, + engine_capital_bucket_id=( + (engine.capital_bucket_id or engine.engine_id) + if engine.capital_bucket_allocation_pct is not None + else None + ), + engine_capital_bucket_allocation_pct=engine.capital_bucket_allocation_pct, engine_per_trade_risk_pct=engine.per_trade_risk_pct_override, engine_stop_atr_multiplier=engine.stop_atr_multiplier_override, engine_trailing_warmup_days=engine.trailing_warmup_days_override, @@ -6570,6 +6727,12 @@ class BacktestRunner: trade_direction="long", engine_max_holding_days=engine.max_holding_days, engine_risk_budget_pct=engine.engine_risk_budget_pct, + engine_capital_bucket_id=( + (engine.capital_bucket_id or engine.engine_id) + if engine.capital_bucket_allocation_pct is not None + else None + ), + engine_capital_bucket_allocation_pct=engine.capital_bucket_allocation_pct, engine_per_trade_risk_pct=engine.per_trade_risk_pct_override, engine_target_1_r=engine.target_1_r_override, engine_target_1_fraction=engine.target_1_fraction_override, @@ -9486,14 +9649,15 @@ def main() -> None: manifest = load_manifest(args.manifest) config = resolve_config(manifest, config_root=args.config_root, snapshot_id_override=args.snapshot_id) - # Auto-refresh snapshot if stale (covers CLI and web subprocess paths). - # Uses _last_market_closed_date() as the reference so the snapshot updates - # once market closes today (same criteria as price bar extension). - import asyncio as _asyncio - from apps.paper_trader.backtest_sim import _refresh_snapshot, _snapshot_needs_refresh - _snap_id = config.canonical_snapshot_id or config.dataset_snapshot_id - if _snapshot_needs_refresh(_snap_id, _last_market_closed_date()): - _asyncio.run(_refresh_snapshot(_snap_id, universe_profile=None)) + # Auto-refresh snapshot DISABLED (user request 2026-05-11). + # Snapshots must be refreshed manually via `fithia2 snapshot refresh ` + # or by deleting parquet files. Auto-refresh was silently rebuilding + # snapshots with current code, making historical backtests irreproducible. + # import asyncio as _asyncio + # from apps.paper_trader.backtest_sim import _refresh_snapshot, _snapshot_needs_refresh + # _snap_id = config.canonical_snapshot_id or config.dataset_snapshot_id + # if _snapshot_needs_refresh(_snap_id, _last_market_closed_date()): + # _asyncio.run(_refresh_snapshot(_snap_id, universe_profile=None)) if args.mode: config.risk.backtest_mode = args.mode diff --git a/apps/paper_trader/backtest_sim.py b/apps/paper_trader/backtest_sim.py index 0c03ffc..d53d02a 100644 --- a/apps/paper_trader/backtest_sim.py +++ b/apps/paper_trader/backtest_sim.py @@ -60,14 +60,15 @@ def run_backtest_session_sync( manifest = load_manifest(config_path) config = resolve_config(manifest, snapshot_id_override=snapshot_id_override) - # Auto-refresh snapshot if stale (covers web direct_runner path). - # Uses _last_market_closed_date() as the reference so the snapshot updates - # once market closes today (same criteria as price bar extension). - import asyncio as _asyncio - from apps.backtester.run import _last_market_closed_date - _snap_id = config.canonical_snapshot_id or config.dataset_snapshot_id - if _snapshot_needs_refresh(_snap_id, _last_market_closed_date()): - _asyncio.run(_refresh_snapshot(_snap_id, universe_profile=None)) + # Auto-refresh snapshot DISABLED (user request 2026-05-11). + # Snapshots must be refreshed manually. Auto-refresh was silently + # rebuilding snapshots with current code, making historical backtests + # irreproducible across code/data changes. + # import asyncio as _asyncio + # from apps.backtester.run import _last_market_closed_date + # _snap_id = config.canonical_snapshot_id or config.dataset_snapshot_id + # if _snapshot_needs_refresh(_snap_id, _last_market_closed_date()): + # _asyncio.run(_refresh_snapshot(_snap_id, universe_profile=None)) # Apply parking preset override (CLI --parking option) if parking_preset: @@ -487,7 +488,7 @@ def run_backtest( risk_off_alpha_sleeve_preset: str | None = None, non_core_allocator_v2_mode: str | None = None, snapshot_id_override: str | None = None, - auto_refresh: bool = True, + auto_refresh: bool = False, ) -> list[dict[str, Any]]: """Run multiple strategies sequentially using BacktestRunner. @@ -584,7 +585,7 @@ def load_snapshot_store_for_session( oracle_url: str, db_dsn: str, *, - auto_refresh: bool = True, + auto_refresh: bool = False, ) -> Any: """Load SnapshotStore for a live paper trading session. diff --git a/configs/experiments/earnings_runup_loose_att_0p8.json b/configs/experiments/earnings_runup_loose_att_0p8.json new file mode 100644 index 0000000..27dc384 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_att_0p8.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_att_0p8", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 0.8, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: attention_zscore_20d_min 1.5 -> 0.8; dvol/days at strict baseline (1.0/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_att_1p0.json b/configs/experiments/earnings_runup_loose_att_1p0.json new file mode 100644 index 0000000..ace2fae --- /dev/null +++ b/configs/experiments/earnings_runup_loose_att_1p0.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_att_1p0", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.0, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: attention_zscore_20d_min 1.5 -> 1.0; dvol/days at strict baseline (1.0/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_att_1p2.json b/configs/experiments/earnings_runup_loose_att_1p2.json new file mode 100644 index 0000000..9ac7f87 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_att_1p2.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_att_1p2", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.2, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: attention_zscore_20d_min 1.5 -> 1.2; dvol/days at strict baseline (1.0/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_att_1p3.json b/configs/experiments/earnings_runup_loose_att_1p3.json new file mode 100644 index 0000000..c09ff4f --- /dev/null +++ b/configs/experiments/earnings_runup_loose_att_1p3.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_att_1p3", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.3, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: attention_zscore_20d_min 1.5 -> 1.3; dvol/days at strict baseline (1.0/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_att_1p4.json b/configs/experiments/earnings_runup_loose_att_1p4.json new file mode 100644 index 0000000..902a9f4 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_att_1p4.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_att_1p4", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.4, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: attention_zscore_20d_min 1.5 -> 1.4; dvol/days at strict baseline (1.0/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_days_1_12.json b/configs/experiments/earnings_runup_loose_days_1_12.json new file mode 100644 index 0000000..2175e57 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_days_1_12.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_days_1_12", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 1, + "earnings_runup_days_to_earnings_max": 12, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: days_to_earnings window 3-7 -> 1-12; attention/dvol at strict baseline (1.5/1.0).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_days_2_10.json b/configs/experiments/earnings_runup_loose_days_2_10.json new file mode 100644 index 0000000..057c6e4 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_days_2_10.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_days_2_10", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 2, + "earnings_runup_days_to_earnings_max": 10, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: days_to_earnings window 3-7 -> 2-10; attention/dvol at strict baseline (1.5/1.0).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_days_2_8.json b/configs/experiments/earnings_runup_loose_days_2_8.json new file mode 100644 index 0000000..2647edc --- /dev/null +++ b/configs/experiments/earnings_runup_loose_days_2_8.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_days_2_8", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 2, + "earnings_runup_days_to_earnings_max": 8, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: days_to_earnings window 3-7 -> 2-8; attention/dvol at strict baseline (1.5/1.0).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_days_3_10.json b/configs/experiments/earnings_runup_loose_days_3_10.json new file mode 100644 index 0000000..02c8eb1 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_days_3_10.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_days_3_10", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 10, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: days_to_earnings window 3-7 -> 3-10; attention/dvol at strict baseline (1.5/1.0).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_dvol_0p0.json b/configs/experiments/earnings_runup_loose_dvol_0p0.json new file mode 100644 index 0000000..38b7b1a --- /dev/null +++ b/configs/experiments/earnings_runup_loose_dvol_0p0.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_dvol_0p0", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 0.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: dollar_volume_zscore_20d_min 1.0 -> 0.0; attention/days at strict baseline (1.5/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_dvol_0p5.json b/configs/experiments/earnings_runup_loose_dvol_0p5.json new file mode 100644 index 0000000..7591fd0 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_dvol_0p5.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_dvol_0p5", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 0.5, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: dollar_volume_zscore_20d_min 1.0 -> 0.5; attention/days at strict baseline (1.5/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_loose_dvol_0p8.json b/configs/experiments/earnings_runup_loose_dvol_0p8.json new file mode 100644 index 0000000..8d08789 --- /dev/null +++ b/configs/experiments/earnings_runup_loose_dvol_0p8.json @@ -0,0 +1,91 @@ +{ + "experiment_name": "earnings_runup_loose_dvol_0p8", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 0.8, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned", + "loose_sweep" + ], + "version_family": "earnings_runup", + "status": "draft", + "changelog": "Single-axis loosening: dollar_volume_zscore_20d_min 1.0 -> 0.8; attention/days at strict baseline (1.5/3-7).", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null +} \ No newline at end of file diff --git a/configs/experiments/earnings_runup_poc_v2_tuned.json b/configs/experiments/earnings_runup_poc_v2_tuned.json index 7a96baa..0fc47b2 100644 --- a/configs/experiments/earnings_runup_poc_v2_tuned.json +++ b/configs/experiments/earnings_runup_poc_v2_tuned.json @@ -11,8 +11,8 @@ "a_tier_score_threshold": 0.99 }, "risk": { - "per_trade_risk_pct": 0.30, - "per_trade_risk_pct_a_tier": 0.30, + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, "max_daily_new_risk_pct": 50, "max_positions": 8, "max_positions_per_sector": 4, @@ -52,7 +52,9 @@ "strategy_engines": [ { "engine_id": "earnings_runup_preevent_long", - "event_types": ["earnings_runup_preevent"], + "event_types": [ + "earnings_runup_preevent" + ], "timing_class": "after_close", "direction": "long_only", "entry_timing_policy": "next_open", @@ -74,10 +76,18 @@ "enabled": true } ], - "tags": ["earnings_runup", "preevent_drift", "poc", "risk_tuned"], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], "version_family": "earnings_runup", - "status": "draft", + "status": "promoted", "changelog": "v2: wire pct-trailing end-to-end (5% activation / 3% entry-relative giveback); cut per_trade_risk 0.65→0.30; cap max_positions 30→8; add macro_vix_max=30.", "parent": "earnings_runup_poc_v1", - "performance_summary": null + "performance_summary": null, + "aliases": [ + "ER standalone — pre-event drift PEAD adjunct (2026-05-09 PROMOTED)" + ] } diff --git a/configs/experiments/earnings_runup_poc_v2_tuned_fixedcap.json b/configs/experiments/earnings_runup_poc_v2_tuned_fixedcap.json new file mode 100644 index 0000000..773fb25 --- /dev/null +++ b/configs/experiments/earnings_runup_poc_v2_tuned_fixedcap.json @@ -0,0 +1,93 @@ +{ + "experiment_name": "earnings_runup_poc_v2_tuned_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] EarningsRunup PoC v2 with risk-tuned exits. v1 baseline: +37.27% return, MDD 53.23% (raw) / 44.46% (SQS risk component), SQS 45.2. Changes: (a) wire pct-trailing end-to-end via new trailing_pct_activation/trailing_pct_giveback fields \u2192 trailing only arms after +5% peak P&L, then locks in (peak_pnl - 3%) of entry; (b) per_trade_risk_pct 0.65 \u2192 0.30 (halve sizing); (c) max_positions 30 \u2192 8 (concentration cap); (d) macro_vix_max 30 (skip earnings runup setups in macro stress). Goal: cut MDD from ~53% to <25% while preserving the +37% return signal.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": true + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], + "version_family": "earnings_runup", + "status": "promoted", + "changelog": "[FIXED CAPITAL] v2: wire pct-trailing end-to-end (5% activation / 3% entry-relative giveback); cut per_trade_risk 0.65\u21920.30; cap max_positions 30\u21928; add macro_vix_max=30.", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null, + "aliases": [ + "ER standalone \u2014 pre-event drift PEAD adjunct (2026-05-09 PROMOTED)" + ] +} \ No newline at end of file diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep01_corr065.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep01_corr065.json new file mode 100644 index 0000000..24f9ac7 --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep01_corr065.json @@ -0,0 +1,89 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep01_corr065", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep01: peer_sympathy_correlation_min 0.55 -> 0.65. Parent: peer_sympathy_poc_v2_reaction_close. Tests whether tighter correlation gate filters out weak sympathies and pushes return positive.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.65, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 2, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep01: corr_min 0.55 -> 0.65", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep02_corr075.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep02_corr075.json new file mode 100644 index 0000000..f4be3a0 --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep02_corr075.json @@ -0,0 +1,89 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep02_corr075", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep02: peer_sympathy_correlation_min 0.55 -> 0.75. Parent: peer_sympathy_poc_v2_reaction_close. Aggressive correlation gate.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.75, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 2, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep02: corr_min 0.55 -> 0.75", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep03_reaction010.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep03_reaction010.json new file mode 100644 index 0000000..6831d77 --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep03_reaction010.json @@ -0,0 +1,89 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep03_reaction010", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep03: peer_sympathy_leader_reaction_min 0.05 -> 0.10. Parent: peer_sympathy_poc_v2_reaction_close. Requires bigger leader move (>=10%) before triggering peer sympathy.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.10, + "peer_sympathy_correlation_min": 0.55, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 2, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep03: leader_reaction_min 0.05 -> 0.10", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep04_topn1.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep04_topn1.json new file mode 100644 index 0000000..bf211a9 --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep04_topn1.json @@ -0,0 +1,89 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep04_topn1", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep04: peer_sympathy_top_n_peers 2 -> 1. Parent: peer_sympathy_poc_v2_reaction_close. Only the single most-correlated peer per leader event.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.55, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 1, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep04: top_n_peers 2 -> 1", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep05_earningsonly.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep05_earningsonly.json new file mode 100644 index 0000000..94175bd --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep05_earningsonly.json @@ -0,0 +1,85 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep05_earningsonly", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep05: peer_sympathy_leader_event_types -> [earnings_release] only. Parent: peer_sympathy_poc_v2_reaction_close. Eliminates guidance_update and material_contract leaders.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": ["earnings_release"], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.55, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 2, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep05: leader_event_types -> [earnings_release] only", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep06_corr075_topn1.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep06_corr075_topn1.json new file mode 100644 index 0000000..b527090 --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep06_corr075_topn1.json @@ -0,0 +1,89 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep06_corr075_topn1", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep06 combo: corr_min 0.75 + top_n 1. Parent: peer_sympathy_poc_v2_reaction_close. Combines the two best single-lever changes from sweep01-05.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.75, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 1, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep", "combo"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep06 combo: corr_min 0.75 + top_n 1 (combo of sweep02 + sweep04)", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep07_corr080.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep07_corr080.json new file mode 100644 index 0000000..9fec54c --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep07_corr080.json @@ -0,0 +1,89 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep07_corr080", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep07: peer_sympathy_correlation_min 0.55 -> 0.80. Parent: peer_sympathy_poc_v2_reaction_close. Tests if even tighter correlation (top tier of co-movement) extends the gain trend from sweep01 (0.65) -> sweep02 (0.75).", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.80, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 2, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep07: corr_min 0.55 -> 0.80 (extends sweep02 trend)", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep08_corr075_vix30.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep08_corr075_vix30.json new file mode 100644 index 0000000..6ddd631 --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep08_corr075_vix30.json @@ -0,0 +1,90 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep08_corr075_vix30", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep08 combo: corr_min 0.75 + macro_vix_max 30. Parent: peer_sympathy_poc_v2_reaction_close. Adds PEAD-style VIX risk-off gate to the best single-lever winner.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "macro_vix_max": 30.0, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.75, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 2, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep", "combo"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep08 combo: corr_min 0.75 + macro_vix_max 30", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep09_corr085.json b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep09_corr085.json new file mode 100644 index 0000000..33e0c49 --- /dev/null +++ b/configs/experiments/peer_sympathy_poc_v2_reaction_close_sweep09_corr085.json @@ -0,0 +1,89 @@ +{ + "experiment_name": "peer_sympathy_poc_v2_reaction_close_sweep09_corr085", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Sweep09: peer_sympathy_correlation_min 0.55 -> 0.85. Parent: peer_sympathy_poc_v2_reaction_close. Tests if the corr gradient continues past 0.80; we saw 0.55=-2.35%, 0.65=+11%, 0.75=+15.8%, 0.80=+14.1% with SQS 80.2.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.65, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 30, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 1.75, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 7, + "max_holding_days": 3, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "peer_sympathy": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 3 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "peer_sympathy_long_reaction_close", + "event_types": ["peer_sympathy"], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 3, + "peer_sympathy_enabled": true, + "peer_sympathy_entry_timing_policy": "reaction_close", + "peer_sympathy_leader_filing_time_buckets": ["pre_market", "regular_hours"], + "peer_sympathy_leader_event_types": [ + "earnings_release", + "guidance_update", + "material_contract" + ], + "peer_sympathy_leader_reaction_min": 0.05, + "peer_sympathy_correlation_min": 0.85, + "peer_sympathy_correlation_window_start": 65, + "peer_sympathy_correlation_window_end_skip": 5, + "peer_sympathy_top_n_peers": 2, + "peer_sympathy_blackout_days_to_peer_event": 3, + "peer_sympathy_stop_pct": 0.035, + "peer_sympathy_target_pct": 0.06, + "peer_sympathy_max_holding_days": 3, + "leader_follower_min_days_to_event": 3, + "enabled": true + } + ], + "tags": ["peer_sympathy", "sympathy_rally", "poc", "salvage_v2", "reaction_close", "sweep"], + "version_family": "peer_sympathy", + "status": "draft", + "changelog": "Sweep09: corr_min 0.55 -> 0.85", + "parent": "peer_sympathy_poc_v2_reaction_close", + "performance_summary": null +} diff --git a/configs/experiments/phaseA_pead_pure_no_sleeves.json b/configs/experiments/phaseA_pead_pure_no_sleeves.json new file mode 100644 index 0000000..1e15a13 --- /dev/null +++ b/configs/experiments/phaseA_pead_pure_no_sleeves.json @@ -0,0 +1,643 @@ +{ + "experiment_name": "phaseA_pead_pure_no_sleeves", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase A comparison: v7.356 engines ONLY, all 5 sleeves disabled, no cash_parking. Fair head-to-head baseline vs ER standalone vs xsmom standalone.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "PEAD pure \u2014 all 5 sleeves disabled for clean engine comparison.", + "parent": "return_max_long_v7.356_composed_gld_compound", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseA_pead_pure_no_sleeves_fixedcap.json b/configs/experiments/phaseA_pead_pure_no_sleeves_fixedcap.json new file mode 100644 index 0000000..a2427ad --- /dev/null +++ b/configs/experiments/phaseA_pead_pure_no_sleeves_fixedcap.json @@ -0,0 +1,643 @@ +{ + "experiment_name": "phaseA_pead_pure_no_sleeves_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase A comparison: v7.356 engines ONLY, all 5 sleeves disabled, no cash_parking. Fair head-to-head baseline vs ER standalone vs xsmom standalone.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": true + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "[FIXED CAPITAL] PEAD pure \u2014 all 5 sleeves disabled for clean engine comparison.", + "parent": "phaseA_pead_pure_no_sleeves", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseB_er_plus_xsmom.json b/configs/experiments/phaseB_er_plus_xsmom.json new file mode 100644 index 0000000..d62984a --- /dev/null +++ b/configs/experiments/phaseB_er_plus_xsmom.json @@ -0,0 +1,130 @@ +{ + "experiment_name": "phaseB_er_plus_xsmom", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase B: ER + xsmom only (no PEAD engines, no sleeves). Pure two-engine portfolio. ER + xsmom Phase 20 regime filter. Both as silos 50/50.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false, + "trailing_model": null, + "no_follow_through_exit": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.5 + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], + "version_family": "earnings_runup", + "status": "promoted", + "changelog": "Phase B: ER + xsmom (silo 50/50, no PEAD, no sleeves).", + "parent": null, + "performance_summary": null, + "aliases": [ + "ER + xsmom combined (no PEAD, no sleeves) — beats PEAD pure in both regimes" + ] +} diff --git a/configs/experiments/phaseB_er_plus_xsmom_fixedcap.json b/configs/experiments/phaseB_er_plus_xsmom_fixedcap.json new file mode 100644 index 0000000..1c21f16 --- /dev/null +++ b/configs/experiments/phaseB_er_plus_xsmom_fixedcap.json @@ -0,0 +1,130 @@ +{ + "experiment_name": "phaseB_er_plus_xsmom_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase B: ER + xsmom only (no PEAD engines, no sleeves). Pure two-engine portfolio. ER + xsmom Phase 20 regime filter. Both as silos 50/50.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": true + }, + "execution": { + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false, + "trailing_model": null, + "no_follow_through_exit": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.5 + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], + "version_family": "earnings_runup", + "status": "promoted", + "changelog": "[FIXED CAPITAL] Phase B: ER + xsmom (silo 50/50, no PEAD, no sleeves).", + "parent": "phaseB_er_plus_xsmom", + "performance_summary": null, + "aliases": [ + "ER + xsmom combined (no PEAD, no sleeves) \u2014 beats PEAD pure in both regimes" + ] +} \ No newline at end of file diff --git a/configs/experiments/phaseC_er_plus_sleeves.json b/configs/experiments/phaseC_er_plus_sleeves.json new file mode 100644 index 0000000..f8bf8c7 --- /dev/null +++ b/configs/experiments/phaseC_er_plus_sleeves.json @@ -0,0 +1,93 @@ +{ + "experiment_name": "phaseC_er_plus_sleeves", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase C: ER standalone + 5 sleeves (cash_parking, idle_alpha, form4, ownership, risk_off). No PEAD engines, no xsmom.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy", + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], + "version_family": "earnings_runup", + "status": "promoted", + "changelog": "Phase C: ER + 5 sleeves.", + "parent": "earnings_runup_poc_v2_tuned", + "performance_summary": null, + "aliases": [ + "Phase C (ER + 5 sleeves) — SQS avg 84.2 #2" + ] +} diff --git a/configs/experiments/phaseC_er_plus_sleeves_fixedcap.json b/configs/experiments/phaseC_er_plus_sleeves_fixedcap.json new file mode 100644 index 0000000..936aa0b --- /dev/null +++ b/configs/experiments/phaseC_er_plus_sleeves_fixedcap.json @@ -0,0 +1,93 @@ +{ + "experiment_name": "phaseC_er_plus_sleeves_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase C: ER standalone + 5 sleeves (cash_parking, idle_alpha, form4, ownership, risk_off). No PEAD engines, no xsmom.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": true + }, + "execution": { + "trailing_warmup_days": 0, + "max_holding_days": 7, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy", + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], + "version_family": "earnings_runup", + "status": "promoted", + "changelog": "[FIXED CAPITAL] Phase C: ER + 5 sleeves.", + "parent": "phaseC_er_plus_sleeves", + "performance_summary": null, + "aliases": [ + "Phase C (ER + 5 sleeves) \u2014 SQS avg 84.2 #2" + ] +} \ No newline at end of file diff --git a/configs/experiments/phaseD_xsmom_plus_sleeves.json b/configs/experiments/phaseD_xsmom_plus_sleeves.json new file mode 100644 index 0000000..0e394ea --- /dev/null +++ b/configs/experiments/phaseD_xsmom_plus_sleeves.json @@ -0,0 +1,97 @@ +{ + "experiment_name": "phaseD_xsmom_plus_sleeves", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase D: xsmom Phase 20 + 5 sleeves (cash_parking, idle_alpha, form4, ownership, risk_off). No PEAD, no ER.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 30, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 100, + "max_positions": 20, + "max_positions_per_sector": 10, + "max_position_value_pct": 5, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 5.0, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "trailing_model": null, + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "no_follow_through_exit": false, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy", + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true + } + ], + "tags": [ + "xsmom", + "phase20", + "regime_filter", + "mdd_reduction" + ], + "version_family": "xsmom", + "status": "promoted", + "changelog": "Phase D: xsmom + 5 sleeves.", + "parent": "xsmom_v2_regime_mdd", + "performance_summary": null, + "missing_infrastructure": [], + "aliases": [ + "Phase D (xsmom + 5 sleeves) — SQS avg 82.5 #3, highest returns but MDD 35%" + ] +} diff --git a/configs/experiments/phaseD_xsmom_plus_sleeves_fixedcap.json b/configs/experiments/phaseD_xsmom_plus_sleeves_fixedcap.json new file mode 100644 index 0000000..afe48ed --- /dev/null +++ b/configs/experiments/phaseD_xsmom_plus_sleeves_fixedcap.json @@ -0,0 +1,97 @@ +{ + "experiment_name": "phaseD_xsmom_plus_sleeves_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase D: xsmom Phase 20 + 5 sleeves (cash_parking, idle_alpha, form4, ownership, risk_off). No PEAD, no ER.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 30, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 100, + "max_positions": 20, + "max_positions_per_sector": 10, + "max_position_value_pct": 5, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 5.0, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": true + }, + "execution": { + "trailing_model": null, + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "no_follow_through_exit": false, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy", + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true + } + ], + "tags": [ + "xsmom", + "phase20", + "regime_filter", + "mdd_reduction" + ], + "version_family": "xsmom", + "status": "promoted", + "changelog": "[FIXED CAPITAL] Phase D: xsmom + 5 sleeves.", + "parent": "phaseD_xsmom_plus_sleeves", + "performance_summary": null, + "missing_infrastructure": [], + "aliases": [ + "Phase D (xsmom + 5 sleeves) \u2014 SQS avg 82.5 #3, highest returns but MDD 35%" + ] +} \ No newline at end of file diff --git a/configs/experiments/phaseE_er_plus_xsmom_plus_sleeves.json b/configs/experiments/phaseE_er_plus_xsmom_plus_sleeves.json new file mode 100644 index 0000000..fe4fa41 --- /dev/null +++ b/configs/experiments/phaseE_er_plus_xsmom_plus_sleeves.json @@ -0,0 +1,130 @@ +{ + "experiment_name": "phaseE_er_plus_xsmom_plus_sleeves", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase E: ER + xsmom + all 5 v7.356 sleeves (cash_parking, idle_alpha, form4, ownership, risk_off). Combines best engine alpha (Phase B beat PEAD pure +199pp on regular, +72pp on OOT) with sleeve compounding (Phase A->v7.356 showed +704pp from sleeves alone). Hypothesis: ER+xsmom engine alpha + 5 sleeves should beat v7.356 in both regimes.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false, + "trailing_model": null, + "no_follow_through_exit": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy", + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.5 + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], + "version_family": "earnings_runup", + "status": "promoted", + "changelog": "Phase E: B + 5 sleeves. Test of whether non-PEAD engine alpha + sleeves beats PEAD baseline.", + "parent": "phaseB_er_plus_xsmom", + "performance_summary": null, + "aliases": [ + "Phase E TRUE CHAMPION (SQS) — ER+xsmom+5 sleeves; SQS Reg 87.5 + OOT 86.7 = avg 87.1 (best); MDD 13% both regimes" + ] +} diff --git a/configs/experiments/phaseE_er_plus_xsmom_plus_sleeves_fixedcap.json b/configs/experiments/phaseE_er_plus_xsmom_plus_sleeves_fixedcap.json new file mode 100644 index 0000000..82161d2 --- /dev/null +++ b/configs/experiments/phaseE_er_plus_xsmom_plus_sleeves_fixedcap.json @@ -0,0 +1,130 @@ +{ + "experiment_name": "phaseE_er_plus_xsmom_plus_sleeves_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase E: ER + xsmom + all 5 v7.356 sleeves (cash_parking, idle_alpha, form4, ownership, risk_off). Combines best engine alpha (Phase B beat PEAD pure +199pp on regular, +72pp on OOT) with sleeve compounding (Phase A->v7.356 showed +704pp from sleeves alone). Hypothesis: ER+xsmom engine alpha + 5 sleeves should beat v7.356 in both regimes.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 50, + "max_positions": 8, + "max_positions_per_sector": 4, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": true + }, + "execution": { + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "lookback_entry_enabled": false, + "trailing_model": null, + "no_follow_through_exit": false + }, + "event_type_profiles": { + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy", + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.5 + } + ], + "tags": [ + "earnings_runup", + "preevent_drift", + "poc", + "risk_tuned" + ], + "version_family": "earnings_runup", + "status": "promoted", + "changelog": "[FIXED CAPITAL] Phase E: B + 5 sleeves. Test of whether non-PEAD engine alpha + sleeves beats PEAD baseline.", + "parent": "phaseE_er_plus_xsmom_plus_sleeves", + "performance_summary": null, + "aliases": [ + "Phase E TRUE CHAMPION (SQS) \u2014 ER+xsmom+5 sleeves; SQS Reg 87.5 + OOT 86.7 = avg 87.1 (best); MDD 13% both regimes" + ] +} \ No newline at end of file diff --git a/configs/experiments/phaseF1_v7356_er15_xs15.json b/configs/experiments/phaseF1_v7356_er15_xs15.json new file mode 100644 index 0000000..b7ba47d --- /dev/null +++ b/configs/experiments/phaseF1_v7356_er15_xs15.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF1_v7356_er15_xs15", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F1: v7.356 + ER silo 15% + xsmom silo 15%. Conservative all-three combination. Tests if dual-silo alpha exceeds PEAD opportunity cost.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_15", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.15 + }, + { + "engine_id": "xsmom_silo_15", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.15 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "return_max_long_v7.356_composed_gld_compound", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF2_v7356_er20_xs25.json b/configs/experiments/phaseF2_v7356_er20_xs25.json new file mode 100644 index 0000000..c2a9635 --- /dev/null +++ b/configs/experiments/phaseF2_v7356_er20_xs25.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF2_v7356_er20_xs25", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F2: v7.356 + ER silo 20% + xsmom silo 25%. Mid combination.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_20", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.2 + }, + { + "engine_id": "xsmom_silo_25", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.25 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "return_max_long_v7.356_composed_gld_compound", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF3_v7356_er30_xs30.json b/configs/experiments/phaseF3_v7356_er30_xs30.json new file mode 100644 index 0000000..51a2be8 --- /dev/null +++ b/configs/experiments/phaseF3_v7356_er30_xs30.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF3_v7356_er30_xs30", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F3: v7.356 + ER silo 30% + xsmom silo 30%. Aggressive \u2014 PEAD share ~40%.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_30", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.3 + }, + { + "engine_id": "xsmom_silo_30", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.3 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "return_max_long_v7.356_composed_gld_compound", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF4_v7356_er40_xs40.json b/configs/experiments/phaseF4_v7356_er40_xs40.json new file mode 100644 index 0000000..4c14f91 --- /dev/null +++ b/configs/experiments/phaseF4_v7356_er40_xs40.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF4_v7356_er40_xs40", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F4: v7.356 + ER silo 40% + xsmom silo 40%. PEAD ~20% effective.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_40", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.4 + }, + { + "engine_id": "xsmom_silo_40", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.4 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "phaseF3_v7356_er30_xs30", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF5_v7356_er50_xs50.json b/configs/experiments/phaseF5_v7356_er50_xs50.json new file mode 100644 index 0000000..dec63c0 --- /dev/null +++ b/configs/experiments/phaseF5_v7356_er50_xs50.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF5_v7356_er50_xs50", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F5: v7.356 + ER silo 50% + xsmom silo 50%. PEAD residual capital.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_50", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_silo_50", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.5 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "phaseF3_v7356_er30_xs30", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF5_v7356_er50_xs50_fixedcap.json b/configs/experiments/phaseF5_v7356_er50_xs50_fixedcap.json new file mode 100644 index 0000000..2901cc2 --- /dev/null +++ b/configs/experiments/phaseF5_v7356_er50_xs50_fixedcap.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF5_v7356_er50_xs50_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase F5: v7.356 + ER silo 50% + xsmom silo 50%. PEAD residual capital.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": true + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_50", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_silo_50", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.5 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "[FIXED CAPITAL] Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "phaseF5_v7356_er50_xs50", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF6_v7356_er60_xs60.json b/configs/experiments/phaseF6_v7356_er60_xs60.json new file mode 100644 index 0000000..11e8d05 --- /dev/null +++ b/configs/experiments/phaseF6_v7356_er60_xs60.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF6_v7356_er60_xs60", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F6: 60/60 (over-100% nominal silo).", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_60", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.6 + }, + { + "engine_id": "xsmom_silo_60", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.6 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "phaseF5_v7356_er50_xs50", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF7_v7356_er50_xs30.json b/configs/experiments/phaseF7_v7356_er50_xs30.json new file mode 100644 index 0000000..3771bf9 --- /dev/null +++ b/configs/experiments/phaseF7_v7356_er50_xs30.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF7_v7356_er50_xs30", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F7: asymmetric \u2014 heavier ER (50/30).", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_50", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_silo_30", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.3 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "phaseF5_v7356_er50_xs50", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF7_v7356_er50_xs30_fixedcap.json b/configs/experiments/phaseF7_v7356_er50_xs30_fixedcap.json new file mode 100644 index 0000000..c1b3197 --- /dev/null +++ b/configs/experiments/phaseF7_v7356_er50_xs30_fixedcap.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF7_v7356_er50_xs30_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase F7: asymmetric \u2014 heavier ER (50/30).", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": true + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_50", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.5 + }, + { + "engine_id": "xsmom_silo_30", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.3 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "[FIXED CAPITAL] Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "phaseF7_v7356_er50_xs30", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/phaseF8_v7356_er30_xs50.json b/configs/experiments/phaseF8_v7356_er30_xs50.json new file mode 100644 index 0000000..c761304 --- /dev/null +++ b/configs/experiments/phaseF8_v7356_er30_xs50.json @@ -0,0 +1,707 @@ +{ + "experiment_name": "phaseF8_v7356_er30_xs50", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase F8: asymmetric \u2014 heavier xsmom (30/50).", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + }, + "earnings_runup_preevent": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 7 + }, + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "er_silo_30", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 1.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "enabled": true, + "capital_bucket_id": "er_silo", + "capital_bucket_allocation_pct": 0.3 + }, + { + "engine_id": "xsmom_silo_50", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true, + "capital_bucket_id": "xsmom_silo", + "capital_bucket_allocation_pct": 0.5 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "de-risk" + ], + "notes": "Add macro_vix_max to reaction_close_long_core on top of v6new.350 to keep current split/WFV while sharply improving matched stress OOT.", + "aliases": [ + "conviction", + "v7.119 \u2014 12-engine composite champion (SQS 92.4, 493% standalone)" + ], + "version_family": "v7", + "created_at": "2026-04-10T09:21:41.353437+00:00", + "created_by": "ai_agent", + "status": "promoted", + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "phaseF5_v7356_er50_xs50", + "id": 1348, + "performance_summary": null, + "has_journal_entry": true +} \ No newline at end of file diff --git a/configs/experiments/return_max_long_v7.356_composed_gld_compound.json b/configs/experiments/return_max_long_v7.356_composed_gld_compound.json index 4942379..23c3ced 100644 --- a/configs/experiments/return_max_long_v7.356_composed_gld_compound.json +++ b/configs/experiments/return_max_long_v7.356_composed_gld_compound.json @@ -1,6 +1,6 @@ { "experiment_name": "return_max_long_v7.356_composed_gld_compound", - "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", "description": "v7.118 + 6 per-engine exit/veto optimizations. 12개 엔진. Standalone SQS 92.4 (493% return).\nBEST conservative: tqqq_calm_v2 + sleeves = 3029.38% CW, SQS 89.2\nBEST aggressive: tqqq_active_v2 + sleeves = 3245.24% CW, SQS 89.2\nParking v3: gate_vol 0.35, TQQQ vol 0.22, temp 1.0, entropy 1.45 (1.15→1.45)\nLineage: v7.70→v7.110→v7.113→v7.114→v7.115→v7.116→v7.117→v7.118→v7.119", "base_config": "configs/backtest/return_max_long_v1.json", "overrides": { @@ -630,13 +630,13 @@ "v7.119 — 12-engine composite champion (SQS 92.4, 493% standalone)" ], "version_family": "v7", - "created_at": "2026-04-11T06:39:59.231482+00:00", + "created_at": "2026-04-10T09:21:41.353437+00:00", "created_by": "ai_agent", "status": "promoted", - "generation": 46, - "changelog": "Cloned from return_max_long_v7.356_composed_gld", - "parent": "return_max_long_v7.356_composed_gld", - "id": 1351, + "generation": 45, + "changelog": "Bullish recovery: mhd 10 only (isolate mhd effect from target_1_r)", + "parent": "return_max_long_v7.349_composed_gld", + "id": 1348, "performance_summary": null, - "has_journal_entry": false + "has_journal_entry": true } diff --git a/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dte4to6.json b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dte4to6.json new file mode 100644 index 0000000..b59ca4d --- /dev/null +++ b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dte4to6.json @@ -0,0 +1,666 @@ +{ + "experiment_name": "return_max_long_v7.356_plus_er_silo15_strict_az20_dte4to6", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "v7.118 + 6 per-engine exit/veto optimizations. 12개 엔진. Standalone SQS 92.4 (493% return).\nBEST conservative: tqqq_calm_v2 + sleeves = 3029.38% CW, SQS 89.2\nBEST aggressive: tqqq_active_v2 + sleeves = 3245.24% CW, SQS 89.2\nParking v3: gate_vol 0.35, TQQQ vol 0.22, temp 1.0, entropy 1.45 (1.15→1.45)\nLineage: v7.70→v7.110→v7.113→v7.114→v7.115→v7.116→v7.117→v7.118→v7.119", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 4, + "earnings_runup_days_to_earnings_max": 6, + "earnings_runup_attention_zscore_20d_min": 2.0, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "per_trade_risk_pct_override": 0.3, + "capital_bucket_id": "earnings_runup", + "enabled": true, + "capital_bucket_allocation_pct": 0.15 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "earnings_runup", + "capital_silo", + "sweep", + "er_strict_sweep_phase12" + ], + "notes": "ER strict threshold variant az20_dte4to6. Sweep over silo_15.", + "aliases": [ + "v7.356_plus_er_silo15_strict_az20_dte4to6" + ], + "version_family": "v7", + "status": "draft", + "changelog": "Phase 12 ER threshold sweep on silo_15. attention_z>=2.0, dvz>=1.0, days_to_earnings=4-6. Hypothesis: tighter ER thresholds -> fewer/higher-conviction trades -> better OOS. Goal: see if any variant gives Δret>=0 AND ΔSharpe>=-0.1 vs v7.356 on all 3 splits.", + "parent": "return_max_long_v7.356_plus_er_silo_15" +} \ No newline at end of file diff --git a/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz10.json b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz10.json new file mode 100644 index 0000000..ba55f7e --- /dev/null +++ b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz10.json @@ -0,0 +1,666 @@ +{ + "experiment_name": "return_max_long_v7.356_plus_er_silo15_strict_az20_dvz10", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "v7.118 + 6 per-engine exit/veto optimizations. 12개 엔진. Standalone SQS 92.4 (493% return).\nBEST conservative: tqqq_calm_v2 + sleeves = 3029.38% CW, SQS 89.2\nBEST aggressive: tqqq_active_v2 + sleeves = 3245.24% CW, SQS 89.2\nParking v3: gate_vol 0.35, TQQQ vol 0.22, temp 1.0, entropy 1.45 (1.15→1.45)\nLineage: v7.70→v7.110→v7.113→v7.114→v7.115→v7.116→v7.117→v7.118→v7.119", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 2.0, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "per_trade_risk_pct_override": 0.3, + "capital_bucket_id": "earnings_runup", + "enabled": true, + "capital_bucket_allocation_pct": 0.15 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "earnings_runup", + "capital_silo", + "sweep", + "er_strict_sweep_phase12" + ], + "notes": "ER strict threshold variant az20_dvz10. Sweep over silo_15.", + "aliases": [ + "v7.356_plus_er_silo15_strict_az20_dvz10" + ], + "version_family": "v7", + "status": "draft", + "changelog": "Phase 12 ER threshold sweep on silo_15. attention_z>=2.0, dvz>=1.0, days_to_earnings=3-7. Hypothesis: tighter ER thresholds -> fewer/higher-conviction trades -> better OOS. Goal: see if any variant gives Δret>=0 AND ΔSharpe>=-0.1 vs v7.356 on all 3 splits.", + "parent": "return_max_long_v7.356_plus_er_silo_15" +} \ No newline at end of file diff --git a/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz15.json b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz15.json new file mode 100644 index 0000000..4c7a680 --- /dev/null +++ b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az20_dvz15.json @@ -0,0 +1,666 @@ +{ + "experiment_name": "return_max_long_v7.356_plus_er_silo15_strict_az20_dvz15", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "v7.118 + 6 per-engine exit/veto optimizations. 12개 엔진. Standalone SQS 92.4 (493% return).\nBEST conservative: tqqq_calm_v2 + sleeves = 3029.38% CW, SQS 89.2\nBEST aggressive: tqqq_active_v2 + sleeves = 3245.24% CW, SQS 89.2\nParking v3: gate_vol 0.35, TQQQ vol 0.22, temp 1.0, entropy 1.45 (1.15→1.45)\nLineage: v7.70→v7.110→v7.113→v7.114→v7.115→v7.116→v7.117→v7.118→v7.119", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 2.0, + "earnings_runup_dollar_volume_zscore_20d_min": 1.5, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "per_trade_risk_pct_override": 0.3, + "capital_bucket_id": "earnings_runup", + "enabled": true, + "capital_bucket_allocation_pct": 0.15 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "earnings_runup", + "capital_silo", + "sweep", + "er_strict_sweep_phase12" + ], + "notes": "ER strict threshold variant az20_dvz15. Sweep over silo_15.", + "aliases": [ + "v7.356_plus_er_silo15_strict_az20_dvz15" + ], + "version_family": "v7", + "status": "draft", + "changelog": "Phase 12 ER threshold sweep on silo_15. attention_z>=2.0, dvz>=1.5, days_to_earnings=3-7. Hypothesis: tighter ER thresholds -> fewer/higher-conviction trades -> better OOS. Goal: see if any variant gives Δret>=0 AND ΔSharpe>=-0.1 vs v7.356 on all 3 splits.", + "parent": "return_max_long_v7.356_plus_er_silo_15" +} \ No newline at end of file diff --git a/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az25_dvz10.json b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az25_dvz10.json new file mode 100644 index 0000000..a5391e8 --- /dev/null +++ b/configs/experiments/return_max_long_v7.356_plus_er_silo15_strict_az25_dvz10.json @@ -0,0 +1,666 @@ +{ + "experiment_name": "return_max_long_v7.356_plus_er_silo15_strict_az25_dvz10", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "v7.118 + 6 per-engine exit/veto optimizations. 12개 엔진. Standalone SQS 92.4 (493% return).\nBEST conservative: tqqq_calm_v2 + sleeves = 3029.38% CW, SQS 89.2\nBEST aggressive: tqqq_active_v2 + sleeves = 3245.24% CW, SQS 89.2\nParking v3: gate_vol 0.35, TQQQ vol 0.22, temp 1.0, entropy 1.45 (1.15→1.45)\nLineage: v7.70→v7.110→v7.113→v7.114→v7.115→v7.116→v7.117→v7.118→v7.119", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.45, + "max_candidates_per_day": 18, + "a_tier_score_threshold": 0.58 + }, + "risk": { + "per_trade_risk_pct": 0.65, + "per_trade_risk_pct_a_tier": 0.715, + "max_daily_new_risk_pct": 50, + "max_positions": 30, + "max_positions_per_sector": 5, + "max_position_value_pct": 25, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 3, + "allow_budget_downsizing": true, + "cash_parking_preset": "qqqm_low_dd_tqqq_active_v2_gld_brake_v2", + "fixed_capital_sizing": false + }, + "execution": { + "a_tier_target_1_r": 3.5, + "a_tier_target_1_fraction": 0, + "non_a_tier_target_1_r": 2.25, + "non_a_tier_target_1_fraction": 0, + "trailing_warmup_days": 7, + "max_holding_days": 12, + "early_failure_no_progress_days": 1, + "early_failure_no_progress_r": 0.15, + "early_failure_no_progress_fraction": 1, + "lookback_entry_enabled": true + }, + "event_type_profiles": { + "material_contract": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "other_material_event": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 20 + }, + "unknown": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 12 + } + }, + "idle_alpha_sleeve_preset": "micro_event_alpha_plus_event_plus_cash_convex_microcap8_guarded", + "form4_capture_sleeve_preset": "reserve_form4_cluster_plus_fresh_same_day_v3_aggressive_plus_cooldown180_high_maxval500m", + "ownership_capture_sleeve_preset": "ownership_13d_raise_reserve_ultra_balanced_purpose_plus_cooldown90_r95", + "risk_off_alpha_sleeve_preset": "risk_off_alpha_gld_crisis65_heavy" + }, + "strategy_engines": [ + { + "engine_id": "next_open_long_unknown_material_patient", + "_disabled_reason": "LOO: removing adds +234pp CW on ftb_fix_v2", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.25, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.15, + "close_location_min": 0.5, + "close_location_max": 0.85, + "gap_size_min": 0, + "gap_size_max": 0.02, + "volume_ratio_min": 0.8, + "volume_ratio_max": 2, + "max_market_cap_proxy": 10000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.45, + "next_open_gap_cap_pct": 0.02, + "early_failure_close_below_entry_and_reaction_close_override": true, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "min_market_cap_proxy": 5000000000, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_core", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.18, + "close_location_min": 0.45, + "volume_ratio_min": 1, + "gap_size_min": 0, + "weak_reaction_threshold": 0.03, + "weak_reaction_gap_max": 0.02, + "unknown_direction_reaction_min": 0.05, + "unknown_direction_close_location_min": 0.7, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.42, + "enabled": true, + "residual_reserve_selected": true, + "mixed_inline_close_location_max": 0.88, + "mixed_inline_gap_size_max": 0.1, + "unknown_inline_exit_close_location_min": 0.9, + "unknown_inline_exit_gap_size_max": 0.04, + "unknown_inline_early_failure_no_progress_days_override": 2, + "unknown_inline_early_failure_no_progress_r_override": 0.1, + "unknown_inline_early_failure_no_progress_fraction_override": 1, + "per_trade_risk_pct_override": 1.39, + "trailing_warmup_days_override": 8, + "macro_vix_max": 30, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_r_override": 0.2 + }, + { + "engine_id": "reaction_close_long_residual_lowclose_gap_d3", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.35, + "close_location_max": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "residual_reserve_selected": true, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 3, + "early_failure_no_progress_r_override": 0.25, + "early_failure_no_progress_fraction_override": 1, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_residual_smallcap_gap", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.12, + "reaction_day_return_min": 0.03, + "reaction_day_return_max": 0.2, + "close_location_min": 0.45, + "volume_ratio_min": 1.25, + "gap_size_min": 0.05, + "gap_size_max": 0.1, + "max_market_cap_proxy": 10000000000, + "score_threshold_override": 0.35, + "target_1_r_override": 3, + "target_1_fraction_override": 0, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "reaction_close_long_extreme_orderly", + "event_types": [ + "earnings_release", + "guidance_update" + ], + "timing_class": "same_day", + "direction": "long_only", + "entry_timing_policy": "reaction_close", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.35, + "reaction_day_return_min": 0.2, + "reaction_day_return_max": 0.4, + "close_location_min": 0.83, + "volume_ratio_min": 6, + "gap_size_min": 0, + "gap_size_max": 0.15, + "attention_max_wiki_spike_10d": 6, + "score_threshold_override": 0.65, + "enabled": true, + "target_1_r_override": 99, + "target_1_fraction_override": 0, + "trailing_warmup_days_override": 8, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": null, + "early_failure_no_progress_r_override": null, + "early_failure_no_progress_fraction_override": null, + "per_trade_risk_pct_override": 1.5, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_inline_hivol", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.1, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.06, + "close_location_min": 0.74, + "close_location_max": 0.86, + "gap_size_min": 0, + "gap_size_max": 0.04, + "volume_ratio_min": 2.1, + "volume_ratio_max": 2.8, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_oneoff_penalty_override": 1, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "per_trade_risk_pct_override": 1.95, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_guidance_unknown_orderly", + "event_types": [ + "guidance_update" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.0675, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.05, + "close_location_min": 0.9, + "gap_size_min": -0.02, + "gap_size_max": 0.03, + "volume_ratio_min": 0.8, + "min_market_cap_proxy": 9000000000, + "document_quality_score_min": 0.52, + "parse_confidence_overall_min": 0.48, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 4, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 15, + "enabled": true, + "veto_parse_confidence_min_override": 0.48, + "per_trade_risk_pct_override": 0.98, + "stop_atr_multiplier_override": 2, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_earnings_mixed_inline_orderly", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "inline_or_maintained" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": -0.03, + "reaction_day_return_max": 0.06, + "close_location_min": 0.5, + "gap_size_min": -0.02, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": true, + "veto_parse_confidence_min_override": 0.5, + "per_trade_risk_pct_override": 1.34, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_material_orderly", + "event_types": [ + "material_contract" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.02, + "reaction_day_return_max": 0.07, + "close_location_min": 0.5, + "close_location_max": 0.8, + "gap_size_min": -0.02, + "gap_size_max": 0.02, + "volume_ratio_min": 0.9, + "volume_ratio_max": 1.4, + "min_market_cap_proxy": 10000000000, + "max_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.45, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.03, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 15, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.45, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30, + "_disabled_reason": "LOO v7.132: +37pp delta" + }, + { + "engine_id": "next_open_long_megacap_material_contract_orderly", + "event_types": [ + "material_contract", + "other_material_event" + ], + "event_directions": [ + "unknown", + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 8, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0.02, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 100000000000, + "document_quality_score_min": 0.45, + "parse_confidence_overall_min": 0.4, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.05, + "gap_size_min": -0.01, + "gap_size_max": 0.05, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 2, + "early_failure_no_progress_r_override": 0.1, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 3, + "target_1_fraction_override": 0.15, + "trailing_warmup_days_override": 8, + "enabled": true, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.57, + "stop_atr_multiplier_override": 2.5, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 28 + }, + { + "engine_id": "next_open_long_other_material_mixed_orderly", + "_disabled_reason": "LOO: zero CW contribution on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "mixed" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.02, + "reaction_day_return_min": -0.04, + "reaction_day_return_max": 0.06, + "close_location_min": 0.45, + "gap_size_min": -0.03, + "gap_size_max": 0.05, + "volume_ratio_min": 1, + "min_market_cap_proxy": 6000000000, + "document_quality_score_min": 0.54, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0, + "per_trade_risk_pct_override": 0.23, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_unknown_ome_orderly", + "_disabled_reason": "LOO: removing adds +336pp CW on ftb_fix_v2", + "event_types": [ + "other_material_event" + ], + "event_directions": [ + "unknown" + ], + "guidance_statuses": [ + "not_provided" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 12, + "engine_risk_budget_pct": 0.04, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.12, + "close_location_min": 0.55, + "volume_ratio_min": 1, + "min_market_cap_proxy": 4000000000, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "next_open_gap_cap_pct": 0.04, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 1, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "enabled": false, + "veto_parse_confidence_min_override": 0.4, + "per_trade_risk_pct_override": 0.13, + "stop_atr_multiplier_override": 4, + "use_reaction_day_low_stop_override": false, + "macro_vix_max": 30 + }, + { + "engine_id": "next_open_long_bullish_raised_recovery_broad_oneoff", + "event_types": [ + "earnings_release" + ], + "event_directions": [ + "bullish" + ], + "guidance_statuses": [ + "raised" + ], + "filing_time_buckets": [ + "post_market" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "max_holding_days": 10, + "engine_risk_budget_pct": 0.03, + "reaction_day_return_min": 0, + "reaction_day_return_max": 0.1, + "close_location_min": 0.3, + "close_location_max": 0.75, + "gap_size_min": 0.01, + "gap_size_max": 0.12, + "volume_ratio_min": 1.3, + "volume_ratio_max": 5, + "min_market_cap_proxy": 8000000000, + "document_quality_score_min": 0.5, + "parse_confidence_overall_min": 0.5, + "score_threshold_override": 0, + "residual_reserve_selected": true, + "veto_parse_confidence_min_override": 0.5, + "veto_oneoff_penalty_override": 0.75, + "allow_oneoff_downsizing_override": true, + "oneoff_downsize_floor_override": 0.15, + "next_open_gap_cap_pct": 0.12, + "early_failure_close_below_entry_and_reaction_close_override": false, + "early_failure_no_progress_days_override": 10, + "early_failure_no_progress_r_override": 0, + "early_failure_no_progress_fraction_override": 1, + "target_1_r_override": 5, + "target_1_fraction_override": 0.1, + "trailing_warmup_days_override": 12, + "per_trade_risk_pct_override": 0.55, + "stop_atr_multiplier_override": 3, + "use_reaction_day_low_stop_override": false, + "enabled": true, + "macro_vix_max": 30 + }, + { + "engine_id": "earnings_runup_preevent_long", + "event_types": [ + "earnings_runup_preevent" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 7, + "macro_vix_max": 30.0, + "earnings_runup_enabled": true, + "earnings_runup_days_to_earnings_min": 3, + "earnings_runup_days_to_earnings_max": 7, + "earnings_runup_attention_zscore_20d_min": 2.5, + "earnings_runup_dollar_volume_zscore_20d_min": 1.0, + "earnings_runup_min_avg_dollar_volume": 50000000.0, + "earnings_runup_stop_pct": 0.04, + "earnings_runup_target_pct": 0.08, + "earnings_runup_trailing_activate_pct": 0.05, + "earnings_runup_trailing_giveback_pct": 0.03, + "earnings_runup_calendar_buffer_days": 1, + "per_trade_risk_pct_override": 0.3, + "capital_bucket_id": "earnings_runup", + "enabled": true, + "capital_bucket_allocation_pct": 0.15 + } + ], + "splits": [ + { + "kind": "named_snapshot", + "params": { + "name": "train" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "valid" + } + }, + { + "kind": "named_snapshot", + "params": { + "name": "test" + } + } + ], + "tags": [ + "return-max", + "v6new", + "earnings_runup", + "capital_silo", + "sweep", + "er_strict_sweep_phase12" + ], + "notes": "ER strict threshold variant az25_dvz10. Sweep over silo_15.", + "aliases": [ + "v7.356_plus_er_silo15_strict_az25_dvz10" + ], + "version_family": "v7", + "status": "draft", + "changelog": "Phase 12 ER threshold sweep on silo_15. attention_z>=2.5, dvz>=1.0, days_to_earnings=3-7. Hypothesis: tighter ER thresholds -> fewer/higher-conviction trades -> better OOS. Goal: see if any variant gives Δret>=0 AND ΔSharpe>=-0.1 vs v7.356 on all 3 splits.", + "parent": "return_max_long_v7.356_plus_er_silo_15" +} \ No newline at end of file diff --git a/configs/experiments/xsmom_poc_v1.json b/configs/experiments/xsmom_poc_v1.json new file mode 100644 index 0000000..5151e19 --- /dev/null +++ b/configs/experiments/xsmom_poc_v1.json @@ -0,0 +1,85 @@ +{ + "experiment_name": "xsmom_poc_v1", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase 19 standalone POC of classic 12-1 cross-sectional momentum (Jegadeesh-Titman 1993). Non-event-driven engine — first attempt at this alpha class after 4 event-driven engines (ER, PS, VolBO52w, mixed_notprovided) all failed v7.356 hybrid integration. Pre-commit abort criteria: train trades >100 AND train MDD <30% AND valid return >0 AND test return >0. If ANY criterion fails on valid OR test → DEAD, retire engine. Standalone-only (no v7.356 hybrid). Universe: 911 mid-large liquid tickers (smaller than academic 1000-3000+; calibrate expectations down).", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 30, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.5, + "per_trade_risk_pct_a_tier": 0.5, + "max_daily_new_risk_pct": 100, + "max_positions": 20, + "max_positions_per_sector": 10, + "max_position_value_pct": 10, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 5.0, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_model": null, + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "no_follow_through_exit": false, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "xsmom_12_1_long", + "event_types": ["xsmom_12_1"], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.10, + "xsmom_target_pct": 0.30, + "enabled": true + } + ], + "tags": ["xsmom", "cross_sectional_momentum", "jegadeesh_titman", "non_event_driven", "phase19_poc"], + "version_family": "xsmom", + "status": "draft", + "changelog": "Phase 19 initial POC: 12-1 momentum factor (Jegadeesh-Titman 1993), top-20 long-only, monthly rebalance, 21-day hold. Pre-commit abort: ANY of valid<=0 OR test<=0 OR train MDD>30% OR train trades<100 -> DEAD.", + "parent": null, + "performance_summary": null, + "missing_infrastructure": [] +} diff --git a/configs/experiments/xsmom_v2_regime_mdd.json b/configs/experiments/xsmom_v2_regime_mdd.json new file mode 100644 index 0000000..8f01b80 --- /dev/null +++ b/configs/experiments/xsmom_v2_regime_mdd.json @@ -0,0 +1,97 @@ +{ + "experiment_name": "xsmom_v2_regime_mdd", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase 20 MDD-reduction variant of xsmom v1. Adds (a) VIX gate (skip rebalance when VIX > 30), (b) SPY trend filter (skip when spy_close < spy_sma_50), (c) tighter position sizing (max_position_value_pct 10% -> 5%, per_trade_risk 0.5% -> 0.3%). Hypothesis: regime filter avoids the 2022 momentum crash (which drove train MDD from 56% -> 77% with full warmup). Keep all other params (252/21/top_20/holding_21) at academic Jegadeesh-Titman 1993 standard. Pre-commit: train MDD must drop below 30%, valid+test must remain positive.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 30, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 100, + "max_positions": 20, + "max_positions_per_sector": 10, + "max_position_value_pct": 5, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 5.0, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_model": null, + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "no_follow_through_exit": false, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true + } + ], + "tags": [ + "xsmom", + "phase20", + "regime_filter", + "mdd_reduction" + ], + "version_family": "xsmom", + "status": "promoted", + "changelog": "Phase 20: add VIX/SPY regime filters + tighter sizing to reduce train MDD from 77% to <30%. Pre-commit: train MDD<30% AND valid>0 AND test>0.", + "parent": "xsmom_poc_v1", + "performance_summary": null, + "missing_infrastructure": [], + "aliases": [ + "xsmom Phase 20 standalone — 12-1 momentum + regime filter (OOT validated 2026-05-10)" + ] +} diff --git a/configs/experiments/xsmom_v2_regime_mdd_fixedcap.json b/configs/experiments/xsmom_v2_regime_mdd_fixedcap.json new file mode 100644 index 0000000..757dc30 --- /dev/null +++ b/configs/experiments/xsmom_v2_regime_mdd_fixedcap.json @@ -0,0 +1,97 @@ +{ + "experiment_name": "xsmom_v2_regime_mdd_fixedcap", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "[FIXED CAPITAL / \ub2e8\ub9ac] Phase 20 MDD-reduction variant of xsmom v1. Adds (a) VIX gate (skip rebalance when VIX > 30), (b) SPY trend filter (skip when spy_close < spy_sma_50), (c) tighter position sizing (max_position_value_pct 10% -> 5%, per_trade_risk 0.5% -> 0.3%). Hypothesis: regime filter avoids the 2022 momentum crash (which drove train MDD from 56% -> 77% with full warmup). Keep all other params (252/21/top_20/holding_21) at academic Jegadeesh-Titman 1993 standard. Pre-commit: train MDD must drop below 30%, valid+test must remain positive.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 30, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 100, + "max_positions": 20, + "max_positions_per_sector": 10, + "max_position_value_pct": 5, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 5.0, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": true + }, + "execution": { + "trailing_model": null, + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "no_follow_through_exit": false, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 50, + "enabled": true + } + ], + "tags": [ + "xsmom", + "phase20", + "regime_filter", + "mdd_reduction" + ], + "version_family": "xsmom", + "status": "promoted", + "changelog": "[FIXED CAPITAL] Phase 20: add VIX/SPY regime filters + tighter sizing to reduce train MDD from 77% to <30%. Pre-commit: train MDD<30% AND valid>0 AND test>0.", + "parent": "xsmom_v2_regime_mdd", + "performance_summary": null, + "missing_infrastructure": [], + "aliases": [ + "xsmom Phase 20 standalone \u2014 12-1 momentum + regime filter (OOT validated 2026-05-10)" + ] +} \ No newline at end of file diff --git a/configs/experiments/xsmom_v2b_vix_only.json b/configs/experiments/xsmom_v2b_vix_only.json new file mode 100644 index 0000000..e3523d9 --- /dev/null +++ b/configs/experiments/xsmom_v2b_vix_only.json @@ -0,0 +1,94 @@ +{ + "experiment_name": "xsmom_v2b_vix_only", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase 20b: VIX-only regime gate (drop SPY filter that killed test). Hypothesis: VIX>30 captures stress periods without filtering normal pullbacks. Phase 20 SPY 50dma filter caught train MDD reduction but killed test (3.1% -> -0.14%) by skipping recoverable pullbacks. Drop spy_sma_filter; keep VIX gate only.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 30, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 100, + "max_positions": 20, + "max_positions_per_sector": 10, + "max_position_value_pct": 5, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 5.0, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_model": null, + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "no_follow_through_exit": false, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": null, + "enabled": true + } + ], + "tags": [ + "xsmom", + "phase20", + "regime_filter", + "mdd_reduction" + ], + "version_family": "xsmom", + "status": "draft", + "changelog": "Phase 20b: VIX-only (drop SPY filter). Train MDD goal: <30% via VIX alone. Valid/test must remain >0.", + "parent": "xsmom_v2_regime_mdd", + "performance_summary": null, + "missing_infrastructure": [] +} \ No newline at end of file diff --git a/configs/experiments/xsmom_v2c_spy_sma20.json b/configs/experiments/xsmom_v2c_spy_sma20.json new file mode 100644 index 0000000..90dbec9 --- /dev/null +++ b/configs/experiments/xsmom_v2c_spy_sma20.json @@ -0,0 +1,94 @@ +{ + "experiment_name": "xsmom_v2c_spy_sma20", + "dataset_snapshot_id": "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2", + "description": "Phase 20c: faster SPY trend gate (sma_20 instead of sma_50). Hypothesis: 50dma was too slow, skipped test rebalances during recoverable pullbacks. 20dma fires only on severe downturns, leaves recoverable pullbacks alone.", + "base_config": "configs/backtest/return_max_long_v1.json", + "overrides": { + "signal": { + "scoring_model": "return_max_long_v13e", + "score_threshold": 0.0, + "max_candidates_per_day": 30, + "a_tier_score_threshold": 0.99 + }, + "risk": { + "per_trade_risk_pct": 0.3, + "per_trade_risk_pct_a_tier": 0.3, + "max_daily_new_risk_pct": 100, + "max_positions": 20, + "max_positions_per_sector": 10, + "max_position_value_pct": 5, + "max_adv_fraction": 0.3, + "macro_regime_neutral_size_scaler": 1, + "macro_regime_risk_off_size_scaler": 1, + "veto_unknown_direction": false, + "veto_bearish_direction": false, + "macro_regime_risk_off_a_tier_only": false, + "stop_atr_multiplier": 5.0, + "allow_budget_downsizing": true, + "cash_parking_preset": null, + "fixed_capital_sizing": false + }, + "execution": { + "trailing_model": null, + "trailing_warmup_days": 999, + "max_holding_days": 21, + "early_failure_no_progress_days": 0, + "early_failure_no_progress_r": 0.0, + "early_failure_no_progress_fraction": 0, + "no_follow_through_exit": false, + "lookback_entry_enabled": false + }, + "event_type_profiles": { + "xsmom_12_1": { + "enabled": true, + "direction_filter": "any", + "max_holding_days_override": 21 + } + }, + "idle_alpha_sleeve_preset": null, + "form4_capture_sleeve_preset": null, + "ownership_capture_sleeve_preset": null, + "risk_off_alpha_sleeve_preset": null, + "dividend_capture_sleeve_preset": null + }, + "strategy_engines": [ + { + "engine_id": "xsmom_12_1_long", + "event_types": [ + "xsmom_12_1" + ], + "timing_class": "after_close", + "direction": "long_only", + "entry_timing_policy": "next_open", + "engine_risk_budget_pct": 1.0, + "score_threshold_override": 0.0, + "max_holding_days": 21, + "xsmom_enabled": true, + "xsmom_lookback_days": 252, + "xsmom_skip_days": 21, + "xsmom_top_n": 20, + "xsmom_holding_days": 21, + "xsmom_momentum_min": 0.0, + "xsmom_min_avg_dollar_volume": 10000000.0, + "xsmom_min_price": 5.0, + "xsmom_volatility_20d_max": 0.08, + "xsmom_stop_pct": 0.1, + "xsmom_target_pct": 0.3, + "xsmom_vix_max": 30.0, + "xsmom_spy_sma_filter_period": 20, + "enabled": true + } + ], + "tags": [ + "xsmom", + "phase20", + "regime_filter", + "mdd_reduction" + ], + "version_family": "xsmom", + "status": "draft", + "changelog": "Phase 20c: SPY trend = sma_20 (faster).", + "parent": "xsmom_v2_regime_mdd", + "performance_summary": null, + "missing_infrastructure": [] +} \ No newline at end of file diff --git a/libs/backtest/cross_sectional_momentum.py b/libs/backtest/cross_sectional_momentum.py new file mode 100644 index 0000000..6eaeca4 --- /dev/null +++ b/libs/backtest/cross_sectional_momentum.py @@ -0,0 +1,473 @@ +"""CrossSectionalMomentum — classic 12-1 academic momentum factor, look-ahead-safe. + +On the first trading day of each calendar month, rank universe by the +cumulative return from t-252 to t-21 (i.e. 12 months back, skipping the most +recent month per Jegadeesh-Titman 1993). Buy the top-N highest-momentum +symbols at next_open, hold for `holding_days` trading days, then force-flat. + +This is the canonical academic momentum factor. The 1-month skip removes +short-term reversal contamination. Top-decile long-only is the cleanest +specification compatible with the existing long-only execution stack. + +Look-ahead defenses (NON-NEGOTIABLE): + * BarHistoryProvider returns bars STRICTLY before decision_date. + * `_assert_strictly_before` re-checks every used bar date. + * Rebalance gate uses last_bar_date.month vs decision_date.month — purely + derived from already-strict bars; no calendar lookup needed. + +Per advisor pre-commit (Phase 19): STANDALONE POC only — no hybrid scaffolding. +""" +from __future__ import annotations + +import datetime as dt +import statistics +from dataclasses import dataclass, field +from typing import Any, Iterable, Protocol + +from libs.backtest.domain import ( + Candidate, + LookaheadViolationError, + StrategyEngineConfig, +) +from libs.common.logging import get_logger + +logger = get_logger(__name__) + +CROSS_SECTIONAL_MOMENTUM_EVENT_TYPE = "xsmom_12_1" + +_ET_MARKET_OPEN = dt.time(9, 30) +_ET_OFFSET = dt.timedelta(hours=-5) + + +# --------------------------------------------------------------------------- +# Provider Protocol (shared shape with VolBreakout52w) +# --------------------------------------------------------------------------- + + +class BarHistoryProvider(Protocol): + def get_bars_before( + self, + symbol: str, + as_of_date: dt.date, + lookback_days: int, + ) -> list[tuple[dt.date, dict[str, Any]]]: ... + + +# --------------------------------------------------------------------------- +# Lookahead defense +# --------------------------------------------------------------------------- + + +def _decision_cutoff_utc(decision_date: dt.date) -> dt.datetime: + et_naive = dt.datetime.combine(decision_date, _ET_MARKET_OPEN) + utc_naive = et_naive - _ET_OFFSET + return utc_naive.replace(tzinfo=dt.timezone.utc) + + +def _assert_strictly_before( + symbol: str, + decision_date: dt.date, + used_dates: Iterable[dt.date], +) -> None: + for d in used_dates: + if d >= decision_date: + raise LookaheadViolationError( + f"CrossSectionalMomentum {symbol}: bar date {d.isoformat()} " + f"is not strictly before decision_date {decision_date.isoformat()}" + ) + + +def _bar_close_timestamp(bar_date: dt.date) -> dt.datetime: + """16:00 ET close on bar_date, tz-aware UTC.""" + et_naive = dt.datetime.combine(bar_date, dt.time(16, 0)) + utc_naive = et_naive - _ET_OFFSET + return utc_naive.replace(tzinfo=dt.timezone.utc) + + +# --------------------------------------------------------------------------- +# Pure trigger computations +# --------------------------------------------------------------------------- + + +def is_rebalance_day( + bars: list[tuple[dt.date, dict[str, Any]]], + decision_date: dt.date, +) -> bool: + """First trading day of the calendar month iff last_bar's month != decision_date.month. + + Pure function: derives the rebalance flag from already-strict bar history. + Returns False on empty bars. + """ + if not bars: + return False + last_bar_date = bars[-1][0] + if last_bar_date >= decision_date: + raise LookaheadViolationError( + f"is_rebalance_day: last_bar_date {last_bar_date.isoformat()} " + f"is not strictly before decision_date {decision_date.isoformat()}" + ) + return last_bar_date.month != decision_date.month + + +def compute_12_1_momentum( + bars: list[tuple[dt.date, dict[str, Any]]], + *, + lookback_days: int = 252, + skip_days: int = 21, +) -> tuple[float | None, list[dt.date]]: + """Cumulative return from t-(lookback+skip) to t-skip. Skips most recent `skip_days`. + + Returns (momentum_score, used_dates). None when insufficient history. + The window is `bars[-(lookback+skip):-skip]` — last bar is t-skip-1, first + bar is t-(lookback+skip). + """ + needed = lookback_days + skip_days + if len(bars) < needed: + return None, [] + window = bars[-needed:-skip_days] if skip_days > 0 else bars[-needed:] + if len(window) < 2: + return None, [] + start_close = float(window[0][1].get("close", 0.0)) + end_close = float(window[-1][1].get("close", 0.0)) + if start_close <= 0 or end_close <= 0: + return None, [] + momentum = (end_close / start_close) - 1.0 + used_dates = [d for d, _ in window] + return momentum, used_dates + + +def compute_20d_volatility( + bars: list[tuple[dt.date, dict[str, Any]]], +) -> float | None: + """Stdev of daily log returns over the last 20 bars. Returns None on insufficient data.""" + if len(bars) < 21: + return None + closes = [float(b.get("close", 0.0)) for _, b in bars[-21:]] + if any(c <= 0 for c in closes): + return None + rets = [] + for i in range(1, len(closes)): + rets.append((closes[i] / closes[i - 1]) - 1.0) + if len(rets) < 2: + return None + return float(statistics.stdev(rets)) + + +def compute_avg_dollar_volume_20d( + bars: list[tuple[dt.date, dict[str, Any]]], +) -> float: + if not bars: + return 0.0 + tail = bars[-20:] + return statistics.fmean( + float(b.get("close", 0.0)) * float(b.get("volume", 0.0)) + for _, b in tail + ) + + +# --------------------------------------------------------------------------- +# Per-symbol trigger inputs + evaluation +# --------------------------------------------------------------------------- + + +@dataclass(frozen=True) +class CrossSectionalMomentumInputs: + symbol: str + decision_date: dt.date + next_trading_date: dt.date + last_bar_date: dt.date + last_bar_timestamp: dt.datetime + last_close: float + momentum_12_1: float + volatility_20d: float + avg_dollar_volume_20d: float + + +def evaluate_universe_gates( + inputs: CrossSectionalMomentumInputs, + engine: StrategyEngineConfig, +) -> tuple[bool, str | None]: + """Reject low-quality candidates BEFORE ranking. Pure function.""" + if inputs.last_bar_date >= inputs.decision_date: + raise LookaheadViolationError( + f"CrossSectionalMomentum {inputs.symbol}: last_bar_date " + f"{inputs.last_bar_date.isoformat()} not strictly before decision_date" + ) + price_min = float(getattr(engine, "xsmom_min_price", 5.0) or 0.0) + if price_min > 0 and inputs.last_close < price_min: + return False, f"last_close {inputs.last_close:.2f} < min {price_min:.2f}" + adv_min = float(getattr(engine, "xsmom_min_avg_dollar_volume", 10_000_000.0) or 0.0) + if adv_min > 0 and inputs.avg_dollar_volume_20d < adv_min: + return False, ( + f"avg_dollar_volume_20d {inputs.avg_dollar_volume_20d:,.0f} < min {adv_min:,.0f}" + ) + vol_max = float(getattr(engine, "xsmom_volatility_20d_max", 0.08) or 0.0) + if vol_max > 0 and inputs.volatility_20d > vol_max: + return False, f"volatility_20d {inputs.volatility_20d:.4f} > max {vol_max:.4f}" + return True, None + + +# --------------------------------------------------------------------------- +# Build candidates (top-N selection across universe) +# --------------------------------------------------------------------------- + + +def build_candidates( + decision_date: dt.date, + next_trading_date: dt.date, + universe_symbols: Iterable[str], + engine: StrategyEngineConfig, + bar_provider: BarHistoryProvider, +) -> list[Candidate]: + """Emit top-N synthetic momentum candidates on rebalance days only. + + On non-rebalance days, returns []. The universe is scanned once per + rebalance day, ranked, and the top-N pass through. + """ + if not getattr(engine, "xsmom_enabled", False): + return [] + if next_trading_date <= decision_date: + raise LookaheadViolationError( + f"CrossSectionalMomentum next_trading_date {next_trading_date.isoformat()} " + f"must be strictly after decision_date {decision_date.isoformat()}" + ) + + lookback = int(getattr(engine, "xsmom_lookback_days", 252) or 252) + skip = int(getattr(engine, "xsmom_skip_days", 21) or 21) + top_n = int(getattr(engine, "xsmom_top_n", 20) or 20) + holding_days = int(getattr(engine, "xsmom_holding_days", 21) or 21) + momentum_min = float(getattr(engine, "xsmom_momentum_min", 0.0) or 0.0) + + fetch_lookback = lookback + skip + 5 + + # First, check rebalance gate using ANY symbol's bars (they all share the + # same trading calendar). Use the first symbol with enough history. + scored: list[tuple[float, CrossSectionalMomentumInputs]] = [] + seen: set[str] = set() + rebalance_checked = False + is_rebalance = False + + for raw_symbol in universe_symbols: + symbol = str(raw_symbol).strip().upper() + if not symbol or symbol in seen: + continue + seen.add(symbol) + + bars = bar_provider.get_bars_before(symbol, decision_date, lookback_days=fetch_lookback) + if not bars: + continue + + last_bar_date, last_bar = bars[-1] + if last_bar_date >= decision_date: + raise LookaheadViolationError( + f"CrossSectionalMomentum bar for {symbol} on {last_bar_date.isoformat()} " + f"is not strictly before decision_date {decision_date.isoformat()}" + ) + + # Rebalance gate — check once per call, derived from bars (no calendar). + if not rebalance_checked: + is_rebalance = is_rebalance_day(bars, decision_date) + rebalance_checked = True + if not is_rebalance: + return [] + + last_close = float(last_bar.get("close", 0.0)) + if last_close <= 0: + continue + + momentum, mom_used_dates = compute_12_1_momentum( + bars, lookback_days=lookback, skip_days=skip + ) + if momentum is None: + continue + if momentum < momentum_min: + continue + + _assert_strictly_before(symbol, decision_date, mom_used_dates) + + vol_20d = compute_20d_volatility(bars) + if vol_20d is None: + continue + adv_20d = compute_avg_dollar_volume_20d(bars) + + inputs = CrossSectionalMomentumInputs( + symbol=symbol, + decision_date=decision_date, + next_trading_date=next_trading_date, + last_bar_date=last_bar_date, + last_bar_timestamp=_bar_close_timestamp(last_bar_date), + last_close=last_close, + momentum_12_1=momentum, + volatility_20d=vol_20d, + avg_dollar_volume_20d=adv_20d, + ) + + passes, reason = evaluate_universe_gates(inputs, engine) + if not passes: + continue + + scored.append((momentum, inputs)) + + # Sort by momentum descending, take top N. + scored.sort(key=lambda t: t[0], reverse=True) + top = scored[:top_n] + + candidates: list[Candidate] = [] + for rank, (_, inputs) in enumerate(top, start=1): + candidates.append(_build_candidate(inputs, engine, rank=rank, total_ranked=len(scored))) + + if candidates: + logger.info( + "cross_sectional_momentum_rebalance", + decision_date=decision_date.isoformat(), + universe_scanned=len(scored), + top_n_emitted=len(candidates), + top_score=top[0][0] if top else None, + bottom_score=top[-1][0] if top else None, + ) + + return candidates + + +def _build_candidate( + inputs: CrossSectionalMomentumInputs, + engine: StrategyEngineConfig, + *, + rank: int, + total_ranked: int, +) -> Candidate: + holding_days = int(getattr(engine, "xsmom_holding_days", 21) or 21) + stop_pct = float(getattr(engine, "xsmom_stop_pct", 0.10) or 0.10) + target_pct = float(getattr(engine, "xsmom_target_pct", 0.30) or 0.30) + + synthetic_atr = max(inputs.last_close * 0.02, 0.01) + stop_mult = stop_pct / 0.02 if stop_pct > 0 else 5.0 + target_r = target_pct / stop_pct if stop_pct > 0 else 3.0 + + # Score: higher momentum → higher score, monotonic, clipped to [0, 0.99]. + # Map momentum [0%, +60%] → score [0.5, 0.99] (linear). + score = 0.5 + 0.49 * min(1.0, max(0.0, inputs.momentum_12_1 / 0.60)) + score_bucket = ( + "high" if score >= 0.8 + else "medium_high" if score >= 0.6 + else "medium" + ) + + event_id = ( + f"synth_xsmom_{inputs.symbol.lower()}_" + f"{inputs.decision_date.isoformat()}" + ) + + features = { + "xsmom_decision_date": inputs.decision_date.isoformat(), + "xsmom_last_close": inputs.last_close, + "xsmom_momentum_12_1": round(inputs.momentum_12_1, 6), + "xsmom_volatility_20d": round(inputs.volatility_20d, 6), + "xsmom_avg_dollar_volume_20d": inputs.avg_dollar_volume_20d, + "xsmom_rank": rank, + "xsmom_total_ranked": total_ranked, + "xsmom_stop_pct": stop_pct, + "xsmom_target_pct": target_pct, + "xsmom_holding_days": holding_days, + } + + return Candidate( + event_id=event_id, + symbol=inputs.symbol, + source_symbol=inputs.symbol, + score=score, + sector="UNKNOWN", + event_type=CROSS_SECTIONAL_MOMENTUM_EVENT_TYPE, + event_timestamp=inputs.last_bar_timestamp, + event_date=inputs.decision_date, + filing_time_bucket="post_market", + timing_class="after_close", + reaction_date=inputs.decision_date, + execution_date=inputs.next_trading_date, + entry_price_est=inputs.last_close, + avg_dollar_volume=inputs.avg_dollar_volume_20d, + atr_14=synthetic_atr, + score_bucket=score_bucket, + engine_id=engine.engine_id, + entry_timing_policy="next_open", + trade_direction="long", + engine_max_holding_days=holding_days, + engine_risk_budget_pct=engine.engine_risk_budget_pct, + engine_capital_bucket_id=( + (engine.capital_bucket_id or engine.engine_id) + if engine.capital_bucket_allocation_pct is not None + else None + ), + engine_capital_bucket_allocation_pct=engine.capital_bucket_allocation_pct, + engine_per_trade_risk_pct=engine.per_trade_risk_pct_override, + engine_target_1_r=target_r, + engine_target_1_fraction=1.0, + engine_stop_atr_multiplier=stop_mult, + engine_next_open_gap_cap_pct=engine.next_open_gap_cap_pct, + engine_use_reaction_day_low_stop=False, + engine_early_failure_close_below_entry_and_reaction_close=False, + # xsmom needs full holding period — explicitly disable NO_PROGRESS / trailing + # at the candidate level so v7.356 base config's tight gates don't fire on + # synthetic candidates in hybrid runs. + engine_early_failure_no_progress_days=0, + engine_early_failure_no_progress_r=0.0, + engine_early_failure_no_progress_fraction=0.0, + engine_trailing_model="none", + engine_trailing_warmup_days=999, + shadow_only=engine.shadow_only, + features=features, + ) + + +# --------------------------------------------------------------------------- +# Adapter (reuse VolBreakout52w's cached-bars pattern) +# --------------------------------------------------------------------------- + + +@dataclass +class _SnapshotStoreBarAdapter: + bars_by_symbol: dict[str, dict[dt.date, dict[str, Any]]] + _sorted_cache: dict[str, list[tuple[dt.date, dict[str, Any]]]] = field(default_factory=dict) + + def _sorted_for(self, symbol: str) -> list[tuple[dt.date, dict[str, Any]]]: + sym_upper = symbol.upper() + cached = self._sorted_cache.get(sym_upper) + if cached is not None: + return cached + sym_bars = self.bars_by_symbol.get(sym_upper) + if not sym_bars: + self._sorted_cache[sym_upper] = [] + return self._sorted_cache[sym_upper] + ordered = sorted(sym_bars.items(), key=lambda kv: kv[0]) + self._sorted_cache[sym_upper] = ordered + return ordered + + def get_bars_before( + self, + symbol: str, + as_of_date: dt.date, + lookback_days: int, + ) -> list[tuple[dt.date, dict[str, Any]]]: + ordered = self._sorted_for(symbol) + if not ordered: + return [] + eligible: list[tuple[dt.date, dict[str, Any]]] = [] + for d, b in ordered: + if d >= as_of_date: + break + eligible.append((d, b)) + return eligible[-lookback_days:] + + +__all__ = [ + "CROSS_SECTIONAL_MOMENTUM_EVENT_TYPE", + "BarHistoryProvider", + "CrossSectionalMomentumInputs", + "_SnapshotStoreBarAdapter", + "build_candidates", + "compute_12_1_momentum", + "compute_20d_volatility", + "compute_avg_dollar_volume_20d", + "evaluate_universe_gates", + "is_rebalance_day", +] diff --git a/libs/backtest/domain.py b/libs/backtest/domain.py index 27c1d82..bc829de 100644 --- a/libs/backtest/domain.py +++ b/libs/backtest/domain.py @@ -2257,6 +2257,28 @@ class StrategyEngineConfig(BaseModel): vol_breakout_52w_target_pct: float = 0.05 # +5% vol_breakout_52w_max_holding_days: int = 2 # mandatory MOC exit on day 2 + # --- CrossSectionalMomentum (Jegadeesh-Titman 12-1) --- + # Rebalance on first trading day of each month. Rank universe by cumulative + # return from t-(lookback+skip) to t-skip. Top N enter at next_open and hold + # holding_days trading days. + xsmom_enabled: bool = False + xsmom_lookback_days: int = 252 # 12 months of trading days + xsmom_skip_days: int = 21 # skip the most recent month (reversal contamination) + xsmom_top_n: int = 20 # buy top N by momentum rank + xsmom_holding_days: int = 21 # ~1 calendar month + xsmom_momentum_min: float = 0.0 # only buy positive-momentum names + xsmom_min_avg_dollar_volume: float = 10_000_000.0 + xsmom_min_price: float = 5.0 + xsmom_volatility_20d_max: float = 0.08 # junk-filter + xsmom_stop_pct: float = 0.10 # -10% loose stop (momentum needs room) + xsmom_target_pct: float = 0.30 # +30% target + # Phase 20 MDD-reduction regime filters: gate the rebalance on adverse macro. + # vix_max=None disables the gate; otherwise skip the whole rebalance if VIX > vix_max. + # spy_sma_filter_period in {10, 20, 30, 40, 50} (matches snapshot SMA fields). + # None disables. If set, skip rebalance when spy_close < spy_sma_{period}. + xsmom_vix_max: float | None = None + xsmom_spy_sma_filter_period: int | None = None + class EventTypeProfile(BaseModel): """Per-event-type overrides for scoring, risk, and exit parameters.""" diff --git a/libs/backtest/scoring.py b/libs/backtest/scoring.py index 7e8df18..11f15fe 100644 --- a/libs/backtest/scoring.py +++ b/libs/backtest/scoring.py @@ -972,6 +972,25 @@ def compute_return_max_long_score_v13e(row: dict[str, Any]) -> float: ) +def compute_return_max_long_score_v13f(row: dict[str, Any]) -> float: + """V13F = V13E + sector tailwind bonus. + + Combines low entropy (predictability) with sector momentum. + Empirically: on v13e-trade-eligible subset (score >= 0.42), the top + quartile of pre_event_sector_momentum_20d shows ~+11pp WR vs other + quartiles on both valid and test splits. + """ + return _compute_return_max_long_score( + row, + earnings_reaction_fallback=True, + use_signal_strength_proxy=True, + weights=_RETURN_MAX_LONG_V2_WEIGHTS, + allow_generic_material_events=True, + use_entropy_bonus=True, + use_sector_bonus=True, + ) + + def compute_return_max_long_score_v13e_surp(row: dict[str, Any]) -> float: """V13E_SURP = V13E + earnings surprise bonus. @@ -2771,6 +2790,98 @@ def compute_return_max_long_score_ml_v3_h3(row: dict[str, Any]) -> float: return _clamp(base_score + 0.30 * (ml_score - 0.50)) +_LGBM_V1_STATE: dict[str, Any] = {} + + +def _get_lgbm_v1() -> dict[str, Any] | None: + """Lazy-load LightGBM booster + feature manifest. Returns None on failure.""" + if _LGBM_V1_STATE: + return _LGBM_V1_STATE if _LGBM_V1_STATE.get("ok") else None + import json as _json + from pathlib import Path as _Path + repo_root = _Path(__file__).resolve().parents[2] + model_path = repo_root / "data/ml_models/lgbm_v1_pead_long.txt" + manifest_path = repo_root / "data/ml_models/lgbm_v1_pead_long_manifest.json" + try: + import lightgbm as _lgbm + booster = _lgbm.Booster(model_file=str(model_path)) + manifest = _json.loads(manifest_path.read_text()) + cat_codes = { + c: {v: i for i, v in enumerate(manifest["categorical_vocab"][c])} + for c in manifest["categorical_features"] + } + _LGBM_V1_STATE.update({ + "ok": True, + "booster": booster, + "numeric": manifest["numeric_features"], + "categorical": manifest["categorical_features"], + "cat_codes": cat_codes, + }) + logger.info("Loaded LGBM v1 PEAD long scorer from %s", model_path) + except Exception as exc: + _LGBM_V1_STATE["ok"] = False + logger.warning("Failed to load LGBM v1 scorer: %s", exc) + return None + return _LGBM_V1_STATE + + +def compute_return_max_long_score_lgbm_v1(row: dict[str, Any]) -> float: + """LightGBM PEAD long scorer trained on ftb_fix_v2 snapshot. + + Target: strong_drift_10d := (mfe_10d - mae_10d) > 8%. + Returns predicted probability in [0, 1]; falls back to v13e if model + unavailable. + """ + state = _get_lgbm_v1() + if state is None: + return compute_return_max_long_score_v13e(row) + nums = [] + for feat in state["numeric"]: + val = row.get(feat) + try: + f = float(val) if val is not None else float("nan") + except (TypeError, ValueError): + f = float("nan") + nums.append(f) + cats = [] + for feat in state["categorical"]: + val = row.get(feat) + if val is None: + cats.append(-1) + continue + cats.append(state["cat_codes"][feat].get(str(val), -1)) + import numpy as _np + x = _np.array([nums + cats], dtype=float) + prob = float(state["booster"].predict(x)[0]) + return _clamp(prob) + + +def compute_return_max_long_score_lgbm_v1_h1(row: dict[str, Any]) -> float: + """Hybrid: v13e eligibility gate + LGBM re-rank.""" + base = compute_return_max_long_score_v13e(row) + if base <= 0.0: + return 0.0 + return compute_return_max_long_score_lgbm_v1(row) + + +def compute_return_max_long_score_lgbm_v1_h2(row: dict[str, Any]) -> float: + """Hybrid: weighted blend (v13e 0.65 + LGBM 0.35).""" + base = compute_return_max_long_score_v13e(row) + if base <= 0.0: + return 0.0 + ml = compute_return_max_long_score_lgbm_v1(row) + return _clamp(base * 0.65 + ml * 0.35) + + +def compute_return_max_long_score_lgbm_v1_h3(row: dict[str, Any]) -> float: + """Hybrid: v13e base + LGBM rank bonus (~+/-0.15).""" + base = compute_return_max_long_score_v13e(row) + if base <= 0.0: + return 0.0 + ml = compute_return_max_long_score_lgbm_v1(row) + return _clamp(base + 0.30 * (ml - 0.50)) + + def compute_return_max_longshort_v1(row: dict[str, Any]) -> float: """Combined long + short PEAD scoring. diff --git a/libs/backtest/snapshot_store.py b/libs/backtest/snapshot_store.py index 6a79e1b..728df18 100644 --- a/libs/backtest/snapshot_store.py +++ b/libs/backtest/snapshot_store.py @@ -79,10 +79,11 @@ _MACRO_TRADE_BAR_PREFIXES: tuple[tuple[str, str], ...] = ( ("BUFB", "bufb"), ("MERIX", "merix"), ) -_PRICE_FEATURE_WARMUP_DAYS = 120 -_RUNTIME_CACHE_VERSION = 12 +_PRICE_FEATURE_WARMUP_DAYS = 400 # bumped from 120 to cover xsmom 273-trading-day lookback (12+1 momentum). Affects bars-fetch only; other engines unaffected. +_RUNTIME_CACHE_VERSION = 13 _RUNTIME_CACHE_WAIT_TIMEOUT_SECONDS = 1800.0 _RUNTIME_CACHE_WAIT_LOG_INTERVAL_SECONDS = 5.0 +_EVENT_METADATA_FETCH_CHUNK_SIZE = 10_000 class SnapshotStore: @@ -609,7 +610,11 @@ class SnapshotStore: ) # Collect event_ids for DB lookup - event_ids = [str(r.get("event_id", "")) for r in row_list] + event_ids = list(dict.fromkeys( + str(r.get("event_id", "")) + for r in row_list + if r.get("event_id") + )) date_range = cls._compute_date_range(row_list) # Step 2–6: DB + Oracle enrichment @@ -649,9 +654,9 @@ class SnapshotStore: event_id = str(row.get("event_id", "")) meta = event_meta.get(event_id, {}) ticker = ( - meta.get("ticker") - or row.get("ticker") + row.get("ticker") or row.get("symbol") + or meta.get("ticker") ) if not ticker: continue @@ -762,7 +767,7 @@ class SnapshotStore: for idx, row in enumerate(row_list, start=1): eid = str(row.get("event_id", "")) meta = event_meta.get(eid, {}) - ticker = meta.get("ticker") or row.get("ticker") or row.get("symbol") + ticker = row.get("ticker") or row.get("symbol") or meta.get("ticker") if not ticker: logger.debug("snapshot_store_skip_no_ticker", event_id=eid) continue @@ -782,12 +787,20 @@ class SnapshotStore: enriched["execution_date"] = exec_date enriched["symbol"] = ticker enriched["issuer_id"] = meta.get("issuer_id") or row.get("issuer_id") - fallback_event_date = cls._normalize_date(row.get("event_date")) - enriched["event_date"] = meta.get("event_date") or fallback_event_date - enriched["event_type"] = meta.get("event_type", "") or row.get("event_type", "") + snapshot_event_date = cls._normalize_date(row.get("event_date")) + meta_event_date = cls._normalize_date(meta.get("event_date")) + event_date = snapshot_event_date or meta_event_date + enriched["event_date"] = event_date + snapshot_event_type = row.get("event_type") + enriched["event_type"] = ( + snapshot_event_type + if snapshot_event_type not in (None, "") + else meta.get("event_type", "") + ) enriched["event_timestamp"] = ( - meta.get("event_timestamp") - or cls._normalize_timestamp(row.get("event_timestamp"), fallback_event_date) + cls._normalize_timestamp(row.get("event_timestamp"), event_date) + or meta.get("event_timestamp") + or cls._normalize_timestamp(None, event_date) ) enriched["sector"] = sectors.get(ticker, "UNKNOWN") @@ -1321,29 +1334,31 @@ class SnapshotStore: result: dict[str, dict[str, Any]] = {} async with async_session() as session: - # Single IN clause for all event_ids - stmt = ( - select(Event, SymbolMaster) - .outerjoin(SymbolMaster, Event.symbol_id == SymbolMaster.symbol_id) - .where(Event.event_id.in_(event_ids)) - ) - rows = (await session.execute(stmt)).all() _UTC = __import__("zoneinfo").ZoneInfo("UTC") - for event, sym in rows: - # Use filed_at_utc if available; fallback to filing_date + 21:00 UTC - # (transparent enrichment in the loader — not silent substitution in selector) - ts = event.filed_at_utc - if ts is None and event.event_date is not None: - ts = dt.datetime.combine( - event.event_date, dt.time(21, 0), tzinfo=_UTC - ) - result[event.event_id] = { - "issuer_id": event.issuer_id, - "event_date": event.event_date, - "event_type": event.event_type, - "event_timestamp": ts, - "ticker": sym.ticker if sym else None, - } + unique_event_ids = list(dict.fromkeys(eid for eid in event_ids if eid)) + for start in range(0, len(unique_event_ids), _EVENT_METADATA_FETCH_CHUNK_SIZE): + chunk = unique_event_ids[start : start + _EVENT_METADATA_FETCH_CHUNK_SIZE] + stmt = ( + select(Event, SymbolMaster) + .outerjoin(SymbolMaster, Event.symbol_id == SymbolMaster.symbol_id) + .where(Event.event_id.in_(chunk)) + ) + rows = (await session.execute(stmt)).all() + for event, sym in rows: + # Use filed_at_utc if available; fallback to filing_date + 21:00 UTC + # (transparent enrichment in the loader — not silent substitution in selector) + ts = event.filed_at_utc + if ts is None and event.event_date is not None: + ts = dt.datetime.combine( + event.event_date, dt.time(21, 0), tzinfo=_UTC + ) + result[event.event_id] = { + "issuer_id": event.issuer_id, + "event_date": event.event_date, + "event_type": event.event_type, + "event_timestamp": ts, + "ticker": sym.ticker if sym else None, + } await engine.dispose() return result except Exception as exc: diff --git a/libs/export/snapshot_export.py b/libs/export/snapshot_export.py index 90410e6..c1c4cbf 100644 --- a/libs/export/snapshot_export.py +++ b/libs/export/snapshot_export.py @@ -26,6 +26,11 @@ logger = get_logger(__name__) MANIFEST_FILENAME = "manifest.json" +_ENTRY_CONVENTION_SORT_ORDER = { + "reaction_close": 0, + "next_open_after_reaction_close": 1, +} + _EXPORT_ENRICHMENTS = [ "market_bar_backfill_v1", "pre_event_momentum_v1", @@ -209,6 +214,18 @@ def _rows_to_table(rows: list[dict[str, Any]]) -> pa.Table: return pa.table({k: pa.array(v) for k, v in arrays.items()}) +def _safe_int(value: Any, default: int = 0) -> int: + try: + return int(value) + except (TypeError, ValueError): + return default + + +def _entry_convention_sort_key(value: Any) -> tuple[int, str]: + convention = str(value or "") + return (_ENTRY_CONVENTION_SORT_ORDER.get(convention, 100), convention) + + async def _resolve_universe_profile( universe_profile: str | None, ) -> dict[str, dict[str, Any]]: @@ -599,9 +616,22 @@ async def export_dataset_snapshot( result = await session.execute(stmt) pairs = result.all() - # Group features by event_id, merge feature_json from all versions + version_rank = {name: idx for idx, name in enumerate(versions)} + pairs = sorted( + pairs, + key=lambda pair: ( + str(pair[0].event_id or ""), + version_rank.get(str(getattr(pair[0], "snapshot_name", "") or ""), len(versions)), + _entry_convention_sort_key(getattr(pair[1], "entry_convention", "")), + _safe_int(getattr(pair[1], "label_id", 0)), + ), + ) + + # Group features by event_id, merge feature_json from all versions. Labels are + # kept per entry convention because the same event legitimately has separate + # reaction-close and next-open forward-return labels. event_features: dict[str, dict[str, Any]] = {} - event_labels: dict[str, Any] = {} + event_labels: dict[str, dict[str, Any]] = {} event_dates: dict[str, dt.date] = {} event_filed_at: dict[str, dt.datetime | None] = {} event_symbols: dict[str, str] = {} @@ -610,7 +640,7 @@ async def export_dataset_snapshot( eid = fs.event_id if eid not in event_features: event_features[eid] = {} - event_labels[eid] = lbl + event_labels[eid] = {} event_dates[eid] = evt.event_date event_filed_at[eid] = evt.filed_at_utc ticker = (sym.ticker if sym and sym.ticker else "").upper() @@ -619,66 +649,72 @@ async def export_dataset_snapshot( "asset_type_proxy": sym.asset_type if sym else None, "exchange_proxy": (sym.venue if sym else None), } + entry_convention = str(lbl.entry_convention or "") + event_labels[eid].setdefault(entry_convention, lbl) event_features[eid].update(fs.feature_json) preliminary_rows: list[dict[str, Any]] = [] - for eid, features in event_features.items(): + for eid in sorted(event_features): + features = event_features[eid] ticker = event_symbols.get(eid, "") if explicit_symbols is not None and ticker not in explicit_symbols: continue - lbl = event_labels[eid] - row: dict[str, Any] = { - "event_id": eid, - "ticker": ticker, - "snapshot_name": "+".join(versions), - "snapshot_version": "1.0.0", - **features, - "entry_convention": lbl.entry_convention, - "reaction_date": lbl.reaction_date.isoformat() if lbl.reaction_date else None, - "entry_date": lbl.entry_date.isoformat() if lbl.entry_date else None, - "entry_price": float(lbl.entry_price) if lbl.entry_price else None, - "fwd_return_1d": float(lbl.fwd_return_1d) if lbl.fwd_return_1d else None, - "fwd_return_3d": float(lbl.fwd_return_3d) if lbl.fwd_return_3d else None, - "fwd_return_5d": float(lbl.fwd_return_5d) if lbl.fwd_return_5d else None, - "hit_pos_1r_within_3d": lbl.hit_pos_1r_within_3d, - "hit_neg_1r_within_3d": lbl.hit_neg_1r_within_3d, - "close_up_after_3d": lbl.close_up_after_3d, - "close_up_after_5d": lbl.close_up_after_5d, - "mfe_3d": float(lbl.mfe_3d) if lbl.mfe_3d else None, - "mae_3d": float(lbl.mae_3d) if lbl.mae_3d else None, - "mfe_5d": float(lbl.mfe_5d) if lbl.mfe_5d else None, - "mae_5d": float(lbl.mae_5d) if lbl.mae_5d else None, - "fwd_return_10d": float(lbl.fwd_return_10d) if lbl.fwd_return_10d else None, - "fwd_return_20d": float(lbl.fwd_return_20d) if lbl.fwd_return_20d else None, - "mfe_10d": float(lbl.mfe_10d) if lbl.mfe_10d else None, - "mae_10d": float(lbl.mae_10d) if lbl.mae_10d else None, - "mfe_20d": float(lbl.mfe_20d) if lbl.mfe_20d else None, - "mae_20d": float(lbl.mae_20d) if lbl.mae_20d else None, - "label_status": lbl.label_status, - "label_version": lbl.label_version, - } - # Use DB Event.event_date as authoritative source - ed = event_dates.get(eid) - row["event_date"] = ed.isoformat() if ed else row.get("event_date", "") - filed_at = event_filed_at.get(eid) - if isinstance(filed_at, dt.datetime): - # Always recompute to apply cross-midnight correction: - # events filed 00:00-09:30 ET on D+1 (after crossing midnight) are - # post_market of event_date D, not pre_market. - row["filing_time_bucket"] = classify_time_bucket(filed_at, ed) - - if start_date is not None and ed is not None and ed < start_date: - continue - if end_date is not None and ed is not None and ed > end_date: - continue + for _, lbl in sorted( + event_labels.get(eid, {}).items(), + key=lambda item: _entry_convention_sort_key(item[0]), + ): + row: dict[str, Any] = { + "event_id": eid, + "ticker": ticker, + "snapshot_name": "+".join(versions), + "snapshot_version": "1.0.0", + **features, + "entry_convention": lbl.entry_convention, + "reaction_date": lbl.reaction_date.isoformat() if lbl.reaction_date else None, + "entry_date": lbl.entry_date.isoformat() if lbl.entry_date else None, + "entry_price": float(lbl.entry_price) if lbl.entry_price else None, + "fwd_return_1d": float(lbl.fwd_return_1d) if lbl.fwd_return_1d else None, + "fwd_return_3d": float(lbl.fwd_return_3d) if lbl.fwd_return_3d else None, + "fwd_return_5d": float(lbl.fwd_return_5d) if lbl.fwd_return_5d else None, + "hit_pos_1r_within_3d": lbl.hit_pos_1r_within_3d, + "hit_neg_1r_within_3d": lbl.hit_neg_1r_within_3d, + "close_up_after_3d": lbl.close_up_after_3d, + "close_up_after_5d": lbl.close_up_after_5d, + "mfe_3d": float(lbl.mfe_3d) if lbl.mfe_3d else None, + "mae_3d": float(lbl.mae_3d) if lbl.mae_3d else None, + "mfe_5d": float(lbl.mfe_5d) if lbl.mfe_5d else None, + "mae_5d": float(lbl.mae_5d) if lbl.mae_5d else None, + "fwd_return_10d": float(lbl.fwd_return_10d) if lbl.fwd_return_10d else None, + "fwd_return_20d": float(lbl.fwd_return_20d) if lbl.fwd_return_20d else None, + "mfe_10d": float(lbl.mfe_10d) if lbl.mfe_10d else None, + "mae_10d": float(lbl.mae_10d) if lbl.mae_10d else None, + "mfe_20d": float(lbl.mfe_20d) if lbl.mfe_20d else None, + "mae_20d": float(lbl.mae_20d) if lbl.mae_20d else None, + "label_status": lbl.label_status, + "label_version": lbl.label_version, + } + # Use DB Event.event_date as authoritative source + ed = event_dates.get(eid) + row["event_date"] = ed.isoformat() if ed else row.get("event_date", "") + filed_at = event_filed_at.get(eid) + if isinstance(filed_at, dt.datetime): + # Always recompute to apply cross-midnight correction: + # events filed 00:00-09:30 ET on D+1 (after crossing midnight) are + # post_market of event_date D, not pre_market. + row["filing_time_bucket"] = classify_time_bucket(filed_at, ed) + + if start_date is not None and ed is not None and ed < start_date: + continue + if end_date is not None and ed is not None and ed > end_date: + continue - symbol_meta = dict(event_symbol_meta.get(eid, {})) - if ticker and ticker in explicit_symbol_meta: - symbol_meta.update(explicit_symbol_meta[ticker]) - if ticker and ticker in profile_symbol_meta: - symbol_meta.update(profile_symbol_meta[ticker]) - row.update(symbol_meta) - preliminary_rows.append(row) + symbol_meta = dict(event_symbol_meta.get(eid, {})) + if ticker and ticker in explicit_symbol_meta: + symbol_meta.update(explicit_symbol_meta[ticker]) + if ticker and ticker in profile_symbol_meta: + symbol_meta.update(profile_symbol_meta[ticker]) + row.update(symbol_meta) + preliminary_rows.append(row) # Universe-profile filtering always depends on market-cap and ADV proxies. # Keep this backfill on even for canonical rebuilds that disable the heavier diff --git a/tests/unit/backtest/test_cross_sectional_momentum.py b/tests/unit/backtest/test_cross_sectional_momentum.py new file mode 100644 index 0000000..69f4c2e --- /dev/null +++ b/tests/unit/backtest/test_cross_sectional_momentum.py @@ -0,0 +1,391 @@ +"""Unit tests for the CrossSectionalMomentum (12-1) engine. + +Like every continuous-rotation engine on this codebase, the non-negotiable bar +is the look-ahead defense: every used bar date MUST be strictly before +decision_date. The momentum window AND the rebalance gate AND the universe +filters all run through `bar_provider.get_bars_before` which enforces this. + +The Phase 19 pre-commit abort criteria are documented in the engine module +and the POC config (configs/experiments/xsmom_poc_v1.json). Tests here cover +pure logic, lookahead defense, and the rebalance-day semantics. +""" +from __future__ import annotations + +import datetime as dt +from typing import Any + +import pytest + +from libs.backtest.domain import LookaheadViolationError, StrategyEngineConfig +from libs.backtest.cross_sectional_momentum import ( + CROSS_SECTIONAL_MOMENTUM_EVENT_TYPE, + _SnapshotStoreBarAdapter, + build_candidates, + compute_12_1_momentum, + compute_20d_volatility, + compute_avg_dollar_volume_20d, + is_rebalance_day, +) + + +# --------------------------------------------------------------------------- +# Helpers +# --------------------------------------------------------------------------- + + +def _make_engine(**overrides: Any) -> StrategyEngineConfig: + base: dict[str, Any] = dict( + engine_id="xsmom_12_1_long", + event_types=[CROSS_SECTIONAL_MOMENTUM_EVENT_TYPE], + direction="long_only", + timing_class="after_close", + entry_timing_policy="next_open", + max_holding_days=21, + xsmom_enabled=True, + xsmom_lookback_days=60, # smaller for tests + xsmom_skip_days=5, + xsmom_top_n=3, + xsmom_holding_days=21, + xsmom_momentum_min=0.0, + xsmom_min_avg_dollar_volume=1_000_000.0, + xsmom_min_price=5.0, + xsmom_volatility_20d_max=0.10, + xsmom_stop_pct=0.10, + xsmom_target_pct=0.30, + ) + base.update(overrides) + return StrategyEngineConfig(**base) + + +def _business_days(start: dt.date, count: int) -> list[dt.date]: + out: list[dt.date] = [] + cursor = start + while len(out) < count: + if cursor.weekday() < 5: + out.append(cursor) + cursor = cursor + dt.timedelta(days=1) + return out + + +def _linear_bars( + days: list[dt.date], + *, + start_close: float = 100.0, + end_close: float = 130.0, + volume: float = 5_000_000.0, +) -> dict[dt.date, dict[str, Any]]: + """Linear close path from start_close to end_close across all bars.""" + n = len(days) + out: dict[dt.date, dict[str, Any]] = {} + for i, d in enumerate(days): + c = start_close + (end_close - start_close) * (i / max(1, n - 1)) + out[d] = { + "open": c, + "high": c + 0.5, + "low": c - 0.5, + "close": c, + "volume": volume, + } + return out + + +# --------------------------------------------------------------------------- +# Pure trigger computations +# --------------------------------------------------------------------------- + + +def test_12_1_momentum_basic() -> None: + days = _business_days(dt.date(2024, 1, 2), 80) # need lookback+skip=65, plenty + bars_dict = _linear_bars(days, start_close=100.0, end_close=200.0) + bars = sorted(bars_dict.items(), key=lambda kv: kv[0]) + # Use full window: lookback=60, skip=5 → window is bars[-65:-5] + momentum, used_dates = compute_12_1_momentum(bars, lookback_days=60, skip_days=5) + assert momentum is not None + # The window excludes the most recent 5 bars. With linear 100→200 across 80 bars, + # start of window is bars[-65] and end is bars[-6]. Both >100, <200. + start_close = bars[-65][1]["close"] + end_close = bars[-6][1]["close"] + expected = (end_close / start_close) - 1.0 + assert abs(momentum - expected) < 1e-9 + assert len(used_dates) == 60 + + +def test_12_1_momentum_insufficient_history() -> None: + days = _business_days(dt.date(2024, 1, 2), 30) + bars_dict = _linear_bars(days) + bars = sorted(bars_dict.items(), key=lambda kv: kv[0]) + momentum, used_dates = compute_12_1_momentum(bars, lookback_days=60, skip_days=5) + assert momentum is None + assert used_dates == [] + + +def test_20d_volatility_basic() -> None: + days = _business_days(dt.date(2024, 1, 2), 30) + bars_dict = _linear_bars(days) + bars = sorted(bars_dict.items(), key=lambda kv: kv[0]) + vol = compute_20d_volatility(bars) + assert vol is not None + assert vol >= 0 + + +def test_avg_dollar_volume_20d_basic() -> None: + days = _business_days(dt.date(2024, 1, 2), 30) + bars_dict = _linear_bars(days, start_close=100, end_close=100, volume=1_000_000.0) + bars = sorted(bars_dict.items(), key=lambda kv: kv[0]) + adv = compute_avg_dollar_volume_20d(bars) + # close ≈ 100, volume = 1M, so dollar volume ≈ 100M + assert abs(adv - 100_000_000.0) < 1_000_000.0 + + +# --------------------------------------------------------------------------- +# Rebalance-day semantics +# --------------------------------------------------------------------------- + + +def test_is_rebalance_day_first_trading_day_of_new_month() -> None: + # Last bar is 2024-01-31 (Wed); decision_date is 2024-02-01 (Thu) + bars = [(dt.date(2024, 1, 31), {"close": 100.0})] + assert is_rebalance_day(bars, dt.date(2024, 2, 1)) is True + + +def test_is_rebalance_day_mid_month() -> None: + # Last bar is 2024-01-15 (Mon); decision_date 2024-01-16 (Tue) — same month + bars = [(dt.date(2024, 1, 15), {"close": 100.0})] + assert is_rebalance_day(bars, dt.date(2024, 1, 16)) is False + + +def test_is_rebalance_day_empty_bars_returns_false() -> None: + assert is_rebalance_day([], dt.date(2024, 1, 2)) is False + + +def test_is_rebalance_day_lookahead_raises() -> None: + bars = [(dt.date(2024, 2, 1), {"close": 100.0})] + with pytest.raises(LookaheadViolationError): + is_rebalance_day(bars, dt.date(2024, 2, 1)) + + +# --------------------------------------------------------------------------- +# Lookahead defense: build_candidates rejects T+0 bars +# --------------------------------------------------------------------------- + + +class _LeakyProvider: + """Returns bars INCLUDING the decision_date — must be caught by build_candidates.""" + + def __init__(self, bars_by_symbol: dict[str, dict[dt.date, dict[str, Any]]]) -> None: + self.bars_by_symbol = bars_by_symbol + + def get_bars_before( + self, symbol: str, as_of_date: dt.date, lookback_days: int + ) -> list[tuple[dt.date, dict[str, Any]]]: + # INTENTIONALLY LEAKY: returns bars where date == as_of_date too. + sym_bars = self.bars_by_symbol.get(symbol.upper(), {}) + ordered = sorted(sym_bars.items(), key=lambda kv: kv[0]) + return [(d, b) for d, b in ordered if d <= as_of_date][-lookback_days:] + + +def test_build_raises_lookahead_when_provider_returns_t0_bar() -> None: + """Proof-by-contradiction: a leaky provider that returns T+0 must trip the assertion.""" + days = _business_days(dt.date(2024, 1, 2), 80) + decision_date = days[-1] # final day is decision_date — leaky provider returns it + next_date = decision_date + dt.timedelta(days=1) + # Ensure decision_date is first trading day of new month — pick a setup that's a rebalance. + # Easier: just patch the rebalance check by using a non-rebalance date but with a leaky T+0; + # the leak should trip BEFORE rebalance gate via the explicit assertion. + bars_dict = _linear_bars(days) + leaky = _LeakyProvider({"FOO": bars_dict}) + engine = _make_engine() + with pytest.raises(LookaheadViolationError): + build_candidates( + decision_date=decision_date, + next_trading_date=next_date, + universe_symbols=["FOO"], + engine=engine, + bar_provider=leaky, + ) + + +def test_build_returns_empty_on_non_rebalance_day() -> None: + """Mid-month decision_date must yield 0 candidates (no rebalance).""" + days = _business_days(dt.date(2024, 1, 2), 80) + bars_dict = _linear_bars(days) + bars_by_symbol = {f"SYM{i}": bars_dict for i in range(5)} + adapter = _SnapshotStoreBarAdapter(bars_by_symbol=bars_by_symbol) + engine = _make_engine() + + # Use a mid-month date (where last_bar.month == decision_date.month). + decision_date = days[40] # somewhere mid-period + next_date = decision_date + dt.timedelta(days=1) + # Adjust: ensure last_bar (strictly before decision_date) is in same month + # The adapter strictly-before guarantees last_bar = days[39]. days[39] and days[40] same month. + candidates = build_candidates( + decision_date=decision_date, + next_trading_date=next_date, + universe_symbols=list(bars_by_symbol.keys()), + engine=engine, + bar_provider=adapter, + ) + assert candidates == [] + + +# --------------------------------------------------------------------------- +# Build candidates — happy path with multiple symbols + top-N selection +# --------------------------------------------------------------------------- + + +def test_build_emits_top_n_on_rebalance_day() -> None: + """Construct 5 symbols with distinct momentum and verify top-3 emission.""" + days = _business_days(dt.date(2024, 1, 2), 200) + # decision_date should be first trading day of a new month AND have + # >= lookback+skip bars (65) of history strictly before it. + rebalance_idx = None + for i in range(70, len(days)): + if days[i].month != days[i - 1].month: + rebalance_idx = i + break + assert rebalance_idx is not None + decision_date = days[rebalance_idx] + next_date = decision_date + dt.timedelta(days=1) + used_days = days[: rebalance_idx + 1] # bar_provider returns strictly-before, so up to days[rebalance_idx-1] are eligible + + bars_by_symbol: dict[str, dict[dt.date, dict[str, Any]]] = {} + # 5 symbols with end_close in increasing order → momentum ranks ascending + end_closes = [110.0, 120.0, 130.0, 140.0, 150.0] + for i, end_c in enumerate(end_closes): + sym = f"SYM{i}" + bars_by_symbol[sym] = _linear_bars(used_days, start_close=100.0, end_close=end_c) + + adapter = _SnapshotStoreBarAdapter(bars_by_symbol=bars_by_symbol) + engine = _make_engine(xsmom_top_n=3) + candidates = build_candidates( + decision_date=decision_date, + next_trading_date=next_date, + universe_symbols=list(bars_by_symbol.keys()), + engine=engine, + bar_provider=adapter, + ) + assert len(candidates) == 3 + # Highest momentum (SYM4) should be top-ranked + symbols_emitted = [c.symbol for c in candidates] + assert "SYM4" in symbols_emitted + assert "SYM3" in symbols_emitted + assert "SYM2" in symbols_emitted + assert "SYM0" not in symbols_emitted + assert "SYM1" not in symbols_emitted + + +def test_build_filters_negative_momentum() -> None: + """Symbols with momentum < momentum_min must be dropped.""" + days = _business_days(dt.date(2024, 1, 2), 200) + rebalance_idx = None + for i in range(70, len(days)): + if days[i].month != days[i - 1].month: + rebalance_idx = i + break + assert rebalance_idx is not None + decision_date = days[rebalance_idx] + next_date = decision_date + dt.timedelta(days=1) + used_days = days[: rebalance_idx + 1] + + # 3 symbols with end_close BELOW start → negative momentum + bars_by_symbol = { + f"NEG{i}": _linear_bars(used_days, start_close=100.0, end_close=80.0 + i) + for i in range(3) + } + # 2 with positive + bars_by_symbol["POS1"] = _linear_bars(used_days, start_close=100.0, end_close=120.0) + bars_by_symbol["POS2"] = _linear_bars(used_days, start_close=100.0, end_close=140.0) + + adapter = _SnapshotStoreBarAdapter(bars_by_symbol=bars_by_symbol) + engine = _make_engine(xsmom_top_n=10, xsmom_momentum_min=0.0) + candidates = build_candidates( + decision_date=decision_date, + next_trading_date=next_date, + universe_symbols=list(bars_by_symbol.keys()), + engine=engine, + bar_provider=adapter, + ) + symbols_emitted = {c.symbol for c in candidates} + assert symbols_emitted == {"POS1", "POS2"} + + +def test_build_filters_volatility_max() -> None: + """Symbols with 20d vol above the max must be dropped.""" + days = _business_days(dt.date(2024, 1, 2), 200) + rebalance_idx = None + for i in range(70, len(days)): + if days[i].month != days[i - 1].month: + rebalance_idx = i + break + assert rebalance_idx is not None + decision_date = days[rebalance_idx] + next_date = decision_date + dt.timedelta(days=1) + used_days = days[: rebalance_idx + 1] + + # SMOOTH: linear path → low vol + smooth_bars = _linear_bars(used_days, start_close=100.0, end_close=130.0) + # CHOPPY: alternating up/down by 20% from base, end at 130 + choppy_bars: dict[dt.date, dict[str, Any]] = {} + for i, d in enumerate(used_days): + base = 100 + 30 * (i / max(1, len(used_days) - 1)) + # Alternate ±20% on consecutive days + c = base * (1.2 if i % 2 == 0 else 0.8) + choppy_bars[d] = {"open": c, "high": c + 0.5, "low": c - 0.5, "close": c, "volume": 5_000_000.0} + + bars_by_symbol = {"SMOOTH": smooth_bars, "CHOPPY": choppy_bars} + adapter = _SnapshotStoreBarAdapter(bars_by_symbol=bars_by_symbol) + engine = _make_engine(xsmom_top_n=10, xsmom_volatility_20d_max=0.05) # ~5% vol cap + candidates = build_candidates( + decision_date=decision_date, + next_trading_date=next_date, + universe_symbols=list(bars_by_symbol.keys()), + engine=engine, + bar_provider=adapter, + ) + symbols_emitted = {c.symbol for c in candidates} + assert "CHOPPY" not in symbols_emitted + # SMOOTH may or may not survive depending on momentum_min — but it must NOT be the choppy one + + +# --------------------------------------------------------------------------- +# Engine disabled / no universe / etc — defensive +# --------------------------------------------------------------------------- + + +def test_build_returns_empty_when_engine_disabled() -> None: + engine = _make_engine(xsmom_enabled=False) + adapter = _SnapshotStoreBarAdapter(bars_by_symbol={}) + candidates = build_candidates( + decision_date=dt.date(2024, 2, 1), + next_trading_date=dt.date(2024, 2, 2), + universe_symbols=["FOO"], + engine=engine, + bar_provider=adapter, + ) + assert candidates == [] + + +def test_build_raises_when_next_date_not_after_decision() -> None: + engine = _make_engine() + adapter = _SnapshotStoreBarAdapter(bars_by_symbol={}) + with pytest.raises(LookaheadViolationError): + build_candidates( + decision_date=dt.date(2024, 2, 2), + next_trading_date=dt.date(2024, 2, 1), # before + universe_symbols=["FOO"], + engine=engine, + bar_provider=adapter, + ) + + +def test_snapshot_store_adapter_returns_only_strictly_before() -> None: + """The cached adapter must NEVER return bars where date >= as_of_date.""" + days = [dt.date(2024, 1, d) for d in (2, 3, 4, 5, 8)] # mix of weekdays + bars = {d: {"close": 100.0 + i, "high": 101.0, "low": 99.0, "volume": 1e6} for i, d in enumerate(days)} + adapter = _SnapshotStoreBarAdapter(bars_by_symbol={"FOO": bars}) + + # as_of_date = days[3]; should return only days[:3] + out = adapter.get_bars_before("FOO", days[3], lookback_days=10) + out_dates = [d for d, _ in out] + assert all(d < days[3] for d in out_dates) + assert out_dates == days[:3] diff --git a/tests/unit/backtest/test_earnings_runup.py b/tests/unit/backtest/test_earnings_runup.py index cb980a2..5e7bcbd 100644 --- a/tests/unit/backtest/test_earnings_runup.py +++ b/tests/unit/backtest/test_earnings_runup.py @@ -817,3 +817,80 @@ def test_pct_trailing_via_engine_candidate_in_effective_exec(): assert eff.trailing_model == "pct_3" assert eff.trailing_pct_activation == pytest.approx(0.05) assert eff.trailing_pct_giveback == pytest.approx(0.03) + + +# --------------------------------------------------------------------------- +# Capital-bucket silo propagation (regression for Phase 11 ER silo fix) +# --------------------------------------------------------------------------- + + +def test_build_propagates_capital_bucket_fields_when_set(): + """When the engine config sets capital_bucket_id + allocation_pct, the synthetic + Candidate must carry both into engine_capital_bucket_id / + engine_capital_bucket_allocation_pct so the bucket-allocator silo applies. + + Pre-fix bug (Phase 11 diagnostic): these fields were dropped, making the silo + a no-op. The earnings-runup engine then ran on the shared portfolio budget + instead of its allocated bucket. + """ + setup = _build_full_setup() + engine = _make_engine( + capital_bucket_id="earnings_runup", + capital_bucket_allocation_pct=0.15, + ) + cands = build_earnings_runup_candidates( + decision_date=setup["decision_date"], + next_trading_date=setup["next_trading_date"], + universe_symbols=[setup["symbol"]], + engine=engine, + upcoming_earnings_provider=setup["upcoming_provider"], + attention_provider=setup["attention_provider"], + bar_provider=setup["bar_provider"], + ) + assert len(cands) == 1 + cand = cands[0] + assert cand.engine_capital_bucket_id == "earnings_runup" + assert cand.engine_capital_bucket_allocation_pct == pytest.approx(0.15) + + +def test_build_defaults_capital_bucket_id_to_engine_id_when_only_alloc_set(): + """If allocation_pct is set but capital_bucket_id is None, the candidate's + bucket_id should fall back to the engine_id (mirrors selector.py convention). + """ + setup = _build_full_setup() + engine = _make_engine( + capital_bucket_id=None, + capital_bucket_allocation_pct=0.20, + ) + cands = build_earnings_runup_candidates( + decision_date=setup["decision_date"], + next_trading_date=setup["next_trading_date"], + universe_symbols=[setup["symbol"]], + engine=engine, + upcoming_earnings_provider=setup["upcoming_provider"], + attention_provider=setup["attention_provider"], + bar_provider=setup["bar_provider"], + ) + assert len(cands) == 1 + cand = cands[0] + assert cand.engine_capital_bucket_id == engine.engine_id + assert cand.engine_capital_bucket_allocation_pct == pytest.approx(0.20) + + +def test_build_leaves_capital_bucket_fields_none_when_engine_has_none(): + """Default behaviour (no silo): both bucket fields on the candidate must be None.""" + setup = _build_full_setup() + engine = _make_engine() # neither field set + cands = build_earnings_runup_candidates( + decision_date=setup["decision_date"], + next_trading_date=setup["next_trading_date"], + universe_symbols=[setup["symbol"]], + engine=engine, + upcoming_earnings_provider=setup["upcoming_provider"], + attention_provider=setup["attention_provider"], + bar_provider=setup["bar_provider"], + ) + assert len(cands) == 1 + cand = cands[0] + assert cand.engine_capital_bucket_id is None + assert cand.engine_capital_bucket_allocation_pct is None diff --git a/tests/unit/backtest/test_peer_sympathy.py b/tests/unit/backtest/test_peer_sympathy.py index 6fb4819..6f28e60 100644 --- a/tests/unit/backtest/test_peer_sympathy.py +++ b/tests/unit/backtest/test_peer_sympathy.py @@ -1216,3 +1216,55 @@ def test_reaction_close_does_not_consult_peer_t0_reaction(): last_pre_t = max(d for d in bars[setup["peer_symbol"]] if d < setup["decision_date"]) expected_close = float(bars[setup["peer_symbol"]][last_pre_t]["close"]) assert math.isclose(cands[0].entry_price_est, expected_close, rel_tol=1e-6) + + +# --------------------------------------------------------------------------- +# Capital-bucket silo propagation (regression for Phase 11 ER silo audit) +# --------------------------------------------------------------------------- + + +def test_build_propagates_capital_bucket_fields_when_set(): + """When the engine config sets capital_bucket_id + allocation_pct, the synthetic + Candidate must carry both into the engine_capital_bucket_* fields so the + bucket-allocator silo is honoured. + + Pre-fix bug (audited alongside earnings_runup in Phase 11): these fields were + silently dropped when building synthetic peer-sympathy candidates. + """ + setup = _build_full_setup(correlation=0.90) + engine = _make_engine( + capital_bucket_id="peer_sympathy", + capital_bucket_allocation_pct=0.10, + ) + cands = build_peer_sympathy_candidates( + decision_date=setup["decision_date"], + next_trading_date=setup["next_trading_date"], + leaders=[setup["leader"]], + peer_resolver=setup["peer_resolver"], + engine=engine, + bar_provider=setup["bar_provider"], + trading_days=setup["trading_days"], + ) + assert len(cands) == 1 + cand = cands[0] + assert cand.engine_capital_bucket_id == "peer_sympathy" + assert cand.engine_capital_bucket_allocation_pct == pytest.approx(0.10) + + +def test_build_leaves_capital_bucket_fields_none_when_engine_has_none(): + """Default behaviour (no silo): both bucket fields on the candidate must be None.""" + setup = _build_full_setup(correlation=0.90) + engine = _make_engine() # neither bucket field set + cands = build_peer_sympathy_candidates( + decision_date=setup["decision_date"], + next_trading_date=setup["next_trading_date"], + leaders=[setup["leader"]], + peer_resolver=setup["peer_resolver"], + engine=engine, + bar_provider=setup["bar_provider"], + trading_days=setup["trading_days"], + ) + assert len(cands) == 1 + cand = cands[0] + assert cand.engine_capital_bucket_id is None + assert cand.engine_capital_bucket_allocation_pct is None diff --git a/tests/unit/backtest/test_vol_breakout_52w.py b/tests/unit/backtest/test_vol_breakout_52w.py index 731f61a..fceb7df 100644 --- a/tests/unit/backtest/test_vol_breakout_52w.py +++ b/tests/unit/backtest/test_vol_breakout_52w.py @@ -898,3 +898,52 @@ def test_exit_intraday_priority_stop_before_target_when_both_touched(): trade = simulate_exit(pos, bar, _exec_config_for_exit_test(), dt.date(2026, 4, 15)) assert trade is not None assert trade.exit_reason == ExitReason.STOP + + +# --------------------------------------------------------------------------- +# Capital-bucket silo propagation (regression for Phase 11 ER silo audit) +# --------------------------------------------------------------------------- + + +def test_build_propagates_capital_bucket_fields_when_set(): + """Synthetic VolBreakout52w candidates must propagate capital_bucket_id + + allocation_pct from the engine config so the bucket-allocator silo is honoured. + + Pre-fix bug (audited alongside earnings_runup in Phase 11): these fields were + silently dropped when building synthetic candidates. + """ + setup = _build_full_setup() + engine = _make_engine( + capital_bucket_id="vol_breakout_52w", + capital_bucket_allocation_pct=0.25, + ) + cands = build_candidates( + decision_date=setup["decision_date"], + next_trading_date=setup["next_trading_date"], + universe_symbols=[setup["symbol"]], + engine=engine, + bar_provider=setup["bar_provider"], + pre_open_gap_provider=None, + ) + assert len(cands) == 1 + cand = cands[0] + assert cand.engine_capital_bucket_id == "vol_breakout_52w" + assert cand.engine_capital_bucket_allocation_pct == pytest.approx(0.25) + + +def test_build_leaves_capital_bucket_fields_none_when_engine_has_none(): + """Default behaviour (no silo): both bucket fields on the candidate must be None.""" + setup = _build_full_setup() + engine = _make_engine() # neither bucket field set + cands = build_candidates( + decision_date=setup["decision_date"], + next_trading_date=setup["next_trading_date"], + universe_symbols=[setup["symbol"]], + engine=engine, + bar_provider=setup["bar_provider"], + pre_open_gap_provider=None, + ) + assert len(cands) == 1 + cand = cands[0] + assert cand.engine_capital_bucket_id is None + assert cand.engine_capital_bucket_allocation_pct is None