RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K1:=MA(RSV,15);
D1:=MA(K1,10);
KK:=(K1);
DD:=(D1);
TFXXS:=KK+DD,LINETHICK0,COLORYELLOW;{//变异kd风险系数}
TGLXS:=(TFXXS-REF(TFXXS,1))*10,LINETHICK1,COLORGREEN;{//变异KD乖离系数}
TYCFX:=TFXXS+TGLXS,LINETHICK0,COLORGREEN;{//变异KD预测风险}
{//——————【数值显示】}
风险系数:=TFXXS,LINETHICK0,COLORYELLOW;
乖离系数:=TGLXS,LINETHICK0,COLORGREEN;
预测风险:=TYCFX,LINETHICK0,COLORCYAN;
{风险系数}
IF(TFXXS<150 AND TFXXS>50,TFXXS,DRAWNULL),LINETHICK2,COLORRED;
IF(TFXXS>50 AND TFXXS<150 AND TFXXS
IF(TFXXS<=50,TFXXS,DRAWNULL),LINETHICK2,COLORGREEN;
IF(TFXXS>=150,TFXXS,DRAWNULL),LINETHICK2,COLORYELLOW;
{预测风险}
IF(C>0,TYCFX,DRAWNULL),COLORCYAN;