Rss & SiteMap

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

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

标题:1分钟图中,

1楼
崔战营 发表于:2015/3/9 12:45:16

1分钟图中,中午收盘前10分钟和下午收盘前10分钟平仓,且停止开仓,怎么编写?多谢!!!!!!!!!!!

2楼
qq代人发帖 发表于:2015/3/9 13:20:49

根据具体品种写时间例如股指的中午11:30收盘,下午15:15收盘

if time>=112000 and time<130000 then begin
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
end
if time>150500 then begin
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
end

开仓条件里加上(time>090000 and time<112000) or (time>130000 and time<150500)

共2 条记录, 每页显示 10 条, 页签: [1]


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