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,1);
STICKLINE(TJ,C,O,1.8,0),COLORYELLOW;
STICKLINE(TJ,L,H,0,0),COLORYELLOW;
STICKLINE(TJ,C,O,0.5,0),COLORRED;
{
选股公式:
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));
DIFF>0 AND DEA>0 AND REF(QFB,1) AND QFA AND REF(QFC,1)>4 AND C>M5 ;
}