Rss & SiteMap

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

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

标题:交易时间限制问题

1楼
zengxing 发表于:2017/5/22 16:09:00
如何编写 
交易时间是从 21:10 -23:20
9:10-11:20
13:40-14:50

到了时间要全平
2楼
gzj137070928 发表于:2017/5/22 16:18:55
cond1:=time>=211000 and time<=232000;
cond2:=time>=091000 and time<=112000;
cond3:=time>=134000 and time<=145000;
cond:=cond1 or cond2 or cond3;
if not(cond) then sell(1,0,marketr)/sellshort(1,0,marketr);//市价平仓
3楼
wenarm 发表于:2017/5/22 16:44:04

软件默认是今天时间,你上面提供的是北京时间。如果是金字塔时区请将北京时间时间+4小时

cond1:=time>=211000 and time<=232000;

cond2:=time>=091000 and time<=112000;
cond3:=time>=134000 and time<=145000;
if  cond1 or cond2 or cond3 then begin
    sell();
    sellshort();
 
 
end
[此贴子已经被作者于2017/5/22 16:46:17编辑过]
4楼
gzj137070928 发表于:2017/5/23 10:32:46
对的,忘记了软件自己的金字塔时间图片点击可在新窗口打开查看
共4 条记录, 每页显示 10 条, 页签: [1]


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