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<REF(MACD,1)AND MACD<0;
QFC:=BARSLASTCOUNT(MACD<REF(MACD,1));
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;
202108202157.jpg
|