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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.