'Pine v5 - How to make dynamic text in plot text?

how to make dynamic text from input value into plotshape? Thanks

// Input
i_strat_longTPpercent  = input.float(title="Long TP(%)", defval=3) / 100

// Plot 
plotshape(longTPhit, style=shape.labeldown, location=location.abovebar, color=color.purple, size=size.tiny, title="Long TP Hit", text="Long TP" + i_strat_longTPpercent)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source