|
|
|
@ -648,12 +648,12 @@ class ORBTradingEngine:
|
|
|
|
"remaining": len(still_pending),
|
|
|
|
"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]:
|
|
|
|
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.
|
|
|
|
Stop logic mirrors orb_simulator.py:477-580 exactly.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
self._date_str = date_str
|
|
|
|
self._date_str = date_str
|
|
|
|
|