if holding>1 and h>ref(hhv(h,enterbars+1),1) then buy(1,1,market);
if c<enterprice*(1-0.003) then sell(1,0,market);
没问题,说明错的不是这句
看看上一句结尾是不是少了分号