Rss & SiteMap

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

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

标题:如果我想在上午收盘的时候平仓,可以这样表示吗?

1楼
panjian 发表于:2010/10/26 15:53:32

想在上午收盘时平仓 可以用这个办法吗?

if  currenttime>115957 then
begin
tsell(1,0,mkt);
end
if  currenttime>115957 then
begin
tsellshort(1,0,mkt);
end

2楼
fly 发表于:2010/10/26 16:11:34

国内期货的收盘时间是11:30

上午收盘前2分钟平仓--图表,把命令改成对应的后台即可

 

if currenttime > 112800 and currenttime <= 113000 then
 begin
 sell(holding > 0, 0, thisclose);
 sellshort(holding < 0, 0, thisclose);
 end

3楼
panjian 发表于:2010/10/26 16:18:00

犯了一个低级错误 把时间搞错了 图片点击可在新窗口打开查看

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


Powered By Dvbbs Version 8.3.0
Processed in 0.03516 s, 2 queries.