N:=13;
M1:=5;
M2:=7;
UPPER:(1+M1/100)*EMA(CLOSE,N) CIRCLEDOT LINETHICK2 ;
LOWER:(1-M2/100)*MA(CLOSE,N) CIRCLEDOT LINETHICK2;
ene:(UPPER+LOWER)/2;
IF(C>ENE,ENE,DRAWNULL) COLORRED LINETHICK3;
DRAWICON( REF(COUNT(C>UPPER,7)>1 AND C/REF(C,2)>1.10,1) AND C