飞狐KD追涨源码主图
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=(SMA(RSV,3,1));
D:=(SMA(K,3,1));
KK:=INTPART(SMA(RSV,3,1));
DD:=INTPART(SMA(K,3,1));
N:KK+DD,COLORff00ff,LINETHICK2;
SZ:=(C/REF(C,1)-1)*100>=2;
QSXS:=N>REF(N,1) AND BETWEEN(N,100,150);
ZZ:=QSXS AND SZ;
追涨:IF(FILTER(ZZ,3),120,50),COLORYELLOW;
GWGD2:=N<REF(N,1) AND REF(N,1)>=160 AND REF(N,1)>=REF(N,2);
风险:IF(GWGD2,95,160),COLOR00ff00;
{以下设置副图显示方式}
100,COLORWHITE,POINTDOT;
STICKLINE(C,100,100,4,0),COLORWHITE;