You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adds three new synthetic-Candidate emitter engines parallel to the existing leader_follower scheduler hook, plus look-ahead defenses (LookaheadViolationError + per-engine assertions). Each engine is covered by a standalone PoC config (no PEAD/parking/idle alpha) for isolation backtests against the midlarge or broad snapshot. Engines: EarningsRunup (libs/backtest/earnings_runup.py) - Trigger: days_to_earnings ∈ [3,7] AND attention_zscore_20d ≥ 1.5 AND dollar_volume_20d_zscore ≥ 1.0 (all evaluated at T-1 close) - Entry: T+1 next_open. Exit: -4% / +8% / max_holding_days = days_to_earnings - buffer (forced flat by close before announcement) - PIT calendar: PointInTimeEarningsCalendar adapter for backtest; oracle_surprise_prefetch fallback when parquet calendar absent - PoC verdict (configs/experiments/earnings_runup_poc_v1.json): 119 trades over 1051 days, +37.27% total return, 44.46% MDD, SQS 45.2 (profitability=55.5, risk=23.5, robustness=50.1). VIABLE BUT NEEDS WORK — signal exists; standalone risk profile too aggressive for v7.356 baseline (8.8% MDD on v7.364). Path forward: per_trade_risk reduction, VIX gate, position cap, or integrate as PEAD sleeve adjunct (not as standalone replacement). PeerSympathy (libs/backtest/peer_sympathy.py) - Trigger: leader passes PEAD filter (earnings_release / guidance_update / material_contract) AND leader reaction_close ≥ +5% AND peer 60d correlation ≥ 0.55 over [T-65, T-5]. Top-2 peers by correlation from leader_follower_extra_peer_symbols_by_sector + sector ETF holdings. - Entry: T+1 next_open on peer. Exit: -3.5% / +6% / max_holding=3 / peer-earnings blackout - PoC verdict (configs/experiments/peer_sympathy_poc_v1.json): 256 trades over 1051 days, -52.92% total return, 54.47% MDD, SQS 19.6 (profitability=0.0, risk=5.4, robustness=100.0). DEAD. The leader's catalyst is already absorbed by T+1 next_open — peers gap up overnight before entry. robustness=100 confirms the negative result is not noise. Salvage paths (not implemented): reaction_close entry, raised-guidance-only restriction. - Note: initial run_id was 0 trades due to a select_candidates filter mismatch (engine.event_types=['peer_sympathy'] dropping real event_type='earnings_release' rows). The runner adapter was patched to bypass strategy_engine filtering for leader selection; the manual peer_sympathy_leader_event_types filter does the gating. VolBreakout52w (libs/backtest/vol_breakout_52w.py) - Trigger: close_T-1 > max(high[T-252:T-2]) AND volume_T-1 ≥ 2 × median_volume_20d_T-2 AND ATR_14_T-1/close ∈ [0.015, 0.06]. Entry T next_open, exit -3% / +5% / max_holding=2 / MOC. - Honest, look-ahead-safe descendant of the retired topgainer v1-v54 family. Five layers of strict-before assertions guard the bar provider, candidate construction, trigger evaluation, and feature timestamps. A leaky-provider proof-by-contradiction test demonstrates the categorical catch. - PoC verdict (configs/experiments/vol_breakout_52w_poc_v1.json, broad-liquid universe): 1,332 trades, -87.28% total return, 88.74% MDD, SQS 24.4 (profitability=0.0, robustness=100.0). DEAD AND HONEST. This is the most important finding of the three PoCs: the topgainer v1-v54 lineage's headline returns (+267% Sharpe 13.73 in best variants) were 100% lookahead bug. With the bug removed, the 52w-high + volume + ATR signal has no real alpha — the lookahead-corrected -4.3% from prior memory is confirmed and amplified to -87% on a fuller universe and longer horizon. Future "revive topgainer" proposals can cite this run (bt_return_max_long_v1_broad-liquid_20260509042903892342_3bb473d9) as definitive falsification. - Pre-open gap guard inactive (no premarket data in broad snapshot). skip_if_no_gap_data=true; the +4% gap-fade guard would not move the result given the magnitude. Shared infrastructure additions: - libs/backtest/domain.py: LookaheadViolationError class + StrategyEngineConfig fields (11 EarningsRunup + 11 PeerSympathy + 13 VolBreakout52w = 35 new fields) - apps/backtester/run.py: _BacktestAttentionZscoreAdapter, _RunnerPeerResolver, _schedule_earnings_runup_candidates, _schedule_peer_sympathy_candidates, _schedule_vol_breakout_52w_candidates wired into the daily scheduler block. PeerSympathy adapter bypasses strategy_engine filtering on leader selection (manual filter handles gating). Tests: 21 (EarningsRunup) + 27 (PeerSympathy) + 38 (VolBreakout52w) = 86 new unit tests, all passing. Broader unit suite: 1392 passed, 2 pre-existing failures unrelated. Net engine state: EarningsRunup is the only viable new engine class. PeerSympathy and VolBreakout52w are kept in-tree as falsification evidence, not as production engines. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
3 months ago | |
|---|---|---|
| .. | ||
| .id_lock | 4 months ago | |
| .index.json | 4 months ago | |
| earnings_runup_poc_v1.json | 3 months ago | |
| empty_strategy.json | 4 months ago | |
| pead_step14_diag.json | 4 months ago | |
| peer_sympathy_poc_v1.json | 3 months ago | |
| return_max_long_v7.1.json | 4 months ago | |
| return_max_long_v7.2.json | 4 months ago | |
| return_max_long_v7.3.json | 4 months ago | |
| return_max_long_v7.4.json | 4 months ago | |
| return_max_long_v7.5.json | 4 months ago | |
| return_max_long_v7.6.json | 4 months ago | |
| return_max_long_v7.7.json | 4 months ago | |
| return_max_long_v7.8.json | 4 months ago | |
| return_max_long_v7.9.json | 4 months ago | |
| return_max_long_v7.10.json | 4 months ago | |
| return_max_long_v7.11.json | 4 months ago | |
| return_max_long_v7.12.json | 4 months ago | |
| return_max_long_v7.13.json | 4 months ago | |
| return_max_long_v7.14.json | 4 months ago | |
| return_max_long_v7.15.json | 4 months ago | |
| return_max_long_v7.16.json | 4 months ago | |
| return_max_long_v7.17.json | 4 months ago | |
| return_max_long_v7.18.json | 4 months ago | |
| return_max_long_v7.19.json | 4 months ago | |
| return_max_long_v7.20.json | 4 months ago | |
| return_max_long_v7.21.json | 4 months ago | |
| return_max_long_v7.22.json | 4 months ago | |
| return_max_long_v7.23.json | 4 months ago | |
| return_max_long_v7.24.json | 4 months ago | |
| return_max_long_v7.25.json | 4 months ago | |
| return_max_long_v7.26.json | 4 months ago | |
| return_max_long_v7.27.json | 4 months ago | |
| return_max_long_v7.28.json | 4 months ago | |
| return_max_long_v7.29.json | 4 months ago | |
| return_max_long_v7.30.json | 4 months ago | |
| return_max_long_v7.31.json | 4 months ago | |
| return_max_long_v7.32.json | 4 months ago | |
| return_max_long_v7.33.json | 4 months ago | |
| return_max_long_v7.34.json | 4 months ago | |
| return_max_long_v7.35.json | 4 months ago | |
| return_max_long_v7.36.json | 4 months ago | |
| return_max_long_v7.37.json | 4 months ago | |
| return_max_long_v7.38.json | 4 months ago | |
| return_max_long_v7.39.json | 4 months ago | |
| return_max_long_v7.40.json | 4 months ago | |
| return_max_long_v7.41.json | 4 months ago | |
| return_max_long_v7.42.json | 4 months ago | |
| return_max_long_v7.43.json | 4 months ago | |
| return_max_long_v7.44.json | 4 months ago | |
| return_max_long_v7.45.json | 4 months ago | |
| return_max_long_v7.46.json | 4 months ago | |
| return_max_long_v7.48.json | 4 months ago | |
| return_max_long_v7.49.json | 4 months ago | |
| return_max_long_v7.50.json | 4 months ago | |
| return_max_long_v7.51.json | 4 months ago | |
| return_max_long_v7.52.json | 4 months ago | |
| return_max_long_v7.53.json | 4 months ago | |
| return_max_long_v7.56.json | 4 months ago | |
| return_max_long_v7.57.json | 4 months ago | |
| return_max_long_v7.59.json | 4 months ago | |
| return_max_long_v7.60.json | 4 months ago | |
| return_max_long_v7.61.json | 4 months ago | |
| return_max_long_v7.62.json | 4 months ago | |
| return_max_long_v7.64.json | 4 months ago | |
| return_max_long_v7.66.json | 4 months ago | |
| return_max_long_v7.67.json | 4 months ago | |
| return_max_long_v7.69.json | 4 months ago | |
| return_max_long_v7.70.json | 4 months ago | |
| return_max_long_v7.70_midwide.json | 4 months ago | |
| return_max_long_v7.71.json | 4 months ago | |
| return_max_long_v7.73.json | 4 months ago | |
| return_max_long_v7.74.json | 4 months ago | |
| return_max_long_v7.75.json | 4 months ago | |
| return_max_long_v7.76.json | 4 months ago | |
| return_max_long_v7.77.json | 4 months ago | |
| return_max_long_v7.78.json | 4 months ago | |
| return_max_long_v7.79.json | 4 months ago | |
| return_max_long_v7.80.json | 4 months ago | |
| return_max_long_v7.81.json | 4 months ago | |
| return_max_long_v7.82.json | 4 months ago | |
| return_max_long_v7.83.json | 4 months ago | |
| return_max_long_v7.84.json | 4 months ago | |
| return_max_long_v7.85.json | 4 months ago | |
| return_max_long_v7.86.json | 4 months ago | |
| return_max_long_v7.87.json | 4 months ago | |
| return_max_long_v7.88.json | 4 months ago | |
| return_max_long_v7.89.json | 4 months ago | |
| return_max_long_v7.90.json | 4 months ago | |
| return_max_long_v7.91.json | 4 months ago | |
| return_max_long_v7.92.json | 4 months ago | |
| return_max_long_v7.93.json | 4 months ago | |
| return_max_long_v7.94.json | 4 months ago | |
| return_max_long_v7.95.json | 5 months ago | |
| return_max_long_v7.96.json | 5 months ago | |
| return_max_long_v7.97.json | 5 months ago | |
| return_max_long_v7.98.json | 5 months ago | |
| return_max_long_v7.120_composed_gld.json | 4 months ago | |
| return_max_long_v7.121.json | 4 months ago | |
| return_max_long_v7.122.json | 4 months ago | |
| return_max_long_v7.124.json | 4 months ago | |
| return_max_long_v7.125.json | 4 months ago | |
| return_max_long_v7.126.json | 4 months ago | |
| return_max_long_v7.127.json | 4 months ago | |
| return_max_long_v7.128_composed_gld.json | 4 months ago | |
| return_max_long_v7.267_composed_gld_cp_guarded.json | 4 months ago | |
| return_max_long_v7.268_composed_gld_cp_guarded_temp100.json | 4 months ago | |
| return_max_long_v7.356-mod1_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod2_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod3_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod4_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod5_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod9_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod11_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod12_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod17_composed_gld.json | 4 months ago | |
| return_max_long_v7.356-mod18_composed_gld.json | 4 months ago | |
| return_max_long_v7.356_composed_gld.json | 4 months ago | |
| return_max_long_v7.356_composed_gld_compound.json | 4 months ago | |
| return_max_long_v7.359_composed_gld.json | 4 months ago | |
| return_max_long_v7.360_composed_gld.json | 4 months ago | |
| return_max_long_v7.361_composed_gld.json | 4 months ago | |
| return_max_long_v7.362_composed_gld.json | 4 months ago | |
| return_max_long_v7.363_composed_gld.json | 4 months ago | |
| return_max_long_v7.364_composed_gld.json | 4 months ago | |
| vol_breakout_52w_poc_v1.json | 3 months ago | |