以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  策略编写求助区  (http://weistock.com/bbs/list.asp?boardid=11)
----  求写程序化入场策略  (http://weistock.com/bbs/dispbbs.asp?boardid=11&id=11465)

--  作者:海豚
--  发布时间:2012/5/3 15:52:35
--  求写程序化入场策略

入场:开盘后前三十分钟最高最低价突破开仓多单或者空单;

请用新交易系统语言编写,

谢谢?


--  作者:rushtaotao
--  发布时间:2012/5/3 15:57:50
--  

nn:barslast(date<>ref(date,1));
if time>=093000 and c>hhv(h,nn) then buy(1,1,market);
if time>=093000 and c<llv(l,nn) then buyshort(1,1,market);