OPEN-SOURCE SCRIPT

RaenonX - Manual PnL Tracker

Updated
Change the "ticker" field in the settings to the ticker to track (for example, "SQQQ") before use.

Manually track the PnL of a single ticker.

The current PnL will be shown at the right bottom of the chart.
Release Notes
- Added textual avg px
- Updated type of input for symbol/ticker
Release Notes
Note: PnL is only shown if the ticker of the chart is the same as what the indicator configured for. For example, if the indicator is tracking SQQQ, then PnL will only show if the chart is showing SQQQ data.

Because of the Pine Script v5 limitation, showing accurate PnL while using other ticker in chart is impossible for now.
Pine utilities

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer