M:=60;
D:=60;
K:=9;
ZFF:=25;
DFF:=30;
GL:=IF(ma(C,10)>MA(C,M),(MA(C,10)-MA(C,M))/MA(C,M)*100,(MA(C,10)-MA(C,M))/MA(C,10)*100);
GL1:=MA(GL,M),NODRAW;
GL2:=HHV(GL1,K)*0.99;
GL3:=LLV(GL1,D)*1.2;
DF:=(HHV(C,D)-C)/C*100;
ZF:=(C-LLV(C,K))/LLV(C,K)*100;
SY:=REF(C,BArslAst(C>O));
SYY:=REF(C,BARSLAST(C<O));
QS:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*98,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*98,5,1),3,1);
TYP:=(CLOSE+HIGH+LOW)/3;
cci:=(TYP-MA(TYP,18))/(0.015*AVEDEV(TYP,18));
GLGTKK:=IF(CCI>200 OR QS>90,1,0);
GLGTDD:=IF(CCI<-200 OR QS<10,1,0);
DRAWICON(GL<GL3 AND DF>DFF AND C<O AND C<MA(C,30) AND C<REF(SYY,1) AND GLGTDD,LOW,5);