以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 早盘9.15--9.20不开仓,在收盘前平仓出来,怎么写? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=66932) |
-- 作者:qq代人发帖 -- 发布时间:2014/7/4 9:41:59 -- 早盘9.15--9.20不开仓,在收盘前平仓出来,怎么写? 请教:早盘9.15--9.20不开仓,在收盘前平仓出来,怎么写? |
-- 作者:jinzhe -- 发布时间:2014/7/4 9:45:51 -- 开仓时间:time>092000 and time<150000; 强平时间:time>=150000; 1.在开仓条件里面加入上面的开仓时间比如: if c>o and 开仓时间 then buy.......; 2.多加一句强平语句比如: if 强平时间 then begin sell........; sellshort........; end |