PROTECTED SOURCE SCRIPT

CustomIndex

91
🛠️ How to Use

Open any chart on TradingView.
Add this indicator from your script library.
Click the ⚙️ settings icon to:
Choose up to 7 custom symbols
Assign a weight to each stock (weights should ideally total 1.00)
Enable Normalization to base the index at 100 for easier comparison

Optional:
Enable EMA 10
Enable EMA 20

📦 Example Setup

Step 1: Choose Your Stocks
Replace the default tickers with those from your target sector.


Step 2: Set Your Weights
Choose one of the following methods:

Market Cap Weighting
Calculate each stock's market capitalization as a percentage of the total.
Example: If stock A = 10,000 and total market cap = 50,000 → weight = 0.2

Liquidity Weighting
Use the average traded value (price × volume over a fixed period) and normalize so weights sum to 1.

Equal Weighting
Assign the same value to each stock (e.g., for 7 stocks: 1 ÷ 7 ≈ 0.1428)



⚠️ Notes & Disclaimer
This index is custom-built. Sector relevance depends on your symbol selection.
Always verify the appropriateness of your inputs.
For consistent results, ensure total weights sum to 1.00.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.