my strat goes long ....the position is filled long however before the stop can be placed, my strat also places a short...this results in the long position stop being rejected and the short position is used in its place closing out the long position.
NT now thinks that it is flat, however the short position stop is in place and my code trails it down behind the market...from there of course, when the stop is hit, NT then thinks it is long when it should be flat...and so on
question: I use AtmStrategyCreate and not EnterLong/EnterShort. My code deals with rejected orders in the OnBarUpdate method. It does not deal with rejected stops. How can I detect the rejected stop? OnOrderUpdate method seems to deal with EnterLong/EnterShort code only.

Comment