仅供参考
收阴:c<o;
收阳:c>o;
if 收阳 then
begin
if ref(c,1)<ref(o,1) then buy(1,1,market);
else if ref(c,2)<ref(o,2) then buy(1,1,market);
else if ref(c,3)<ref(o,3) then buy(1,1,market);
end
综合各方考虑,猜测您的意思应该是以下2句代码
if b then buy(any(a,3),1,market);
if a then buy(any(b,3),1,market);
if any(a,3) and any(b,3) then buy(1,1,market);
这样一样吧