if(Position.MarketPosition == MarketPosition.Long
&& Close[0] - Position.AvgPrice >= 5*TickSize
&& Close[0] - Position.AvgPrice < 10*TickSize)
{
SetStopLoss("Long PB", CalculationMode.Ticks, 3, false);
}
and would like it to update at the moment it occurs, and not wait until the bar closes. I can do this of course by setting CalculateOnBarClose = false, but I need the rest of my strategy to run on CalculateOnBarClose = true.
Is there a way to apply CalculateOnBarClose = false just to this portion of my code?
Thanks,
Safetrading

Comment