I know how to set my SL at BE when using Calculate.OnEachTick but I can't find a way to do it when Calculate.OnBarClose.
I set my trigger conditions in OnBarUpdate, it triggers a limit order(short or long), when the order is triggered I initialy set my SL and TP in OnOrderUpdate but when I want to set any condition to move my SL to BE in OnBarUpdate nothing works.
I know the code is getting in my {} because I debugged it using prints but SetStopLoss(CalculationMode.Price, Position.AveragePrice) does not move the existing SL.
Would much appreciate any help

Regards,
Mikael

.
Comment