以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 开平仓时间问题 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=101600) |
-- 作者:系统使用者 -- 发布时间:2016/7/16 12:14:49 -- 开平仓时间问题 标准版,系统使用了提前5秒时间下单,结果还是没有执行。 abb:=(time0-timetot0(dynainfo(207))<=5) or not(islastbar); if abb then begin 平多:sell(tmp<0 and c<stopprice and holding>0,ss,marketr); 平空:sellshort(tmp>0 and c>stopprice and holding<0,ss,marketr); 开多:buy(BUY1 and holding<=0,ss,marketr); 开空:buyshort(SELL1 and holding>=0,ss,marketr); end |
-- 作者:jinzhe -- 发布时间:2016/7/18 8:59:47 -- 使用固定时间间隔,不要用走完k线 |