for moving a stop of contract b with target of contract a I have in onExecution
if(execution.Name=="Profit target" && execution.Order.FromEntrySignal=="La")
SetStopLoss("Lb", CalculationMode.Price,Position.AvgPrice-2*TickSize, false);
but immediately with entry the stop is set to Position.AvgPrice-2*TickSize.
(For info I have in Initialize and onbarupdate
SetStopLoss("La", CalculationMode.Ticks, 8, false);
SetStopLoss("Lb", CalculationMode.Ticks, 8, false);
Why does NT with entry not the "normal" SetStopLoss of 8 Ticks but immediately the new position that should be done only with target a?
Thank you
Tony
Comment