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 4c5798913b Extend lookback entry to paper trader and mock broker
Live paper trader (engine.py):
- On first run_next_open per daemon session, call get_candidates_for_lookback()
  to fetch events from [today - max_mhd*2, today) that are still active
- Skip gap-cap check for lookback entries (multi-day drift ≠ overnight gap)
- Initialize days_held to elapsed trading days when saving strategy state

EventDetector (event_detector.py):
- Extract shared enrichment logic into _enrich_raw_rows(raw_rows, bar_end_date, config)
- Add _fetch_events_for_date_range(start, end): single DB query with entry_date range
- Add get_candidates_for_lookback(today, start_date, config): annotates each row
  with is_lookback_entry=True and lookback_days_elapsed=N

Mock broker (backtest_sim.py):
- Extend slice_by_date_range start backward when lookback_entry_enabled, mirroring
  the same logic already present in apps/backtester/run.py main()

Verified: BX/EBAY/ENB all entered 2026-03-30 via lookback in both research
backtest and mock broker. Parking, idle_alpha, form4 sleeves unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 months ago
..
backtester Add lookback entry feature for bounded backtests 4 months ago
paper_trader Extend lookback entry to paper trader and mock broker 4 months ago
pipeline Add overlay engine, ranking models, snapshot pipelines, and research tools 5 months ago
qa feat: implement Phase 3 -- LLM enrichment, labeler, review queue, dataset export 5 months ago
review feat: implement Phase 3 -- LLM enrichment, labeler, review queue, dataset export 5 months ago
scenario Add synthetic scenario robustness testing system 5 months ago
sync feat: PEAD mid-cap strategy + pipeline hardening + README cleanup 5 months ago
tools Add Form4 residual-cash sleeve and UI support 4 months ago
tracker Add synthetic scenario robustness testing system 5 months ago
web Add Form4 residual-cash sleeve and UI support 4 months ago
web_frontend/src Add Form4 residual-cash sleeve and UI support 4 months ago
__init__.py feat: implement ACE-F v1 Phase 1 -- Stock Oracle 기반 이벤트 파이프라인 5 months ago