if holding>0 and c<enterprice-3 then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
if holding<0 and c>enterprice+3 then begin
sellshort(1,0,market);
buy(holding=0,1,market);