Hi anyone aware of PineScript Trading view programming

//@version=5
indicator(“Buy”, overlay=true)
length = 5
source = high
// Calculate Highest Close price
highesthigh = ta.highest (source, length)
// Plot resistance levels
plotshape(series=ta.barssince(highesthigh == source) == 0, title=“Buy”, location=location.belowbar, color=color.red, style=shape.labelup, text=“Buy”)

I want to add 2% in highest high in this so where should I modify…?

We appreciate your inquiry! While we’re not currently familiar with the specifics of Pine Script, we’ve attempted a modification based on your request. Please find the adjusted script below:
//@version=5
indicator(“Buy”, overlay=true)
length = 5
source = high

// Calculate the highest high price
highesthigh = ta.highest(source, length) * 1.02 // Increasing the highest high value by 2%

// Plot buy signals
plotshape(series=ta.barssince(highesthigh == source) == 0, title=“Buy”, location=location.belowbar, color=color.red, style=shape.labelup, text=“Buy”)

We encourage you to give it a try and let us know how it works for your needs.

Will try and let you know @karthi_chandran thankyou for the quick response

Not working @karthi_chandran please check

//@version=5
indicator(“Buy”, overlay=true)

length = 5
source = high

// Calculate Highest Close price
highesthigh = ta.highest(source, length)

// Add 2% to highest high
adjustedHighestHigh = highesthigh * 1.02

// Plot “Buy” label when current price surpasses adjusted highest high
plotshape(series=source > adjustedHighestHigh, title=“Buy”, location=location.belowbar, color=color.green, style=shape.labelup, text=“Buy”)
Can you check

Will check and let you know

However, it’s important to note that we haven’t tested this Pine Script ourselves. For further details and insights, you may refer to the official documentation available on their website at https://www.tradingview.com/pine-script-docs/en/v5/Introduction.html

Still not working

For further details and insights, you may refer to the official documentation available on their website at https://www.tradingview.com/pine-script-docs/en/v5/Introduction.html