1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
190 lines of Pine Script v6 from PineScript/portfolio-tracker.pine, published under MPL-2.0. Keep the author's credit and licence lines when you reuse it.
Portfolio Tracker monitors up to ten user-defined symbols alongside their respective buy prices, retrieving current market prices and calculating the unrealized percentage change for each position. Values are color-coded in green for gains and red for losses. Main settings allow customization of ticker symbols, entry prices, and table placement on the screen. It performs purely informational tracking and does not generate trade alerts or execution signals.
Tracks up to 10 user-selected symbols and entry prices
On-chart dashboard table displaying entry, current price, and return
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Stock 1 Symbol
symbol
sym1
Stock 1 Buy Price
float
0.0
price1
Stock 2 Symbol
symbol
sym2
Stock 2 Buy Price
float
0.0
price2
Stock 3 Symbol
symbol
sym3
Stock 3 Buy Price
float
0.0
price3
Stock 4 Symbol
symbol
sym4
Stock 4 Buy Price
float
0.0
price4
Stock 5 Symbol
symbol
sym5
Stock 5 Buy Price
float
0.0
price5
Stock 6 Symbol
symbol
sym6
Stock 6 Buy Price
float
0.0
price6
Show all 21 settings
Setting
Type
Default
Variable
Stock 7 Symbol
symbol
sym7
Stock 7 Buy Price
float
0.0
price7
Stock 8 Symbol
symbol
sym8
Stock 8 Buy Price
float
0.0
price8
Stock 9 Symbol
symbol
sym9
Stock 9 Buy Price
float
0.0
price9
Stock 10 Symbol
symbol
sym10
Stock 10 Buy Price
float
0.0
price10
Table Location
string
Upper Right
tabLoc
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
Symbol Info Helper is an informational utility script that displays metadata about the currently selected instrument directly on the main price chart. It gathers built-in symbol properties including ticker identifier, description, instrument type, point value,
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
This indicator classifies each bar as bull, bear, or sideways from a rolling log return compared with adjustable percentage thresholds. It paints a regime ribbon on the price chart, shows a current-regime banner, and labels state changes after a minimum hold.
This indicator monitors multiple cryptocurrency symbols for trading signals. It calculates and plots entry prices, take profit, and stop loss levels for each symbol including BTCUSDT, ETHUSDT, BNBUSDT and others. Price crossovers trigger buy, sell or close ale
This indicator calculates theoretical options contract values and in-the-money probabilities using historical realized volatility across multiple standard deviations. It displays these metrics in a table overlay directly on the price chart. Users can adjust th
3938 Tracker visualizes historical buying and selling activity from ARK Invest funds directly on the main price chart. It plots labels at specific timestamps corresponding to trade dates, indicating buy or sell actions along with the count of participating ETF