以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  交易策略发布专区  (http://weistock.com/bbs/list.asp?boardid=10)
----  [技术指标]时空线  (http://weistock.com/bbs/dispbbs.asp?boardid=10&id=8783)

--  作者:z7c9
--  发布时间:2011/11/3 14:46:25
--  [技术指标]时空线

runmode:0;

predayhigh:=callstock(stklabel,vthigh,6,-1);
predaylow:=callstock(stklabel,vtlow,6,-1);

dayopen:=callstock(stklabel,vtopen,6,0);

dist:=barslast(date>ref(date,1))+1;

highest:=ref(hhv(high,dist),1);
lowest:=ref(llv(low,dist),1);

昨高:predayhigh,linethick2;
昨低:predaylow,linethick2;
今开:dayopen,linethick2;
最高:highest,linethick2;
最低:lowest,linethick2;

9点:vertline(time=090500);
9点30分:vertline(time=093500);
10点:vertline(time=103500);
10点15分:vertline(time=101500);
10点30分:vertline(time=103500);
11点:vertline(time=110500);
11点30分:vertline(time=113000);
13点30分:vertline(time=133500);
14点:vertline(time=140500);
14点30分:vertline(time=143500);
15点:vertline(time=150000);