OPEN-SOURCE SCRIPT

Portfolio PnL Tracker

snapshot
This is a personal portfolio tracker that helps you track your daily profits and losses. You can track up to 64 stocks or cryptocurrencies. You can set them by specifying the symbol and average price.

FEATURES
- Set up to 64 stock or crypto symbols.
- Shows the average price line
- Show profit or loss as a percentage
- Shows only when on the chart that matches the symbol settings.

HOW TO USE
1. Double click the PnL Tracker indicator at the top left of the chart
2. Enter your symbol and average cost

The average cost line shows your current position.
PnL is calculated based on the average cost you input.

The Profit and Loss (PnL) box and the average cost line will only be displayed when your input symbol matches the chart you are currently viewing.
lossPNLportfolioPortfolio managementprofittracker

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