请教:买卖指令是一定要按照
平空
开多
平多
开空
来写的吗,怎么在系统公式  顾比倒数线策略
里面有
if holding=0 then begin
 if tmp<=0 then
  buy(1,1,limitr,close);
end
if holding=0 then begin
 if tmp>0 then
  buyshort(1,1,limitr,close);  
end
if holding>0 then begin
 if tmp>0 then begin
  sell(1,holding,limitr,close);
  buyshort(1,1,limitr,close);
 end
end
if holding<0 then begin
 if tmp<=0 then begin
  sellshort(1,holding,limitr,close);
  buy(1,1,limitr,close);
 end
end
这个顺序和你们要求的不一样啊