Rss & SiteMap

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

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

标题:开平仓时间问题

1楼
系统使用者 发表于: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
2楼
jinzhe 发表于:2016/7/18 8:59:47
使用固定时间间隔,不要用走完k线
共2 条记录, 每页显示 10 条, 页签: [1]


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