编写要求:
MACD DIF DEA 两条线都在0轴上方运行 然后KDJ 金叉的选股公式。
公式在线网解答:
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIFF := EMA(C,12) - EMA(C,26);
DEA := EMA(DIFF,9);
MACD := 2*(DIFF-DEA);
diff>0 and dea>0 and cross(j,k);