自用周线KDJ(源码 副图 通达信 贴图)
RSV2:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K周:=SMA(RSV2,15,1),COLORWHITE;
D周:=SMA(K周,3,1),COLORYELLOW;
J周:=3*K周-2*D周,COLORRED;
DRAWBAND(J周,RGB(200,0,0),D周,RGB(0,150,150));
DRAWICON(CROSS(K周, D周), D周-5,13);
DRAWICON(CROSS(D周, K周), K周+5,14);
A1:= KD.K (9,3,3);
A2:= KD.D (9,3,3);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(K =D,K,D,2,1)COLORFF00FF;
STICKLINE(K D,K,D,2,1)COLOR00FF00;
DRAWICON(CROSS(K,D),D-5,1);
DRAWICON(CROSS(D,K),K+5,2);
STICKLINE(K =80,92,97,2,1),COLOR00FFFF;
STICKLINE(K 20,3,8,2,1),COLOR00FFFF;
STICKLINE(C 0,-8,0,4,0),COLOR00FF00;
STICKLINE(K =D,-8,0,4,0),COLORFF00FF;