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);//市价平仓
软件默认是今天时间,你上面提供的是北京时间。如果是金字塔时区请将北京时间时间+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编辑过]