OPEN-SOURCE SCRIPT
GRZ: Trade Calculator

GRZ: Trade Calculator is an advanced trade management and risk visualization indicator designed for leveraged trading and active position management.
The indicator allows traders to manually define entry price, position size, leverage, multiple stop losses, and take profit targets directly on the chart. It automatically calculates projected profit and loss values for each level based on trade direction and displays them using dynamic right-aligned lines and detailed chart labels.
The script supports multi-stage stop loss management, including optional automatic hiding of SL1 after it has been hit and dynamic reduction of active trade size after partial stop execution. Remaining position size, realized losses, and adjusted profit targets are recalculated automatically in real time.
Visual line colours update dynamically based on whether the active trade is currently in profit or loss, while configurable label formatting displays exact PNL values, close sizes, and target prices for entries, stop losses, and take profits.
This indicator is designed for traders who want a clear visual representation of active trade structure, risk exposure, partial stop management, and projected outcomes directly on the TradingView chart while managing high leverage or scaled positions.
The indicator allows traders to manually define entry price, position size, leverage, multiple stop losses, and take profit targets directly on the chart. It automatically calculates projected profit and loss values for each level based on trade direction and displays them using dynamic right-aligned lines and detailed chart labels.
The script supports multi-stage stop loss management, including optional automatic hiding of SL1 after it has been hit and dynamic reduction of active trade size after partial stop execution. Remaining position size, realized losses, and adjusted profit targets are recalculated automatically in real time.
Visual line colours update dynamically based on whether the active trade is currently in profit or loss, while configurable label formatting displays exact PNL values, close sizes, and target prices for entries, stop losses, and take profits.
This indicator is designed for traders who want a clear visual representation of active trade structure, risk exposure, partial stop management, and projected outcomes directly on the TradingView chart while managing high leverage or scaled positions.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。