DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
macd1:=CROSS(DIFF,DEA) AND COUNT(MACD>0,1)=1;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KDJ1:=CROSS(K,D) AND CROSS(J,D);
均线:=CROSS(MA(C,5),MA(C,10));
量线:=CROSS(MA(V,5),MA(V,10));
SCC:=MACD1 AND KDJ1 AND 均线 AND 量线;
SC1:=MACD1 AND KDJ1;
SC2:=均线 AND 量线;
SC3:=均线 AND MACD1;
SC4:=量线 AND KDJ1;
SC5:=均线 AND KDJ1;
SC6:=MACD1 AND 量线;
SCC OR SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6;
九毛八公式解读
DIFF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均 DEA赋值:DIFF的9日指数移动平均 MACD赋值:2*(DIFF-DEA) MACD1赋值:DIFF上穿DEA AND 统计1日中满足MACD>0的天数=1 RSV赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100 K赋值:RSV的3日[1日权重]移动平均 D赋值:K的3日[1日权重]移动平均 J赋值:3*K-2*D KDJ1赋值:K上穿D AND J上穿D 均线赋值:收盘价的5日简单移动平均上穿收盘价的10日简单移动平均 量线赋值:成交量(手)的5日简单移动平均上穿成交量(手)的10日简单移动平均 SCC赋值:MACD1 AND KDJ1 AND 均线 AND 量线 SC1赋值:MACD1 AND KDJ1 SC2赋值:均线 AND 量线 SC3赋值:均线 AND MACD1 SC4赋值:量线 AND KDJ1 SC5赋值:均线 AND KDJ1 SC6赋值:MACD1 AND 量线 SCC OR SC1 OR SC2 OR SC3 OR SC4 OR SC5 OR SC6