First of all the stop loss order is not moved to break even after 10 ticks advancement(I changed it from 50 as in sample).
if (Close[0] >= Position.AvgPrice + 10 * TickSize)
{
SetStopLoss(CalculationMode.Price, Position.AvgPrice);
}
Secondary the sample page mentioning:
Other methods and properties of interest include:
Is nothing in the code that refer to SetTrailstop
I'm working with 5 range bars on CL Feb 15 contract.
Please advise, the file attached.

Comment