DislikedBut I am sorry, you should change code a bit more, not only PERIOD_M15:
//Calculate the high and low
bhighest = iHigh(symbol, PERIOD_M15, iHighest(symbol, PERIOD_M15, MODE_HIGH, StartShift - EndShift, EndShift + 1));
blowest = iLow(symbol, PERIOD_M15, iLowest(symbol, PERIOD_M15, MODE_LOW, StartShift - EndShift, EndShift + 1));Ignored
Cheers