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 abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.