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.
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.