通达信获利KDJ公式 老张实战小公式(3)
源码:
{获利KDJ}
DRAWBAND(50,RGB(50,50,100),0,RGB(0,0,0));
NOTEXT100:100,COLORGRAY;
NOTEXT90:90,COLORGRAY,DOTLINE;
NOTEXT80:80,COLORGREEN,DOTLINE;
NOTEXT70:=70,COLORGRAY,DOTLINE;
NOTEXT60:=60,COLORGRAY,DOTLINE;
NOTEXT50:50,COLORGRAY;
NOTEXT40:=40,COLORGRAY,DOTLINE;
NOTEXT30:=30,COLORGRAY,DOTLINE;
NOTEXT20:20,COLORGREEN,DOTLINE;
NOTEXT10:=10,COLORGRAY,DOTLINE;
NOTEXT0:0,COLORGRAY;
NOTEXT120:120,COLORBLACK;
NOTEXTD20:-20,COLORBLACK;
CH:=WINNER(H)*100;
CO:=WINNER(O)*100;
CL:=WINNER(L)*100;
CC:=WINNER(C)*100,NODRAW;
DRAWKLINE(CH,CO,CL,CC);
STICKLINE(CC=100,CC,CO,0.5,0),COLORYELLOW;
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2;
K:SMA(RSV,M1,1),COLORWHITE,LINETHICK1;
D:SMA(K,M2,1),COLORCYAN,LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
NOTEXTA:IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK1;
NOTEXTB:IF(J>100,J,DRAWNULL),COLORGREEN,LINETHICK1;
TJ:=CURRBARSCOUNT=25;
DRAWTEXT(TJ,25,'→弱势区、不介入'),COLORFFFFFF;