Strategy 'xxxxxxxx/-1': A Sell stop order placed at '7/29/2008 11:40:00 AM' has been ignored since the stop price is less than or equal to the close price of the current bar.
I understand that sell stop price should be less or equal to last price. However, in a very volatile market, it is hard to set the stop price right since the price moves very fast. And it seems to be a behavior change from Ninjatrader 7.
The same startegy works in Ninjatrader 7. Because I have implemented the OnOrderUpdate interface. If the stop order could not fill(rejected), I will catch the event and then submit a market order. The code is like:
protected override void OnOrderUpdate(Order order, double limitPrice, double stopPrice, int quantity, int filled, double averageFillPrice, OrderState orderState, DateTime time, ErrorCode error, string comment)
{
// Rejection handling
if (order.OrderState == OrderState.Rejected)
{ /// change to market order and submit it
}
}
Can we have the same logic in Ninjatrader 8 so that we can catch the event and turn to market order?
Thanks,
Comment