KDJ副图指标:
N(2 90 9); M1(2 30 3); M2(2 30 3);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
IF(K>90,K,DRAWNULL),COLORRED,LINETHICK2;
IF(K<20,K,DRAWNULL),COLORGREEN,LINETHICK2;
IF(J>100,J,DRAWNULL),COLORBLUE,LINETHICK2;
IF(J<0,J,DRAWNULL),COLORWHITE,LINETHICK2;
J值底部区域变为白色;顶部区域变蓝色;K值底部区域变绿色,顶部区域变红色。
J值主图源码:用法可加在因何主图源码里;粉色K线为触底信号,白色K线为顶部区域。
RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,5,1);
J:=3*K-2*D;
X:=REF(J,1)<10 AND H>REF(H,1) AND C>REF(C,1) AND C>REF(O,1) AND L>REF(L,1);
STICKLINE(X,L ,L,20,0),COLOR008888;
STICKLINE(X,L ,H,0,0),COLORFF00FF;
STICKLINE(X,C ,O,2,0),COLORFF00FF;
RSV0:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K0:=SMA(RSV0,5,1);
D0:=SMA(K0,5,1);
J0:=3*K0-2*D0;
X0:=REF(J0,1)>90 AND H>REF(H,1) AND C>REF(C,1) AND C>REF(O,1) AND L>REF(L,1);
STICKLINE(X0,L ,L,20,0),COLOR008888;
STICKLINE(X0,L ,H,0,0),COLORWHITE;
STICKLINE(X0,C ,O,1,0),COLORWHITE;
2010811016381004.png
|