大智慧寻底KD副图指标
源码
DN:=10;涨2:=2;N3:=-30;N4:=1;
REFLINE: -10, 10, 50, 80, 100;
Var1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
Var2:=(CLOSE-REF(OPEN, 29))/REF(OPEN, 29)*100;
Var3:=VOL/MA(VOL, 5);
Var4:=VOL/CAPITAL*100;
Var5:=1;
Var6:=(CLOSE-LLV(LOW, 45))/(HHV(HIGH, 45)-LLV(LOW, 45))*100*Var5;
K:SMA(Var6, 6, 1)*Var5;
D:SMA(K, 3, 1)*Var5;
J:3*K-2*D*Var5;
(D>1*REF(D, 1) AND D<DN AND Var1>涨2)*30*Var5;
REVERSE(CROSS(J, 0) AND Var1>2 AND Var2<N3)*10*Var5,LINETHICK2;
DRAWTEXT(CROSS(J, 0) AND Var1>2 AND Var2<N3, 0, 'O
DRAWTEXT(CROSS(100, J) AND D>80, J, '')*Var5, COLOR00BBFF;
DRAWTEXT(D>1*REF(D, 1) AND Var2<N3 AND D<DN AND Var1<>涨2, 30, '')*Var5, COLORWHITE;
DRAWTEXT(CROSS(100, J), J, '')*Var5, COLORWHITE;
IF(J>80, 100, J), COLORRED;
IF(D<18, (-10), D), COLORFFFF66;