In the Initialize section I placed my StopLoss for a strategy. In the OnBarUpdate section I programmed ExitLong and the ExitShort commands. Based on certain conditions the ExitLong and ExitShort will be executed.
There are moments that the StopLoss is executed and the ExitLong/ExitShort are executed on the same moment (minute.second).
Instead of a flat situation an new order has been executed. Do you have a example to solve this problem.

Comment