以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助]开仓条件  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=29489)

--  作者:xian_0_9
--  发布时间:2012/9/26 13:09:54
--  [求助]开仓条件

10点30开始交易。

当天最高价出现的时间在当天最低价出现之后。开多。

当天最高价出现的时间在当天最低价出现之前。开空。


--  作者:jinzhe
--  发布时间:2012/9/26 13:22:28
--  

hh:=callstock(stklabel,vthigh,6);

ll:=callstock(stklabel,vtlow,6);

variable:a=0,b=100000;

tt:= (time>103000 and time<145500);

if h>a then a:=h;

if l<b then b:=l;

if a=hh and b>ll then buy;

if b=ll and a<hh then buyshort;

 

if time >=145500 and time<150000 then begin

a:=0;

b:=100000;

end


--  作者:xian_0_9
--  发布时间:2012/9/26 13:39:51
--  
谢谢图片点击可在新窗口打开查看