if (h-enterprice)/enterprice>=0.02 and holding>0 then sell......;//多头止盈
if (enterprice-l)/l>=0.01 and holding>0 then sell.....;//多头止损
if (h-enterprice)/enterprice>=0.01 and holding<0 then sellshort......;//空头止损
if (enterprice-l)/l>=0.02 and holding<0 then sellshort.....;//空头止盈
stickline((enterprice-l)/l>=0.02 and holding=0 and ref(holding<0,1),h,l,8,0),colorred;
stickline((h-enterprice)/enterprice>=0.02 and holding=0 and ref(holding>0,1),h,l,8,0),colorred;
if (h-enterprice)/enterprice>=0.02 and holding>0 then sell......;//多头止盈
if (enterprice-l)/l>=0.01 and holding>0 then sell.....;//多头止损
if (h-enterprice)/enterprice>=0.02 and holding>0 then sell......;//多头止盈
if (enterprice-l)/l>=0.01 and holding>0 then sell.....;//多头止损
请结合图片说明一下需求