Here is my dilemma: On principle and out of fear that my pc will explode seconds after placing a trade, I always write setstoploss into my strategies. But, when a sliding stop (like a parabolic) enters into the strategy after bar 1, I now have 2 stops in place at once. Not so much of problem, except that OEC adds to my margin requirement as I understand it when I have multiple stops.
So, my goal is to enter a setstoploss with the entry of the trade and then turn it off once a new strategy protective stop is placed.
I have tried a simple code:
if barssinceentry = 0 then begin
SetStopLoss( Amount ) ;
hoping that the setstoploss wouldn't reenter after the opening bar. Seems it holds even to bar 2.