You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill triggered stop limit orders as limit orders on later bars (#9787)
* Fill triggered stop limit orders as limit orders on later bars
Track the time a stop limit order's stop was triggered, the end time of
the data that triggered it, and fill the limit leg like a resting limit
order on data that is entirely after it. The trigger bar keeps the
close based test since its range may predate the trigger. The time is
serialized, cloned and propagated through the order update event.
Closes#9773
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Zic3mz9ZogfCvhzoTXvDG
* Default the stop triggered time to the current time when not provided
Brokerages that only flip the stop triggered flag get the algorithm time
as the trigger time, so the fill models can still tell later data apart.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Zic3mz9ZogfCvhzoTXvDG
* Never clear the stop triggered time and fill it in when missing
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Zic3mz9ZogfCvhzoTXvDG
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
0 commit comments