以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://222.73.7.161/bbs/index.asp) -- 公式模型编写问题提交 (http://222.73.7.161/bbs/list.asp?boardid=4) ---- 老师帮忙下 (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=163021) |
-- 作者:huo88 -- 发布时间:2018/4/25 14:43:46 -- 老师帮忙下 模型中加入收盘最后5分钟不开仓,接近收盘1分钟清仓,(包括中午收盘) |
-- 作者:FireScript -- 发布时间:2018/4/25 14:58:35 -- 还是使用time函数 cond:not((time>=152500 and time<=153000) or (time>=185500 and time<=190000));//把这个加入到开仓条件里面去 cond2:(time>=1529000 and time<=153000) or (time>=185900 and time<=190000); if cond2 then begin sell(holding>0,holding,market); sellshort(holding<0,holding,market); end 此类需求的实现都是配合time函数来实现的 |