I have a simple strategy .
In this code I put the "SetStopLoss" method inside OnBarUpdate(), just after sending an EnterLong order.
When the profit is >= 12 ticks above the entry price, I send an ExitLongStopMarket order , but It doesn´t run ,
because I see that the SetStopLoss() method to exit this long position always cancel the ExitLongStopMarket order.
How can I do to use this ExitLongStopMarket order together with the protection of the SetStopLoss() method ?
Comment