TradingView
MUQWISHI
4 de Abr de 2024 15:16

Index Generator [By MUQWISHI] 

Invesco QQQ Trust, Series 1NASDAQ

Descrição

▋ INTRODUCTION :
The “Index Generator” simplifies the process of building a custom market index, allowing investors to enter a list of preferred holdings from global securities. It aims to serve as an approach for tracking performance, conducting research, and analyzing specific aspects of the global market. The output will include an index value, a table of holdings, and chart plotting, providing a deeper understanding of historical movement.

_______________________
▋ OVERVIEW:

The image can be taken as an example of building a custom index. I created this index and named it “My Oil & Gas Index”. The index comprises several global energy companies. Essentially, the indicator weights each company by collecting the number of shares and then computes the market capitalization before sorting them as seen in the table.

_______________________
▋ OUTPUTS:
The output can be divided into 3 sections:
1. Index Title (Name & Value).
2. Index Holdings.
3. Index Chart.


1. Index Title, displays the index name at the top, and at the bottom, it shows the index value, along with the daily change in points and percentage.



2. Index Holdings, displays list the holding securities inside a table that contains the ticker, price, daily change %, market cap, and weight %. Additionally, a tooltip appears when the user passes the cursor over a ticker's cell, showing brief information about the company, such as the company's name, exchange market, country, sector, and industry.


3. Index Chart, display a plot of the historical movement of the index in the form of a bar, candle, or line chart.


_______________________
▋ INDICATOR SETTINGS:

(1) Naming the index.
(2) Entering a currency. To unite all securities in one currency.
(3) Table location on the chart.
(4) Table’s cells size.
(5) Table’s colors.
(6) Sorting table. By securities’ (Market Cap, Change%, Price, or Ticker Alphabetical) order.
(7) Plotting formation (Candle, Bar, or Line)
(8) To show/hide any indicator’s components.
(9) There are 34 fields where user can fill them with symbols.


Please let me know if you have any questions.

Notas de Lançamento

Fixed tooltip bug.
Comentários
PineCoders
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
MUQWISHI
@PineCoders, I appreciate your support.
RedKTrader
MUQWISHI
@RedKTrader, I appreciate your support.
JWCaesar
This is really nice. Thank you. Is it in any way possible to apply indicators to the index? Moving averages, for example? It doesn't seem to work when I try.
MUQWISHI
@JWCaesar, I believe it's possible by using an indicator on another indicator, such as a moving average. However, this approach is limited and may not cover everything.
JWCaesar
@MUQWISHI, great! Thank you for the response. :-)
Roncs7
@MUQWISHI First of all thank you for this great work.
My request, is it possible to have equal weight for all stocks in this custom index?

If possible, that would be great addition.

Thank you again!
MUQWISHI
@Roncs7, As it is now, it is not possible to customize the weight. I'll consider working on that for the next project. Thanks
PineCoders
This publication is now featured in our Editors' Picks: tradingview.com/scripts/editors-picks/
Mais