在交易系统中引用一个指标,和把这个指标写在交易系统里,这两个作比较哪个运行速度更快一些
aa:=cross(ma(c,5),ma(c,10));
bb:=cross(ma(c,10),ma(c,5));
if ref(aa,1) and holding<0 then begin
平空:sellshort(1,holding,limitr,o);
tsellshort(1,holding,mkt);
end
if ref(bb,1) and holding>0 then begin
平多:sell(1,holding,limitr,o);
tsell(1,holding,mkt);
end
if ref(aa,1) and holding=0 then begin
开多:buy(1,1,limter,o);
tbuy(1,1,mkt);
end
if ref(bb,1) and holding=0 then begin
开空:buyshort(1,1limter,o);
tbuyshort(1,1,mkt);
end
请问,我把上面的1个系统用后台跑两个品种ag和au,两个品种间的开平会相互干扰吗,比如ag的开仓信号,结果把au的仓给开了。