OPEN-SOURCE SCRIPT

📊 Portafoglio Verticale Personalizzabile (5 Tickers, Net ROI)

38
📊 Customizable Vertical Portfolio (5 Tickers, Net ROI)

Type: Pine Script v6 Indicator (TradingView)
Layout: Vertical table (up to 5 tickers + header)

🔹 Features

Tracks up to 5 tickers simultaneously

Table position selectable (top, middle, bottom; left, center, right)

Customizable colors (header, rows, borders)

Optional header display

🔹 Calculations

For each ticker:

Total cost = Entry price × Qty + Entry commissions

Current value = Current price × Qty – Exit commissions

Net P/L = Current value – Cost – Taxes

Net ROI (%) = (Net P/L ÷ Cost) × 100

🔹 Commission & Tax

Entry/Exit: Fixed or Percentage

CGT: user-defined %, applied only on profits

🔹 Output Table

| Ticker | Net P/L | Net ROI (%) |

Color-coded: Green = Profit, Red = Loss, Silver = Neutral/NA

✅ Best for

Multi-asset tracking in one chart

Real-time evaluation of profits after fees & taxes

Clear, visual portfolio monitoring

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.