M5:=MA(C,5);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
QFA:=MacD>REF(MACD,1)AND MACD<0;
QFB:=MACD
QFC:=BArslASTCOUNT(MACD
TJ:=DIFF>0 AND DEA>0 AND REF(QFB,1) AND QFA AND REF(QFC,1)>4 AND C>M5 ;
DRAWICON(TJ,L-0.38,1);
STICKLINE(TJ,C,O,1.8,0),coloryellow;
STICKLINE(TJ,L,H,0,0),coloryellow;
STICKLINE(TJ,C,O,0.5,0),colorred;