通达信KD过滤指标公式
2020/6/15 18:37:47
KD是大家最常用的指标,然而其也常常产生无效的交叉信号,这和波动的幅度有着密切的关系,从此思路考虑设计了该指标,抛砖引玉了!
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),LINETHICK2;
D:SMA(K,M2,1),LINETHICK2,COLORRED;
BDL:=MA(ABS(K-REF(K,1)),10);
DD:=LLV(K,N)+BDL,DOTLINE;
GD:=HHV(K,N)-BDL,DOTLINE;
SJ:=BARSLAST(CROSS(K,GD));
SJ1:=BARSLAST(CROSS(DD,K));
GLX:IF(SJ<SJ1,DD,GD),NODRAW;
IF(SJ<SJ1,DD,DRAWNULL),COLORRED,CIRCLEDOT;
IF(SJ>SJ1,GD,DRAWNULL),COLORGREEN,CIRCLEDOT;
看 股吧公式 www. kanguba.com
其它股票公式列表