index builder. StockSharphttps://stocksharp.com/handlers/atom.ashx?category=tag&id=index builder&type=articlesCopyright @ StockSharp Platform LLC 2010 - 20242024-03-29T10:58:00Zhttps://stocksharp.com/images/logo.pnghttps://stocksharp.com/topic/24520/Let's get to know more about the index. And the forms for calculating the general stock index.2023-03-23T13:07:07Z2023-03-23T14:39:11ZPannipahttps://stocksharp.com/users/164332/info@stocksharp.com<div align="center"><a href='https://stocksharp.com/file/141795/ahead-of-market-10-things-that-will-decide-stock-action-on-monday_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141795/ahead-of-market-10-things-that-will-decide-stock-action-on-monday_jpg/?size=500x500" alt="ahead-of-market-10-things-that-will-decide-stock-action-on-monday.jpg" title="ahead-of-market-10-things-that-will-decide-stock-action-on-monday.jpg" /></a></div><br /><br />You may have heard of the NASDAQ 100, Nikkei 225 and Dow Jones stock indices during the morning and evening economic news of the day. You might wonder What is a stock index? How is it important? How can you benefit from these indices? This article has the answer for you.<br /><br />💥<b>What is a stock index?</b>💥<br /><br />Index (Index) is a measure resulting from statistical calculations. To track changes in what you want to measure or as indicators of various interesting situations such as manufacturing sector index, employment index, service sector index, etc.<br /><br />Stock Index is a number that reflects the price movement of the underlying stock, such as the SET High Dividend 30 Index that reflects the price of 30 companies with high market value. High liquidity and high dividends.<br /><br />The key criteria for stock indices are: Investable and transparent There are mutual funds that are linked to various indexes such as the SET50 and SET100, which are called index funds. Where the difference between the performance of the index fund and the underlying index is called the Tracking Error value.<br /><br />The lower the tracking error value, the more efficiently the index fund replicates the underlying index than the higher tracking error index fund.<br /><br />💥<b>How to calculate stock index</b>💥<br /><br />We can divide the stock index calculation into 3 forms.<br /><br />👉 Market capitalization-weighted stock indices (Capitalization-weighted Index) is a large stock with a high market cap (market value) has a high influence on the index's dynamics. For example, the S&P 500 (US) and FTSE 100 (UK).<br /><br /> ☆ For example, Index A has 100 shares of A at 4 $ and 200 shares of B at 5 $.<br /><br />Market Cap is calculated from share price x total number of shares.<br /><br />Stock A = 4*100 = 400<br />Stock B = 5*200 = 1,000<br />Total Market Cap of Index A is 400+1,000 = 1,400<br /><br />The ratio of Stocks A and B to Index A by market capitalization is calculated as the share's market cap divided by the total market cap of the index. then multiply by 100.<br /><br />Stock A = (400/1,400) x 100 = 28.57%<br />Stock B = (1,000/1,400) x 100 = 71.43%<br />Stock B has a higher percentage than Stock A in Index A.<br /><br />👉 Market-weighted stock indices (Price-weighted Index) is that high-priced stocks trading have a greater proportion than low-priced stocks trading, for example, Dow Jones (USA) and Nikkei 225 (Japan).<br /><br /> ☆ Example Index A has stock A price 5 $, stock B price 10 $ and stock C price 15 $.<br /><br />Stock A = [5/(5+10+15)] x 100 = 16.67%<br />Stock B = [10/(5+10+15)] x 100 = 33.33%<br />Stock C = [15/(5+10+15)] x 100 = 50.00%<br />Stock C has the largest share in Index A, followed by Stock B and Stock A.<br /><br />👉 Equal Weighted Stock Indices (Equal-weighted Index) Simply put, every stock has the same proportion. Which diversifies risk better than market capitalization-weighted stock indices But such an index can change more quickly and suddenly.<br /><br />You can also calculate stock indices of your particular interest from the available platforms and websites. <a href="https://stocksharp.com/topic/24498/custom-index-and-how-can-use-in-trading/" title="https://stocksharp.com/topic/24498/custom-index-and-how-can-use-in-trading/">You can visit how to builders indexes yourself using</a> <a href="https://stocksharp.com/store/market-data-downloader/" title="Hydra free market data downloader and database">Hydra</a> here.<br /><br /><br />💥<b>The Top Popular Index</b>💥<br /><br />⚡️<b>The S&P 500 (Standard & Poor's 500)</b> is a market capitalization-weighted stock index. It measures the performance of 500 companies listed on the US stock exchange. The S&P 500 is one of the most traded indices and one of the performance indicators of the US stock market. And the state of the US economy as a whole. Examples of companies in the S&P 500 include Apple, Microsoft, Amazon, Berkshire Hathaway, Visa, etc.<br /><br />⚡️ <b>Dow Jones or Dow Jones Industrial Index</b> is a market weighted stock index. It measures the performance of stocks of 30 large companies listed on the US stock exchange such as Microsoft, Coca Cola, Apple, McDonald, etc. The Dow Jones Index is produced by S&P Dow Jones Indices.<br /><br />⚡️ <b>NASDAQ 100</b> First published on January 31, 1985, the NASDAQ 100 (NDX) is a stock index of 100 large companies. (not a finance company) listed on the NASDAQ Stock Exchange It consists of the 100 largest domestic and international non-financial companies listed on the NASDAQ Stock Exchange by market capitalization. ), Amazon (AMZN), Microsoft (MSFT), and Alphabet (GOOG, GOOGL).<br /><br />⚡️ <b>Nikkei 225</b> is a daily index measuring the performance of 225 leading Japanese companies listed on the Tokyo Stock Exchange by the Nikkei newspaper since September 7, 1950, 70 years ago. An important temple indicating the condition of the Japanese stock market. It also represents the economic outlook of Japan from after World War II to the present.<br /><br />⚡️ <b>FTSE 100</b> is a stock index of 100 companies listed on the London Stock Exchange with the highest market capitalization. With the company's shares in the FTSE 100 index representing 81% of the total market capitalization of the London Stock Exchange. The FTSE 100 Index is produced by the FTSE Group, a subsidiary of the London Stock Exchange. Examples of companies in the FTSE 100 index are Tesco, Unilever, Barclays, etc.<br /><br />⚡️<b>The DAX 30</b> is a market capitalization-weighted stock index of 30 German blue chip companies listed on the Frankfurt Stock Exchange, which is equivalent to the US Dow Jones Index. It fully reflects the real picture of the German economy. The DAX 30 index was first published on July 1, 1988. Examples of companies in the DAX 30 index are BMW, Adidas, Bayer, Deutsch Bank, etc.https://stocksharp.com/topic/24498/Custom index and how can use in trading2023-03-11T16:46:37Z2023-03-14T09:55:41ZPannipahttps://stocksharp.com/users/164332/info@stocksharp.com<div align="center"><a href='https://stocksharp.com/file/141632/index_png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141632/index_png/?size=500x500" alt="INDEX.png" title="INDEX.png" /></a></div><br /><ul><br /><li>In addition to price and volume indicators, there are some indicators in technical analysis that can be used to display general market conditions. To make this possible, traders usually prefer to use indices.<br /><br /><li>Exchanges usually provide their own built-in indices such as S&P or DAX. But what to do when you need to use your own calculation only with the instruments of interest to us? Or use some market (for example, cryptocurrencies) where there are no ready-made indices.<br /><br /><li>In the StockSharp platform, we can create any kind of index from downloaded market data using our own formula. So we can determine the direction of the market as a whole.<br /><br /><li>The index as a method will allow us to determine the direction of movement of this for all the instruments that are included in it. For example, let's say we want to create an index that compares Apple and Amazon.<br /><br /><li>When we create an index in S# (by using S#.Data index builder), we can see the direction of the trend from the data of the index on the chart. It will show that during this period, Apple is stronger than Amazon if the chart goes up. But if the chart shows a downtrend, then it means that Apple is weaker than Amazon. If the chart shows a flat, it means that both instruments are equivalent at a distance<br /><br /><li>Below we will look at the step-by-step process of how to build index using a simple example, as well as using mathematical functions that allow you to calculate complex trading index.</ul><br /><br /><div align="center"><iframe width="640" height="390" src="//www.youtube.com/embed/WxmGDvqRrWw" frameborder="0" allowfullscreen></iframe></div><br /><br /><br />🤖 <b>Let's see how to find Index from all 3 companies: Apple, Amazon and Google.</b><br /><br /><a href='https://stocksharp.com/file/141633/01__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141633/01__png/?size=500x500" alt="01_.png" title="01_.png" /></a><br />👉 After we downloaded Market Data of Instruments that we need to create the index in to <a href="https://stocksharp.com/store/market-data-downloader/" title="Hydra free market data downloader and database">Hydra</a> already.<br />👉 For example I downloaded Apple, Amazon and Google for creating index.<br />👉 Click on the <b>Securities</b> icon.<br />👉 On this page will show all Instruments we already downloaded Market Data.<br />👉 Including the Instruments we want to create <b>INDEX</b> are Apple, Amazon and Google.<br />👉 Click on <b>Plus sign</b> below.<br /><br /><a href='https://stocksharp.com/file/141634/02__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141634/02__png/?size=500x500" alt="02_.png" title="02_.png" /></a><br />👉 Select <b>add INDEX</b>.<br /><br /><a href='https://stocksharp.com/file/141635/03__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141635/03__png/?size=500x500" alt="03_.png" title="03_.png" /></a><br />👉 Create the name of the INDEX and put it on the <b>ID tab</b>.<br />👉 Put the formula as an example <b>AAPL@NMS/AMZN@NMS</b>.<br />👉 From that formula is an Apple device from Amazon.<br />👉 And then Click <b>verify</b> formula.<br /><br /><a href='https://stocksharp.com/file/141636/04__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141636/04__png/?size=500x500" alt="04_.png" title="04_.png" /></a><br />👉 Click <b>OK</b>, and <b>OK</b> again.<br /><br /><a href='https://stocksharp.com/file/141637/05__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141637/05__png/?size=500x500" alt="05_.png" title="05_.png" /></a><br />👉 The INDEX we just created will show in all the Instruments Market Data downloaded but that INDEX still does not have Market Data because it is just an INDEX.<br />👉 Click on the <b>Candle</b> icon on the top.<br /><br /><a href='https://stocksharp.com/file/141638/06__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141638/06__png/?size=500x500" alt="06_.png" title="06_.png" /></a><br />👉 Select <b>Timeframe and Date</b>.<br />👉 And then Click on the <b>Securities tab</b>.<br />👉 Select<b> INDEX on the left side</b> by <b>Double Click</b>.<br />👉 The <b>INDEX Instruments</b> will move to the right side.<br />👉 Click <b>OK</b>.<br /><br /><a href='https://stocksharp.com/file/141639/07__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141639/07__png/?size=500x500" alt="07_.png" title="07_.png" /></a><br />👉 On the Securities tab will change to <b>INDEX</b> we Selected.<br />👉 On the <b>Build from</b> tab Select <b>Composite elements</b>.<br /><br /><a href='https://stocksharp.com/file/141651/19__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141651/19__png/?size=500x500" alt="19_.png" title="19_.png" /></a><br />👉 Tip for that : We no need to Select Build from <b>composite elements</b> every time.<br />👉 We can <b>Click save</b> and Select <b>save build</b>. <br /><br /><ul><li>We can save our collation of these Index data without having to recalculate each time. It saves us even more time. When we save the data that we have already calculated The information will be displayed on the Market Data page, which is the real information.</ul><br /><br /><a href='https://stocksharp.com/file/141640/08__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141640/08__png/?size=500x500" alt="08_.png" title="08_.png" /></a><br />👉 Click <b>View Market Data Information</b>.<br />👉 Click <b>View Candle Chart</b>.<br /><br /><a href='https://stocksharp.com/file/141641/09__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141641/09__png/?size=500x500" alt="09_.png" title="09_.png" /></a><br />👉 This is the Candle Chart INDEX from <b>Apple Vs Amazon</b> by Timeframe we downloaded.<br />👉 We will do the same way to create <b>another INDEX</b>.<br /><br /><a href='https://stocksharp.com/file/141642/10__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141642/10__png/?size=500x500" alt="10_.png" title="10_.png" /></a><br />👉 Click Back to All <b>Securities</b>.<br />👉 Create the new name of the <b>INDEX</b> and put it on the <b>ID tab</b>.<br />👉 Put the new formula. Other an example <b>AAPL@NMS * AMZN@NMS * GOOG@NMS</b><br />👉 And then Click <b>verify</b> formula.<br />👉 Click <b>OK</b>.<br /><br /><a href='https://stocksharp.com/file/141643/11__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141643/11__png/?size=500x500" alt="11_.png" title="11_.png" /></a><br /><ul><li>For example, finding an index using a simple equation Multiply all 3 instruments together. For function to find index in <b><a href="https://stocksharp.com/store/market-data-downloader/" title="Hydra free market data downloader and database">Hydra</a></b>, put <b><span style="color:Blue">POW(AAPL@NMS * AMZN@NMS * GOOG@NMS,1m/3m)</span></b> which comes from the word Power in front.. If we Omitting <b><span style="color:Blue">m </span></b>Hydra understands that it is an integer, not a fraction. So we have to insert <b><span style="color:Blue">m</span></b> every time so Hydra understands it's a fraction and not an integer.</ul><br />👉 And then Click <b>verify</b> formula.<br />👉 Click <b>OK</b>. And <b>OK</b> again.<br /><br /><a href='https://stocksharp.com/file/141644/12__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141644/12__png/?size=500x500" alt="12_.png" title="12_.png" /></a><br />👉 Select <b>Timeframe and Date</b>.<br />👉 And then Click on the <b>Securities tab</b>.<br />👉 Select <b>INDEX on the left side</b> by <b>Double Click</b>.<br />👉 The <b>INDEX Instruments</b> will move to the right side.<br />👉 Click <b>OK</b>.<br /><br /><a href='https://stocksharp.com/file/141645/13__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141645/13__png/?size=500x500" alt="13_.png" title="13_.png" /></a><br />👉 On the Securities tab will change to <b>INDEX</b> we Selected.<br />👉 On the <b>Build from</b> tab Select <b>Composite elements</b>.<br /><br /><a href='https://stocksharp.com/file/141646/14__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141646/14__png/?size=500x500" alt="14_.png" title="14_.png" /></a><br />👉 This is the Candle Chart INDEX from <b><span style="color:Blue">POW(AAPL@NMS * AMZN@NMS * GOOG@NMS,1m/3m)</span></b> by Timeframe we downloaded.<br /><br /><ul><li>Now we can create an index of all 3 instruments in the interval we choose. You can see that the chart shows the trend direction in the market for all 3 instruments. It was only going up for a while and then something happened that caused the chart to go down significantly. At the time when the chart changes direction, we can look back at the news, events, and changes about the 3 instruments from the past at that time. And quite different from the Chart Index from Apple and Amazon, which is in the direction of only an upward trend.<br /><br /><li>When we find the index of all 3 instruments that we have calculated. And we want to compare that from the index of these 3 Instruments, what kind of trend will Apple stocks be in the market? Now we just compare the Instruments Apple with the index of the 3 instruments that we have already calculated. and see in which direction the chart will be displayed.</ul><br /><br /><a href='https://stocksharp.com/file/141647/15__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141647/15__png/?size=500x500" alt="15_.png" title="15_.png" /></a><br />👉 Create the name of the<b> INDEX</b> and put it on the <b>ID tab</b>.<br />👉 Put the formula as an example <b>AAPL@NMS/AAG@NMS</b>.<br />👉 From that formula is an <b>Apple divide from INDEX of 3 Instruments</b>.<br />👉 And then Click <b>verify</b> formula.<br />👉 Click <b>OK</b>, and <b>OK</b> again.<br /><br /><a href='https://stocksharp.com/file/141648/16__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141648/16__png/?size=500x500" alt="16_.png" title="16_.png" /></a><br />👉 Select <b>Timeframe and Date</b>.<br />👉 Click Change <b>Instrument</b>.<br />👉 Select <b>INDEX instrument</b> by <b>Double Click</b> on Instrument tab.<br />👉 Click <b>OK</b>.<br /><br /><a href='https://stocksharp.com/file/141649/17__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141649/17__png/?size=500x500" alt="17_.png" title="17_.png" /></a><br />👉 Click <b>View Market Data Information</b>.<br />👉 Click <b>View Candle Chart</b>.<br /><br /><a href='https://stocksharp.com/file/141650/18__png/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/141650/18__png/?size=500x500" alt="18_.png" title="18_.png" /></a><br />👉This is the Candle Chart INDEX from <b>Apple divided from INDEX of 3 Instruments</b> by Timeframe we downloaded.<br /><ul><br /><li>From the chart we can see that it is an uptrend. This shows us that Apple is stronger than the whole IT sector.<br /><br /><li>You can use indexes in your own trading or analysis (e.g., by exporting calculated data into other programs).<br /><br /><li>Hope this blog is interesting for you. Please comment us what you interesting to know more about S#.Data. We will try to write our next posts.<br /></ul><br /><br /><br /><br /><br />