OPEN-SOURCE SCRIPT

Buffett Indicator [Bitcoin Machine]

By Bitcoin_Machine
This is the Warren Buffett Indicator, the total market cap relative to the US gross domestic product (GDP). It is also called "Market Cap to GDP Indicator". For the market cap typically the Wilshire 5000 total market cap is used, which is representing the value of all stocks traded in the United States. Tradingview just provides the Wilshire W4500. We can calculate the W5000 by adding the S&P500 to the W4500.

Market Cap to GDP is a long-term valuation indicator and as pointed by Warren Buffett, the indicator is “probably the best single measure of where valuations stand at any given moment.” It used as a broad way of assessing whether the country’s stock market is overvalued or undervalued, compared to a historical average.

Remark: The Wilshire W4500 and the S&P500 are indices and denoted in "index points" (not USD). The Original Buffett Indicator is using market cap in US-Dollar. So the right scale of the indicator is different to the original one.
buffettGDPS&P 500 (SPX500)stocksignalsTrend AnalysisVolatilitywarrenbuffetwilshirewilshire4500
Bitcoin_Machine

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer