OPEN-SOURCE SCRIPT
Updated Top12/Bottom88 Weighted Ratio

I multiplied the price of each of the top QQQ holdings by their percentage weight, and the bottom 88 holdings for a total of 100. I divide the top 12 weighted price by the bottom 88 weighted price. So I can see when money is flowing in and out of the megacaps. It needs to be updated every quarter, which I may need to do now....
Release Notes
Updating the MegaCap Ratio indicatorOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.