what I do not understand from the replies in the forum is how to modify settrailstop in a script-strategy so that the trailstop starts trailing only eg after a certain number of ticks in profit. Is this to do with a bool like
if (Position.MarketPosition == MarketPosition.Flat)
{trail = false;
SetStopLoss("La", CalculationMode.Ticks, 5, false);
SetTrailStop("Lb", CalculationMode.Ticks, 5, false);
}
else if (Position.MarketPosition == MarketPosition.Long) && Close[0] > Position.AvgPrice + (10*TickSize))
trail = true;
and then ?? How can I do that trailstop is trailing once 10 Ticks in profit.
Thanks
Tony
Comment