How do I change the condition from Buy (current script) to also accomodate Sell
enter code here
//@version=5
indicator("Fix % Stop Loss Take Profit", overlay=true)
Price = input.price(defval = 0,confirm = true)
slF = input.float(title="Short % Below Price", defval=0.5, minval=0, step=0.001) * 0.01
tpF = input.float(title="Long % Above Price", defval=1.0, minval=0, step=0.001) * 0.01
h = Price
short = (h * (1 - slF))
long = (h * (1 + tpF))
Buy = input.bool(true)
Sell = input.bool(false)
//Condition
plot(h,color=color.white,linewidth = 5)
plot(short,color=color.red,linewidth = 5)
plot(long,color=color.lime,linewidth = 5)