if h>ref(hhv(h,5),1)+6 then buy(holding=0,1,marketr);
if ref(close<enterprice-8,1) then begin
sell(1,0,marketr);
buyshort(holding=0,1,marketr);
end