以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 策略中的时间限制写法?求助 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=140301) |
-- 作者:xhbsy007 -- 发布时间:2016/9/29 22:27:21 -- 策略中的时间限制写法?求助 老师:如何把下列时间限制,加到策略上?帮我写下代码,谢谢 北京时间模式
9:20 执行--------11:55清仓; 13:05执行--------16:25清仓; 17:20执行--------23:40清仓; |
-- 作者: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 |