同花顺直观KD副图指标
源码
DRAWGBK(V>1,STRIP(RGB(60,100,255),RGB(130,120,255),1));
RSV:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
K:SMA(RSV,2,1),Color3EFFFF,linethick2;
D:SMA(K,3,1),ColorFF51FF,linethick2;
J:=3*K-2*D;
STICKLINE(J>REF(J,1),HHV(J,2),LLV(J,2),0.3,0),Color9933FF;
STICKLINE(J>REF(J,1),J,REF(J,1),8,0),COLOR000099;
STICKLINE(J>REF(J,1),J,REF(J,1),4,0),COLOR0000CC;
STICKLINE(J>REF(J,1),J,REF(J,1),2.5,0),COLOR0000FF;
STICKLINE(J>REF(J,1),J,REF(J,1),1,0),COLOR0000FF;
STICKLINE(J<REF(J,1),HHV(J,2),LLV(J,2),0.3,0),COLORFF9900;
STICKLINE(J<REF(J,1),J,REF(J,1),8,0),COLORFF8800;
STICKLINE(J<REF(J,1),J,REF(J,1),4,0),COLORFF6600;
STICKLINE(J<REF(J,1),J,REF(J,1),2.5,0),COLORFFCC00;
STICKLINE(J<REF(J,1),J,REF(J,1),0.8,0),COLOR00ff00;
AC:=AMOUNT/(VOL);
YY:=MA(AC,9);
LLL:=(C-YY)/YY*100;
MIDC :=
UPPERC:= MIDC + 2*STD(C,14);
LOWERC:= MIDC - 2*STD(C,14);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
BBC:=FORCAST(BBA,3);
LIFENGCYC:=(REF(LLL,1)<-10 AND REF(BBA,1)<0 AND LLL>REF(LLL,1));
DRAWTEXT(LIFENGCYC>0,LOW*0.99,'☆'),ColorFFFFFF;