Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:主图划线

1楼
须弥 发表于:2015/10/20 22:07:21
任何一根K线后面跟随的4根K线收盘价处在该K线范围之内,该K线最高价画水平线、最低价画水平线。如果之后的某一根K线的收盘价脱离该最高价、最低价范围,划线结束。
2楼
jinzhe 发表于:2015/10/21 10:28:02

也就是画到后面第4根?

还是就算只有一根符合要求,也要画

3楼
须弥 发表于:2015/10/21 11:12:41
可能的话全部画,如果较难 就画到后面一个符合条件的。
4楼
jinzhe 发表于:2015/10/21 11:26:51

cond1:=hhv(h,4)<ref(h,4) and llv(l,4)>ref(l,4);
cond2:=hhv(h,3)<ref(h,3) and llv(l,3)>ref(l,3);
cond3:=hhv(h,2)<ref(h,2) and llv(l,2)>ref(l,2);
cond4:=hhv(h,1)<ref(h,1) and llv(l,1)>ref(l,1);

drawsl(cond1,ref(h,4),0,4,1),COLORRED;
drawsl(cond1,ref(l,4),0,4,1),COLORRED;

drawsl(cond2 and not(cond1),ref(h,3),0,3,1),COLORRED;
drawsl(cond2 and not(cond1),ref(l,3),0,3,1),COLORRED;

drawsl(cond3 and not(cond1 or cond2),ref(h,2),0,2,1),COLORRED;
drawsl(cond3 and not(cond1 or cond2),ref(l,2),0,2,1),COLORRED;

drawsl(cond4 and not(cond1 or cond2 or cond3),ref(h,1),0,1,1),COLORRED;
drawsl(cond4 and not(cond1 or cond2 or cond3),ref(l,1),0,1,1),COLORRED;

5楼
须弥 发表于:2015/10/21 14:19:19
谢谢  我试试看
6楼
须弥 发表于:2015/10/21 14:24:48
好像不对  要这样的效果  
图片点击可在新窗口打开查看此主题相关图片如下:qq截图20151021142342.png
图片点击可在新窗口打开查看
共6 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03516 s, 3 queries.