If I'm in a long trade and have a working stop order, which I set at the entry :
stopOrder = ExitLongStop (.....)
Now if I have enother condition if hit I want to exit. In OnBarUpdate I check this condition and if true I issue: ExitLong(..), what it does is changing the state of the stop order to "Canceled" and not exiting the position.
What I do wrong?
Baruch

Comment