Rss & SiteMap

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

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

标题:老师帮忙下

1楼
huo88 发表于:2018/4/25 14:43:46
模型中加入收盘最后5分钟不开仓,接近收盘1分钟清仓,(包括中午收盘)
2楼
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函数来实现的
共2 条记录, 每页显示 10 条, 页签: [1]


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