Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:策略中的时间限制写法?求助

1楼
xhbsy007 发表于:2016/9/29 22:27:21
老师:如何把下列时间限制,加到策略上?帮我写下代码,谢谢

北京时间模式

9:20 执行--------11:55清仓;
13:05执行--------16:25清仓;
17:20执行--------23:40清仓;
2楼
jinzhe 发表于:2016/9/30 9:19:22

开仓条件加入: (time>=092000 and time<=115500) or (time>=130500 and time<=162500) or (time>=172000 and time<=234000);

清仓:

 

if (time>115500 and time<=120000) or (time>162500 and time<=163000) or (time>234000 and time<=234500) then begin

   sell(1,0,market);

   sellshort(1,0,marketr);

end

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01270 s, 3 queries.