macd kdj 同时金叉公式
kdj金叉 当日 macd亦金叉,出现双金叉时,请在kdj金叉日做个记号(符号24)
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
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;
XG:=CROSS("MACD.DIF","MACD.DEA") AND CROSS("KDJ.K","KDJ.D") ;
DRAWICON(XG,K,24);
82444815.jpg
|