In the Initialize() method I have SetTrailStop(300);
Say I have long entry, the price goes in my favor $400 (profit) then reverses. I would expect to be stopped out with a $100 profit. Instead the stop is not executed and I get stopped out with a $300 loss. It seems to be behaving as a SetStopLoss order not a trailing stop.
What am I doing wrong? Do I need to update the SetTrailStop on each OnBarUpdate?
Thanks

Comment