Time Category Message
11/16/2024 12:54:42 PM Default Strategy 'SilverBulletInvertedStrategy/339703792': An order has been ignored since the stop price ‘5909’ near the bar stamped ‘11/15/2024 05:46:00’ is invalid based on the price range of the bar. This is an invalid order and subsequent orders may also be ignored.
This is the chart I have. It should have triggered the stop but since the stop order was determined "invalid", it went to target. The debugger shows the order was placed at 05:46 AM. Entry price was 5906. It computed stop price to be 5909. The order was a sell stop limit order with stop price and limit price to be both 5906. Since the low of the bar at 05:46 AM was 5906.25, it should not trigger. However, as soon as this order was placed, the OnExecutionUpdate method was called, and Time[0] shows it is still currently 05:46 AM. Since the high of this bar was 5911.75, it rejected my stop loss order of 5909 because it was an invalid price.
Can anyone please let me know what went wrong here? What was shown in my Visual Studio debugger was a little different from what's on the chart. The chart shows the order was triggered on 05:47 AM, which was correct. But in the debugger, when the OnExecutionUpdate method was called, Time[0] was showing 05:46AM.

Comment