股民大家庭

 找回密码
 立即注册

扫一扫,访问微社区

搜索
查看: 17192|回复: 0
打印 上一主题 下一主题

[通达信] 通达信两周k线-指标公式 (源码)

[复制链接]
跳转到指定楼层
1
发表于 2012-11-13 12:32:52 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
[通达信] 通达信两周k线-指标公式 (源码)

{两周K线}
XR1:=6;XK1:=5;
HH1:=HHV(HIGH,XK1);
LL1:=LLV(LOW ,XK1);
OO1:=IF(XK1<=1,OPEN,REF(OPEN,XK1-1));
CC1:=CLOSE;
XH1:=CONST(IF(ISLASTBAR,IF(XR1<=1,HH1,REF(HH1,XR1-1)),DRAWNULL));
XL1:=CONST(IF(ISLASTBAR,IF(XR1<=1,LL1,REF(LL1,XR1-1)),DRAWNULL));
XO1:=CONST(IF(ISLASTBAR,IF(XR1<=1,OO1,REF(OO1,XR1-1)),DRAWNULL));
XC1:=CONST(IF(ISLASTBAR,IF(XR1<=1,CC1,REF(CC1,XR1-1)),DRAWNULL));
STICKLINE(CURRBARSCOUNT=XR1+FLOOR(XK1/2) AND XC1>XO1,XH1,XL1,XK1*1+0.5,0),COLOR008080;
STICKLINE(CURRBARSCOUNT=XR1+FLOOR(XK1/2) AND XC1>XO1,XO1,XC1,XK1*4+0.5,0),COLOR008080;
STICKLINE(CURRBARSCOUNT=XR1+FLOOR(XK1/2) AND XC1<XO1,XH1,XL1,XK1*1+0.5,0),COLOR005B00;
STICKLINE(CURRBARSCOUNT=XR1+FLOOR(XK1/2) AND XC1<XO1,XO1,XC1,XK1*4+0.5,0),COLOR005B00;
XR:=1;XK:=5;
HH:=HHV(HIGH,XK);
LL:=LLV(LOW ,XK);
OO:=IF(XK<=1,OPEN,REF(OPEN,XK-1));
CC:=CLOSE;
XH:=CONST(IF(ISLASTBAR,IF(XR<=1,HH,REF(HH,XR-1)),DRAWNULL));
XL:=CONST(IF(ISLASTBAR,IF(XR<=1,LL,REF(LL,XR-1)),DRAWNULL));
XO:=CONST(IF(ISLASTBAR,IF(XR<=1,OO,REF(OO,XR-1)),DRAWNULL));
XC:=CONST(IF(ISLASTBAR,IF(XR<=1,CC,REF(CC,XR-1)),DRAWNULL));
STICKLINE(CURRBARSCOUNT=XR+FLOOR(XK/2) AND XC>XO,XH,XL,XK*1+0.5,0),COLOR008080;
STICKLINE(CURRBARSCOUNT=XR+FLOOR(XK/2) AND XC>XO,XO,XC,XK*4+0.5,0),COLOR008080;
STICKLINE(CURRBARSCOUNT=XR+FLOOR(XK/2) AND XC<XO,XH,XL,XK*1+0.5,0),COLOR005B00;
STICKLINE(CURRBARSCOUNT=XR+FLOOR(XK/2) AND XC<XO,XO,XC,XK*4+0.5,0),COLOR005B00;
DRAWKLINE(H,O,L,C);




上一篇:倒阴K线掘金短线大牛股 实战把握两介入点
下一篇:[通达信]通达信 蓝色底部k线 -指标公式(源码)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

今日股市|网站地图|股民学校|手机版|小黑屋|股民大家庭 |网站地图24小时在线客服

GMT+8, 2025-1-15 20:48 , Processed in 9.195032 second(s), 28 queries , Gzip On.

Powered by 股民大家庭

© 2007-2019 www.gupiao168.com


快速回复 返回顶部 返回列表