以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  日盘前高  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=87394)

--  作者:北极熊
--  发布时间:2015/11/17 16:04:29
--  日盘前高

老师好:

只做日盘如何表达从9点开盘至今的前最高并画一条这个最高价的线段到收盘为止。


--  作者:jinzhe
--  发布时间:2015/11/17 16:11:34
--  

runmode:0;

nn:=barslast(ref(time=closetime(1),1));

hh:=hhv(h,nn+1);

if time>closetime(1) and time<=closetime(0) then hh1:hh;

hh1为所求值

 

 

[此贴子已经被作者于2015/11/17 16:12:38编辑过]