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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。