DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA55:=MA(CLOSE,13);
QS:=(CLOSE-MA55)/MA55*100;
N:=20;
N1:=55;
N2:=N+N1;
AA:((REF(HHV(QS,N1),N))/100+1)*MA55,COLORRED;
ZZ:((LLV(QS,N2))/100+1)*MA55,COLORYELLOW;
DRAWICON(C=ZZ,L*1,1);
DRAWICON(C=AA,H*1.01,2);
IF(C=ZZ,AA*1,ZZ);