OPEN-SOURCE SCRIPT

SBC Protfo

156
SBC Portfo PNL Indicator

Description
The SBC Portfo PNL Indicator is a powerful and user-friendly tool designed specifically for Hebrew-speaking traders to track the Profit and Loss (PNL) of their stock portfolios directly on TradingView charts. This indicator allows users to manage up to **5 distinct portfolios**, each capable of holding an **unlimited number of stocks** with **unlimited buy commands**. It provides a seamless way to input and analyze purchase data, making it ideal for traders who want to monitor their portfolio performance in real-time.

Key Features
- **Multi-Portfolio Support**: Create and track up to 5 separate portfolios, allowing flexibility for different trading strategies or accounts.
- **Unlimited Stock Entries**: Each portfolio can include an unlimited number of stocks, with no restrictions on the number of buy commands per stock.
- **Detailed Buy Commands**: For each stock, input the following data:
- **Stock Ticker**: The symbol of the stock (e.g., `AAPL`, `TSLA`).
- **Buy Price**: The price at which the stock was purchased (e.g., `150.25`).
- **Buy Amount**: The quantity of shares purchased (e.g., `10`).
- **Hebrew-Friendly Interface**: Designed with Hebrew-speaking users in mind, ensuring intuitive navigation and clear instructions in the TradingView settings dialog.
- **Customizable PNL Tracking**: Visualize the profit and loss of your portfolios directly on your TradingView charts, with real-time updates based on market data.

How to Use
1. **Add the Indicator**:
- Open TradingView, go to the chart, and add the "SBC Portfo PNL Indicator" from the Indicators menu.
2. **Configure Portfolios**:
- Open the indicator’s settings dialog.
- For each portfolio (up to 5), manually enter the portfolio data in the provided input fields using the following format:
```
PortfolioName:StockTicker:BuyPricexBuyAmount;StockTicker:BuyPricexBuyAmount
```
**Example**:
```
Portfolio1:AAPL:150.25x10;TSLA:266.72x5
```
- This example represents a portfolio named "Portfolio1" with two buy commands:
- 10 shares of AAPL bought at $150.25.
- 5 shares of TSLA bought at $266.72.
- Repeat for additional portfolios (e.g., `Portfolio2`, `Portfolio3`, etc.), each in its own input field.
- You can add multiple buy commands for the same stock within a portfolio by including additional entries (e.g., `AAPL:160.50x20`).
3. **Apply Settings**:
- Save the settings to apply the portfolio data to the chart.
- The indicator will calculate and display the PNL based on the current market prices of the entered stocks.
4. **Monitor PNL**:
- View the profit and loss for each portfolio directly on the chart, with customizable display options (e.g., table, labels, or graphical overlays, depending on indicator settings).

## Input Format
Each portfolio’s data must be entered manually in the indicator’s settings dialog, with one input field per portfolio. The format is as follows:
```
PortfolioName:StockTicker:BuyPricexBuyAmount;StockTicker:BuyPricexBuyAmount
```
- **PortfolioName**: A unique name for the portfolio (e.g., `Portfolio1`, `Growth`, `Tech`).
- **StockTicker**: The stock symbol (e.g., `AAPL`, `GOOGL`).
- **BuyPrice**: The purchase price per share (e.g., `150.25`).
- **BuyAmount**: The number of shares purchased (e.g., `10`).
- **Separator**: Use `:` to separate portfolio name, ticker, and buy data; `x` to separate price and amount; and `;` to separate multiple stock entries.

**Example Input for Multiple Portfolios**:
- Portfolio 1:
```
GrowthPortfolio:AAPL:150.25x10;TSLA:266.72x5;MSFT:305.10x8
```
- Portfolio 2:
```
DividendPortfolio:KO:55.20x50;PG:145.30x30
```

Companion Tool
To simplify portfolio management, use the **SBC Portfo Manager** desktop app (available separately). This tool allows Hebrew-speaking users to create, edit, and export portfolio data in the correct format, which can then be copied and pasted into the indicator’s settings. Note: The SBC Portfo Manager is an independent tool and not affiliated with TradingView.

Notes
- **Hebrew Support**: Instructions and labels in the settings dialog are optimized for Hebrew users, ensuring clarity and ease of use.
- **Unlimited Flexibility**: Add as many stocks and buy commands as needed per portfolio, with no upper limit.
- **Manual Input**: Portfolio data must be entered manually in the settings dialog. Ensure the format is correct to avoid errors.
- **Compatibility**: Works with any stock ticker supported by TradingView.

Disclaimer
The SBC Portfo PNL Indicator is an independent tool created to assist Hebrew-speaking traders in tracking portfolio performance. It is **not** affiliated with TradingView. Always verify your portfolio data and consult with a financial advisor before making trading decisions.

Support
For questions, issues, or feature requests, please contact the developer via TradingView or check the [GitHub repository](github.com/shaybc/sbc_protfo_manager) for additional resources.

License
This indicator is provided under the Attribution-NonCommercial 4.0 International license. Please review the terms on the GitHub repository or contact the developer for details.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.