N:=9; ccsss:=3; sssww:=3;{高手指标公式网www.gs6699.com}
指标合集:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(指标合集,ccsss,1);
D:SMA(K,sssww,1);
J:3*K-2*D;
通达信:=MA("KDJ.K#WEEK"(N,ccsss,sssww) ,5),LINETHICK1,COLORRED;
vdssd1:=MA("KDJ.D#WEEK"(N,ccsss,sssww) ,5),LINETHICK1,COLOR33FF99;
vdssd2:=MA("KDJ.J#WEEK"(N,ccsss,sssww) ,5),LINETHICK1,COLORMAGENTA;
vdssd3:MA("KDJ.K#MONTH"(N,ccsss,sssww),5),LINETHICK1,COLORFF00FF;
vdssd4:MA("KDJ.D#MONTH"(N,ccsss,sssww),5),LINETHICK1,COLOR00FF00;
vdssd5:=MA("KDJ.J#MONTH"(N,ccsss,sssww),5),LINETHICK1,COLORFFFFFF;
DRAWBAND(vdssd3,RGB(100,0,100),vdssd4,RGB(120,120,120));
STICKLINE(通达信>=vdssd1,通达信,vdssd1,1,0),COLOR6666FF;
STICKLINE(通达信<vdssd1,通达信,vdssd1,1,1),COLOR00FFFF;
STICKLINE(C>0,115,120,2,1),COLOR00FFFF;
STICKLINE(C>0,-15,-20,2,1),COLORFFFF88;
STICKLINE(通达信>=vdssd1,110,120,2,0),COLOR6666FF;
STICKLINE(vdssd3>=vdssd4,-10,-20,2,0),COLOR660099;
STICKLINE(C>0,48,52,2,1),COLORFFFFFF;
STICKLINE(通达信>=vdssd1 AND vdssd3>=vdssd4,42,58,2,1),COLORRED;
STICKLINE(vdssd3<vdssd4 AND 通达信>=vdssd1,44,56,2,1),COLORFF00FF;
STICKLINE(vdssd3>=vdssd4 AND 通达信<vdssd1,46,54,2,1),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=88,10,90,99,0),COLOR222255;
STICKLINE(CURRBARSCOUNT=88,100,90,99,0),COLORYELLOW;