Disliked{quote} i screw up with some another code from mql5.com, maybe master "CJA" or master "BlueRain" will to help fixing second line (break buy/break sell) base your calculation {file} {image}Ignored
it should be just i, not i - 1.
double HighCandleOne=iHigh(NULL,PERIOD_M30,i+1);
double LowCandleOne=iLow(NULL,PERIOD_M30,i+1);
double Range=HighCandleOne-LowCandleOne;
double HighCandleTwo=iHigh(NULL,PERIOD_M30,i);
double LowCandleTwo=iLow(NULL,PERIOD_M30,i);
datetime CandleTime=bartime+(24*PERIOD_M30*12);
double breakbuy=HighCandleTwo+(Range);
double breaksell=LowCandleTwo-(Range);