1.kmacd��ʽԴ��
2.求通达信macd,式源算法kdj金叉共振
kmacd��ʽԴ��
DIF:=EMA(CLOSE,式源算法educ源码)-EMA(CLOSE,),COLORYELLOW;
DEA:=EMA(DIF,9)COLORMAGENTA;
MACD:=(DIF-DEA)*2,COLORLIGRAY;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
选:EXIST(CROSS(DIF,DEA),3) AND EXIST(CROSS(J,K),3) AND CROSS(MA(C,5),MA(C,));
求通达信macd,kdj金叉共振
DIF:=EMA(CLOSE,式源算法红鸟325源码6)-EMA(CLOSE,);DEA:=EMA(DIF,5);
MACD:=(DIF-DEA)*2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
T1:=CROSS(DIF,DEA) AND DIF<0 AND DEA<0;
T2:=CROSS(J,K) AND K<;
XG:=T1 AND T2;
DRAWTEXT(XG=1,L,'共振')COLORRED;