同花顺神KD指标公式

[复制链接]
查看120 | 回复0 | 2021-8-20 21:35:25 | 显示全部楼层 |阅读模式

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
D:SMA(K,3,1);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;
DEA:=EMA(DIF,9),NODRAW;
MACD:(DIF-DEA)*2,NODRAW;
交叉天数:=MIN(BARSLAST(CROSS(K,D))+1,BARSLAST(CROSS(D,K))+1),NODRAW;
KD开口:K-D,colormagenta,NODRAW;
换手:VOL/CAPITAL*100,NODRAW;
AO:=MACD>0 AND DIF>0;
AA:=MACD<0 AND DIF>0;
BB:=CROSS(DIF,0);
CC:=CROSS(0,DIF);
EE:=K>REF(K,1) AND REF(K,2)>REF(K,1);
FF:=K<REF(K,1) AND REF(K,2)<REF(K,1);
STICKLINE(AO,50,52,4,0),colormagenta;
STICKLINE(AA,50,48,4,0),colorgreen;
STICKLINE(EE,D,K,1,0),colormagenta;
STICKLINE(FF,D,K,1,0),colorgreen;

202108202132.jpg

202108202132.jpg

 

回复

使用道具 举报

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

本版积分规则