一个双红柱的选股公式
M10:=MA(C,10);
M20:=MA(C,20);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2000* (2*(DIFF-DEA))/EMA(C,30);
A:=MACD>=0 AND MACD>REF(MACD,1);
LA:=BARSLASTCOUNT(A);
T:=BARSLAST(CROSS(M10,M20));
XG:COUNT(LA=2,T+1)=1 AND LA=2 and macd>=50;
111322677.gif
|