通达信股林KD指标公式源码副图

N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
周K:="kd.K#WEEK"(9,3,3),COLORGREEN;
周D:="KD.D#WEEK"(9,3,3),COLORLICYAN;
月K:"KD.K#MONTH"(9,3,3),COLORMAGENTA;
月D:"KD.D#MONTH"(9,3,3),COLORLIRED;
STICKLINE(K>D AND 周K>周D AND 月K>月D,-20,120,1,0),COLOR663355;
DRAWBAND(月K,RGB(120,0,0),月D,RGB(0,0,200));
{DRAWBAND(周K,RGB(255,97,0),周D,RGB(0,128,0));}
RK:=REF(K,1)>80 AND REF(K,2)>80 AND REF(K,3)>80;
ZK:=REF(周K,1)>80 AND REF(周K,2)>80 AND REF(周K,3)>80;
YK:=REF(月K,1)>80 AND REF(月K,2)>80 AND REF(月K,3)>80;
RK1:=REF(K,1)<20 AND REF(K,2)<20 AND REF(K,3)<20;
ZK1:=REF(周K,1)<20 AND REF(周K,2)<20 AND REF(周K,3)<20;
YK1:=REF(月K,1)<20 AND REF(月K,2)<20 AND REF(月K,3)<20;
DRAWICON(RK,90,27);
DRAWICON(RK1,10,28);
DRAWICON(ZK,100,26);
DRAWICON(ZK1,0,29);
DRAWICON(YK,110,25);
DRAWICON(YK1,-10,30);
DRAWICON(RK AND ZK AND YK,120,9);
DRAWICON(RK1 AND ZK1 AND YK1,-20,13);
A1:=IF(K>D,1,0);
A2:=IF(周K>周D,2,0);
A3:=IF(月K>月D,3,0);
A4:=IF(K>D AND 周K>周D AND 月K>月D,4,0);
看多:A1+A2+A3+A4,COLORYELLOW POINTDOT;
看空:10-看多,COLORYELLOW POINTDOT;
bbi:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4;
EBBI:=(EMA(C,6)+EMA(C,18)+EMA(C,54)+EMA(C,162))/4;
FF1:=EMA(C,3)>EMA(C,7) AND EMA(C,7)>EMA(C,21) AND EMA(C,21)>EMA(C,54);
DIFF:=EMA(CLOSE,10)-EMA(CLOSE,22);
DEA:=EMA(DIFF,9);
强势:=IF(BBI>EBBI AND FF1 AND DIFF>DEA,10,0),COLORYELLOW;
STICKLINE(强势,10,0,1,0),COLORYELLOW;
{DRAWICON(crOSS(K1,D1) AND CROSS(J1,D1),10,1)};{1号图标显示红箭头};
STICKLINE(周K>周D,周K,周D,1,-1),COLORYELLOW;
STICKLINE(周K<周D,周K,周D,1,-1),COLORFF9900;
K1:SMA(RSV,M1,1),COLORWHITE;
D1:SMA(K,M2,1),COLORYELLOW;
J1:3*K-2*D,COLORMAGENTA;
DRAWICON(CROSS(J,2),J,1);



未来函数检测结果如下:
该公式包含未来函数:#MONTH
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图