- Topics: 5
- Replies: 481
- Posts: 486
There are two ways you could do this. The first would be to find a source for the official weightings for the NASDAQ 100 / SP500 Constituents, then import those as EDF’s (if available on your edition): https://help.optuma.com/kb/faq.php?id=725
The other option would be to build a custom breadth code that sums all of the constituents market caps together. You can then set up a custom column in the Watchlist which references the breadth code and the current market cap value to find the current weightings.
An example of the script you could then use would be:
//Reference Market Cap Breadth Code
V1 = GETDATA(CODE=NASDAQ100 TOTAL MARKET CAP:Market Breadth) ;
//Reference Current Market Cap Value
V2 = DATAFIELD(FEED=FD, FIELD=MarketCapitalization, LATESTONLY=True);
V2 / V1
The final set up would look like this:
- This reply was modified 1 month ago by Matthew.