DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACDD:=(DIFF-DEA)*2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,9,3);
D:=SMA(K,9,3);
J:=3*K-2*D;
A1:=CROSS(DIFF,DEA) AND CROSS(K,D) AND CROSS(J,D) AND DIFF<0;
A2:FILTER(A1,20);
九毛八公式解读
DIFF赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均 DEA赋值:DIFF的9日指数移动平均 MACDD赋值:(DIFF-DEA)*2 RSV赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值) K赋值:RSV的9日[3日权重]移动平均 D赋值:K的9日[3日权重]移动平均 J赋值:3*K-2*D A1赋值:DIFF上穿DEA AND K上穿D AND J上穿D AND DIFF<0 输出A2:A1的20日过滤