图表交易,收盘前平仓,用固定时间间隔1秒下单,让图表和实际下单位置一样。
这么写对么?谢谢!
SPTIME:=time=145500;
sell(SPTIME and holding>0,holding,limtr,o);
//收盘前5分钟平仓,适用周期1分钟和5分钟
if time > 145500 then
begin
sell(holding > 0, 0, limitr,o);
sellshort(holding < 0, 0, limitr,o);
end
[此贴子已经被作者于2011-2-22 11:04:34编辑过]