[通达信] KD罗威高低档 钝化信号 通达信副图指标 源码 贴图

[复制链接]
查看74 | 回复0 | 3 天前 | 显示全部楼层 |阅读模式
KD罗威高低档 钝化信号 通达信副图指标 源码 贴图
根据台湾高手罗威对KD公式的见解改编
wp1.jpg

N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
{KD乘离:(SMA(RSV,M1,1)-SMA(SMA(RSV,M1,1),M2,1))*2,COLORSTICK;}
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:=3*K-2*D;{WWW.GSZB.TOP}
IF(K>REF(K,1),K,DRAWNULL),LINETHICK3,COLORRED;
IF(D>REF(D,1),D,DRAWNULL),LINETHICK2,COLORLIBLUE;
STICKLINE(1,20,20,100,0),COLORLIGRAY;
STICKLINE(1,50,50,100,0),COLORCYAN;
STICKLINE(1,80,80,100,0),COLORLIGRAY;
IF(COUNT(K>80,3)=3,90,DRAWNULL),POINTDOT,COLORBLUE,LINETHICK7;
IF(COUNT(K>80,1)=1,90,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK4;
IF(COUNT(K<20,3)=3,10,DRAWNULL),POINTDOT,COLORBLUE,LINETHICK8;
IF(COUNT(K<20,1)=1,10,DRAWNULL),POINTDOT,COLORLIMAGENTA,LINETHICK4;

 

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

66

主题

15

回帖

1121

积分

职业

积分
1121