以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请帮忙编写一下后台交易策略  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=63232)

--  作者:zm71212302
--  发布时间:2014/3/28 9:40:30
--  请帮忙编写一下后台交易策略

sell(holding>0 and 平多 or 清仓时间,0,LIMIT,c),orderqueue,IGNORECHECKPRICE;;
sellshort(holding<0 and 平空 or 清仓时间,0,LIMIT,c),orderqueue,IGNORECHECKPRICE;;
buy(holding=0 and 开多 and 开仓时间,1,LIMIT,c),orderqueue,IGNORECHECKPRICE;;
buyshort(holding=0 and 开空 and 开仓时间,1,LIMIT,c),orderqueue,IGNORECHECKPRICE;;

 

求管理将清仓时间变量改成中午11:28分清仓和下午2:58分清仓 开仓时间为早9:00分和下午1:30分

 

 

我现在使用机构版交易对后台交易不是太了解,想将以上交易代码改成后台程序化,品种默认自选,注:这个策略是以超短线1分钟图表交易

 


--  作者:zm71212302
--  发布时间:2014/3/28 9:43:43
--  

再帮助写一下2分钟之内发生交易挂单未成交撤单

 


--  作者:jinzhe
--  发布时间:2014/3/28 10:05:50
--  

清仓时间:= time>=112800 and time<=113000 or (time>=145800 and time<=150000);

开车时间:=time>090000 and time<112800 or (time>133000 and time<145800);

tsell(tholding>0 and 平多 or 清仓时间,0,lmtc),orderqueue;

tsellshort(tholding<0 and 平空 or 清仓时间,0,lmt,c),orderqueue;

tbuy(tholding=0 and 开多 and 开仓时间,1,Lmt,c),orderqueue;

tbuyshort(tholding=0 and 开空 and 开仓时间,1,Lmt,c),orderqueue;

 

后面的撤单需求,按照当前的后台函数,是检测不了多少时间的未成交单,只能检测当前是否有未成交单


--  作者:zm71212302
--  发布时间:2014/3/28 10:16:55
--  

实在是感谢至极