working several days on a concept of trailing my StopLoss but with unexpected results in real world.
At the moment i just shifting my SL with methode (SetStopLoss). --> SetStopLoss(sSignalname, CalculationMode.Price, dSLPrice, false);
(Think, that this Methode handles StopLoss modification for me as an update...)
After triggering SL, sometimes Strategy opens a Counterposition!?
I'm not sure that this behavoir relies on identical name for correct adressing?
(I try to reset all signalnames to individuals...) --> sSignalname = Instrument.MasterInstrument.Name + "_" + sTrade_PositionName;
But may it happens because i don't cancel previous SL-Order before set the new one?
https://ninjatrader.com/support/help...atusupdate.htm
Is it necessary to use first Methode (CancelOrder(***)) when i use Methode (SetStopLoss(***)) for an update?
If so, then i don't understand concept of naming (fromEntrySignal) for Methode (SetStopLoss)...
If somebody have a hint for me, that would be very nice... :-)
With best regards,
Peter
Comment