I am using the TradeStation dll integration and I wanted to get an advise on one topic.
I am getting the following scenario sometimes:
I have a position in the market and a bracket order around it.
At certain level I would like to start and trail my stop. Sometimes the trail is very tight.
I am checking before I am sending the new stop value (with NTChange function) that I am using an appropriate stop value (for longs the stop will be below close) , however sometimes the market can move very fast and by the time the order will get to the exchange/broker the stop price is illegal and i am getting an order rejection.
So far fine, now the question is how I can manage this rejection...
I am getting an error box on NT with sound alert for this event, however, would it be possible to evaluate if my order has been changed on the TradeStation code?
What will the order status return? I do have the old original stop price in the market; hence the status would probably not be rejected.
Any other idea to let the TradeStation code know that the order have not been changed?
Thanks,
Nir
Comment