AA:=MA(CLOSE,5);AB:=MA(CLOSE,10);MA1:=MA(VOL,5);MB:=MA(VOL,10);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=DEA;F1:=DIFF;
K1:="KDJ.K";J1:="KDJ.J";金叉1:=CROSS(AA,AB);金叉2:=CROSS(MA1,MB);
金叉3:=CROSS(F1,A1);金叉4:=CROSS(J1,K1);选1:=金叉1 AND 金叉2 AND 金叉3 AND 金叉4;
选2:=金叉1 AND 金叉2 AND 金叉3;选3:=金叉2 AND 金叉3 AND 金叉4;MACD:=2*(DIFF-DEA);
选4:=金叉1 AND 金叉2 AND 金叉4;选5:=金叉1 AND 金叉3 AND 金叉4;
选6:=REF(macd,1)<REF(MACD,2) AND MACD>=0 AND MACD>REF(MACD,1);
金叉王:选6 AND (选1 OR 选2 OR 选3 OR 选4 OR 选5);
九毛八公式解读
AA赋值:收盘价的5日简单移动平均 AB赋值:收盘价的10日简单移动平均 MA1赋值:成交量(手)的5日简单移动平均 MB赋值:成交量(手)的10日简单移动平均 DIFF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均 DEA赋值:DIFF的9日指数移动平均 A1赋值:DEA F1赋值:DIFF K1赋值:"KDJ的K" J1赋值:"KDJ的J" 金叉1赋值:AA上穿AB 金叉2赋值:MA1上穿MB 金叉3赋值:F1上穿A1 金叉4赋值:J1上穿K1 选1赋值:金叉1 AND 金叉2 AND 金叉3 AND 金叉4 选2赋值:金叉1 AND 金叉2 AND 金叉3 选3赋值:金叉2 AND 金叉3 AND 金叉4 MACD赋值:2*(DIFF-DEA) 选4赋值:金叉1 AND 金叉2 AND 金叉4 选5赋值:金叉1 AND 金叉3 AND 金叉4 选6赋值:1日前的MACD<2日前的MACD AND MACD>=0 AND MACD>1日前的MACD 输出金叉王:选6 AND (选1 OR 选2 OR 选3 OR 选4 OR 选5)