X:=LLV(LOW,21);
Y:=HHV(HIGH,21);
K:EMA((CLOSE-X)/(Y-X)*100,6),COLORRED;
D:EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;
DRAWICON(LONGCROSS(K,D,1),K,1);
DRAWICON(LONGCROSS(D,K,1),D,2);
=========================================================================================
数绿柱4-5根选股 (顺送选股;N1,N2 由你定)
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
均线向上:=EMA(C,N1)>=REF(EMA(C,N1),1) AND EMA(C,N2)>=REF(EMA(C,N2),1);
绿柱:=REF(MACD,1)<=0 AND MACD<=0 AND REF(MACD,4) >=0;
选股:均线向上 AND 绿柱;