Just to confirm, this is in historical data correct?
A Buy Stop Market order must be placed above the current ask.
A Sell Stop Market order must be placed below the current bid.
What I am seeing is this, the FIRST_ ORDER order is placed at 565.4 on the 4:15 bar.
The order doesn't fill at 565.4 though it fills at 577.
Then the stop is attempted to be placed at 573.7 (calculated from the fill of the entry), however, the bid price is still 558.4 (from the previous minute bar's close price) and this causes the stop to be rejected.
I will have to look a little further into what prices are being used for these order fills and why this order was rejected.
However, the prints and information you have given are extremely helpful in determining where the issue is.
I will need to do further testing and I will get back to you.
Comment