In this particular case, the stop order causes an error, as reported in the Control Center Log tab, "the stop price is less than or equal to the close price of the current bar".
Such a situation is a "normal" possibility..... and, I guess I expected the stop order to simply fill immediately at the best price possible... i.e. taking the strategy out of its short position....
This is occurring in a simulation account and while the strategy is operating on back bars (i.e. not real-time), has exitonclose = false, and uses program calls that allow the orders to endure bar to bar.
My questions are:
1)Why am I wrong in expecting an immediate fill under these circumstances?
2)Will this be what happens in a live trading account operating in real-time and is it possibly broker dependent?
3)Will the same thing happen on a limit order? And
4)Given that it is a normal expected occurrence that the market open stop could immediately be outside the market price, what is the best way to program around a rejected order?

Comment