通达信自用优化KDJ源码、副图、无末来
源码:
VAR2:=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*10;
K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
注意1:IF((VAR4<10),5,4);
注意2:IF(J<0,2,0);BDDD:=LLV(J,2)=LLV(J,8);
买1:CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20;
买2:LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));