From ecbff65ea40ac29146805da511186d17a23d7de7 Mon Sep 17 00:00:00 2001 From: I Luk Kim Date: Mon, 20 Apr 2026 15:49:10 -0700 Subject: [PATCH] Update run_stop_check docstring to reflect dynamic sim_bar_minutes schedule Co-Authored-By: Claude Sonnet 4.6 --- apps/orb_trader/engine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/orb_trader/engine.py b/apps/orb_trader/engine.py index 7560e34..8c638cd 100644 --- a/apps/orb_trader/engine.py +++ b/apps/orb_trader/engine.py @@ -648,12 +648,12 @@ class ORBTradingEngine: "remaining": len(still_pending), } - # ── Phase 4: Stop Check (90-min checkpoints) ────────────────────────────── + # ── Phase 4: Stop Check (sim_bar_minutes checkpoints) ──────────────────── def run_stop_check(self, date_str: str) -> dict[str, Any]: - """Evaluate stops for all open positions using 90-min aggregated bars. + """Evaluate stops for all open positions using aggregated bars. - Called at 11:10, 12:40, 14:10, 15:40 ET. + Called every sim_bar_minutes from orb_end until 15:55 ET. Stop logic mirrors orb_simulator.py:477-580 exactly. """ self._date_str = date_str