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.
On the last simulation day, parking was entered at EOD close price (when _had_event_activity_today=True) and immediately liquidated at close by end-of-backtest cleanup → entry == exit → PnL = 0. Fix: force all six parking entry code paths to use "open" price when date == last_simulation_date, so entry and cleanup-close are always different prices. Also adds _parking_cap logic in _extend_store_to_requested_window to cap _requested_end_date at the last date where QQQM/TQQQ/SGOV all have Oracle close-price data, preventing the simulation from including days where macro is incomplete and the exit fallback would fire. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
4 months ago | |
|---|---|---|
| .. | ||
| backtest | 4 months ago | |
| common | 4 months ago | |
| db | 5 months ago | |
| export | 4 months ago | |
| features | 4 months ago | |
| intraday | 4 months ago | |
| labeler | 4 months ago | |
| llm | 5 months ago | |
| oracle_client | 4 months ago | |
| parser | 5 months ago | |
| review | 5 months ago | |
| schemas | 5 months ago | |
| __init__.py | 5 months ago | |