以开多为例:
if holding>0 and hhv(h,enterbars+1)-enterprice>100 and hhv(h,enterbars+1)-enterprice<200 and l<hhv(h,enterbars+1)-40 then sell.........;
if holding>0 and hhv(h,enterbars+1)-enterprice>=200 and hhv(h,enterbars+1)-enterprice<300 and l<hhv(h,enterbars+1)-60 then sell.........;
if holding>0 and hhv(h,enterbars+1)-enterprice>=300 and l<hhv(h,enterbars+1)-300*0.2 then sell.........;