Market Capitalization

Optuma Forums Optuma General Discussion Market Capitalization

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #66381
    • Topics: 109
    • Replies: 139
    • Posts: 248

    Hi Darren,

    Thanks for the chart on market capitalizations on Twitter ( and your forum post (

    Regarding market capitalization, I have a question about the stock weights in the S&P 500 and Nasdaq 100.

    Is it possible to use the “DATAFIELD” function to calculate the percentage weighting of the market capitalization of each individual stock in the S&P 500 and Nasdaq 100 or at least for some of them?

    It should be possible to display the current market capitalization percentage weights in the form of a watchlist column as well as a chart showing the history of the market capitalization weights.

    If this is possible, please post the scripts in your Twitter forum post ( so that all the information is in one place.

    I did not want to post this post in your Twitter forum topic so that the Twitter forum post is a “clean” Optuma topic.

    Thank you Darren for your fabulous work.

    Best wishes,

    • 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):

    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:

    The final set up would look like this:


    • This reply was modified 1 month ago by Matthew.
    1 user thanked author for this post.
    • Topics: 67
    • Replies: 697
    • Posts: 764

    Hi Thomas,

    Here’s an example of importing the weights in a .csv file eg for the SPDR Consumer Discretionary ETF ($XLY) from the Sate Street ETF website:

    The file would need to be formatted to include just the ticker and weight columns, and then imported as an External Data Field:

    Current XLY weights attached, but the file would need to be updated manually and then reloaded:


    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest