1.要实现在每天9.00--14.50点,21.00--23.20的时间段内交易,
开仓条件加入: ((time>130000 and time<=185000) or (time>010000 and time<=032000));
2尾盘平仓
if time>185000 and time<=190000 then begin
sell(1,0,marketr);
sellshort(1,0,marketr);
end
if time>032000 and time<=033000 then begin
sell(1,0,marketr);
sellshort(1,0,marketr);
end