Gostaria de sobrepor texto ao meu gráfico do TradingView. Gostaria de mostrar o texto "sobrecomprado" no nível RSI 85, centralizado em branco, e também mostrar o texto "sobrevendido" no nível RSI 15. Mas não sei como fazer isso. Um rótulo ou texto mostra "sobrecomprado" no RSI 85 e "sobrevendido" no RSI 15 acima das linhas. Alguém pode me ajudar a fazer isso? Obrigado.
Como posso adicionar o texto?
Este é o código que tenho até agora:
//@version=4
study(title="Relative Strength Index", shorttitle="RSI", format=format.price, precision=2, resolution="")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, "RSI", color=color.rgb(255, 255, 255))
band6 = hline (85, "upper band2", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band5 = hline (70, "upper Band3", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band4 = hline (60, "upper band4", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band2 = hline (30, "lower band2", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band1 = hline (15, "lower band3", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
band0 = hline (00, "lower band4", color=#ffffff70,linestyle=hline.style_dotted, linewidth=1)
É assim que meu gráfico está até agora: