通达信针锋相对幅图公式 KD与WR的结合 源码提供
-
相关简介:一套不错的战法
-
文章来源:股海网作者:117037发布时间:2021-12-08浏览次数:
感谢提供公式源码,此贴加积分+10
争锋相对:顾名思义其实就是KD与WR的结合
其指标辅助参考意义很大、在KD金叉的同时随着WR的下穿80,形成日线级别的趋势。
结合MACD,指标不需要太多,辅助参考,短线配合量价方能拿到一杀。
1、自建公式KD与WR
2、两者皆选择副图类型
3、复制粘贴、测试、确定。
KD源码:
参数: 最小: 最大: 缺省:
N 2.00 100.00 9.00
M 2.00 100.00 3.00
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M),COLORGREEN;
D:MA(K,M),COLORGREEN;
AA:IF(K<20,K,DRAWNULL),COLORMAGENTA,LINETHICK2;
BB:IF(K>80,K,DRAWNULL),LINETHICK2;
升1:IF(K>REF(K,1),K,DRAWNULL)LINETHICK1,COLORRED;
升2:IF(D>REF(D,1),D,DRAWNULL)LINETHICK1,COLORRED;
坐标线:80,DOTLINE,COLORWHITE;20,DOTLINE,COLORBROWN;
DRAWICON(CROSS(K,D),D*0.85,1);
WR源码:
N:=27;
N1:=23;
WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),COLORRED;
WR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)),COLORRED;
IF(WR1<20,WR1,DRAWNULL),COLORGREEN,LINETHICK2;
IF(WR1>80,WR1,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(WR2<20,WR2,DRAWNULL),COLORGREEN,LINETHICK2;
IF(WR2>80 AND WR2<REF(WR2,1),WR2,DRAWNULL),COLORMAGENTA,LINETHICK2;
15,DOTLINE;
80,DOTLINE,COLORBROWN;
升1:IF(WR1>REF(WR1,1),WR1,DRAWNULL)LINETHICK1,COLORGREEN;
升2:IF(WR2>REF(WR2,1),WR2,DRAWNULL)LINETHICK1,COLORGREEN;