这个公式用在品种A上
cc:=callstock('B',vtclose,1);
if c-cc>5 then begin
buyshort(holding=0,1,nextopen);
end
if c-cc<-5 then begin
sellshort(1,0,market);
end
这个公式用在品种B上
cc:=callstock('A',vtclose,1);
if cc-c>5 then begin
buy(holding=0,1,market);
end
if cc-c<-5 then begin
sell(1,0,market);
end