OPEN-SOURCE SCRIPT
Risk Grid R Levels

This script is a TradingView Pine v5 overlay indicator that draws a custom risk grid based on your Entry Price and Stop Price (-1R).
It calculates one risk unit (1R) as the distance between entry and stop, then plots horizontal levels at -1R, 0R, +1R ... +6R.
0R is your entry, -1R is your stop, and positive levels are profit targets in risk multiples.
The lines are thin and extend only to the right.
Each level has a clean text label placed directly on the line (no badges), and you can control positioning with:
Line Offset (bars) for moving lines left/right
Label Offset (bars) for moving labels independently
If entry and stop are equal, the script shows an error label instead of drawing levels.
It calculates one risk unit (1R) as the distance between entry and stop, then plots horizontal levels at -1R, 0R, +1R ... +6R.
0R is your entry, -1R is your stop, and positive levels are profit targets in risk multiples.
The lines are thin and extend only to the right.
Each level has a clean text label placed directly on the line (no badges), and you can control positioning with:
Line Offset (bars) for moving lines left/right
Label Offset (bars) for moving labels independently
If entry and stop are equal, the script shows an error label instead of drawing levels.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.