Correct script to run the code to give buy sell signals. Below is the script:
//@version=5
indicator(“KT SUPER BUY SELL”, overlay=true)
supertrendLength = input(7, title="Supertrend Length")
supertrendMultiplier = input(3, title="Supertrend Multiplier")
sourcePrice = close // Change to open, high, or low if desired
supertrend = supertrend(sourcePrice, supertrendLength, supertrendMultiplier)
upTrend = supertrend > sourcePrice
downTrend = supertrend < sourcePrice
plotshape(upTrend, style=shape.triangleup, color=color.green, location=location.belowbar, title="Buy")
plotshape(downTrend, style=shape.triangledown, color=color.red, location=location.abovebar, title="Sell")
New contributor
Shaik Junaid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.