同花顺安全KDJ副图指标
源码
N:=9;M1:=3;M2:=3;
RSV:=(C-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100;
K:=SMA(RSV,m1,1);
D:=SMA(K,m2,1);
J:=3*K-2*D;
10,dotline,colorgray;
50,dotline,colorgray;
90,dotline,colorgray;
80,dotline,colorgreen;
-1,dotline,colorblue;
jhit80:=CROSS(90,j);
DRAWTEXT(jhit80,100,'卖出'),coloryellow;
j1:EMA(k,1),linethick0,colorwhite;
j2:EMA(k,2),linethick0,coloryellow;
FILLRGN(j1,j2,j1>j2,RGB(255,50,00),j1<j2,RGB(0,200,50));
FILLRGN(j1,j2,j1<j2 AND j1>80,RGB(0,100,200));
pm:=(C*2+O+H+L)/5;
MA1:=MA(pm,3);
ma2:=MA(pm,15);
FILLRGN(j1,j2,j1>j2 AND ma1>REF(ma1,1),RGB(255,150,00));
FILLRGN(j1,j2,j1>j2 AND ma1>REF(ma1,1) AND ma2>REF(ma2,1) AND C>ma1,RGB(255,250,00));
DRAWTEXT(CROSS(80,j2),90,'清仓'),colorred,linethick2;
mk10:=MA(k,10);
PARTLINE(mk10,mk10>REF(mk10,1),RGB(200,50,50),
mk10<REF(mk10,1),RGB(0,150,200),mk10=REF(mk10,1),RGB(0,0,255)),linethick2;