DRAWGBK(O>C,RGB(40,40,40),RGB(0,0,40),0,'01',0); {背景不要可删除}
{传统KDJ}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORWHITE,LINETHICK1;
D:SMA(K,3,1),COLORYELLOW,LINETHICK1;
J:3*K-2*D,COLORMAGENTA,LINETHICK2;
IF(J>=90,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF(J<=0,J,DRAWNULL),COLORRED,LINETHICK2;
正差:J>REF(J,1);
STICKLINE( 正差,-18,-15,3,0 ),COLORRED;
负差:J
STICKLINE( 负差,-18,-15,3,0 ),COLORGREEN; DRAWTEXT(ISLASTBAR,J,' ← J'),COLORMAGENTA; 清仓:100,POINTDOT,COLORGREEN,LINETHICK2; 顶部:90,COLORGREEN,LINETHICK1; 底部:0,COLORRED,LINETHICK2; STICKLINE(J<0,J,0,1,0),COLORRED,LINETHICK1; STICKLINE(J>100,J,100,1,0),COLORGREEN,LINETHICK1; 抄底:=REF(J,1)<0 AND J>0; DRAWICON(抄底,90,38); 逃顶:=REF(J,1)>100 AND J<100; DRAWICON(逃顶,0,39);