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.
I Luk Kim 5056295cb6 Add lookback entry feature for bounded backtests
When a backtest starts mid-stream (via --start), events that fired
before the start date but are still within their max_holding_days
window can now be entered on the first simulation day.

- Add `lookback_entry_enabled: bool = False` to ExecutionConfig
- On first sim day, _collect_lookback_candidates() gathers pre-start
  events, runs them through the same select_candidates() pipeline,
  and injects them before normal candidates
- Entry fills at the first day's open price; gap-cap check is skipped
  since the event is multi-days old
- days_held is initialized to the elapsed trading days so TIME exits
  fire at the correct time relative to the original event date
- Store slice is extended backward by max_mhd calendar buffer so
  pre-start rows survive slice_by_date_range when feature is enabled
- Enabled in return_max_long_v7.119 for testing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 months ago
..
scenarios Add synthetic scenario robustness testing system 5 months ago
__init__.py feat: implement Phase 4 -- event-driven backtester 5 months ago
allocator.py Fix cash parking phantom-money bug + live engine parking liquidation for events 5 months ago
artifacts.py Add overlay engine, ranking models, snapshot pipelines, and research tools 5 months ago
attention.py Unify BacktestRunner and PaperTradingEngine trade decision logic 5 months ago
calendar.py feat: implement Phase 4 -- event-driven backtester 5 months ago
domain.py Add lookback entry feature for bounded backtests 4 months ago
execution.py Fix cash parking phantom-money bug + live engine parking liquidation for events 5 months ago
experiments.py Fix cash parking phantom-money bug + live engine parking liquidation for events 5 months ago
form4_calendar.py Add Form4 residual-cash sleeve and UI support 4 months ago
manifests.py Implement multi-engine PEAD strategy research workflow 5 months ago
metrics.py Recalibrate public SQS and exposure-aware tracking 5 months ago
overfit.py Fix cash parking phantom-money bug + live engine parking liquidation for events 5 months ago
ranking_models.py Add overlay engine, ranking models, snapshot pipelines, and research tools 5 months ago
scoring.py Fix cash parking phantom-money bug + live engine parking liquidation for events 5 months ago
selector.py Fix PIT snapshot store regressions for backtests 5 months ago
snapshot_store.py Fix PIT snapshot store regressions for backtests 5 months ago
splits.py Enhance backtest engine: v11 scoring, selector expansion, snapshot store improvements 5 months ago
tracker.py Fix cash parking phantom-money bug + live engine parking liquidation for events 5 months ago