OPEN-SOURCE SCRIPT
Cumulative Rate of Inflation Calculator

Overview
The Cumulative Rate of Inflation Calculator (CROIC) indicator visualizes the impact of inflation on purchasing power. By anchoring to the live market price, it adjusts historical prices to reflect what they would be worth in "today’s dollars." The orange line on your chart represents the inflation-adjusted value, showing how much nominal price growth is actually just a result of currency devaluation.
How to Use
Interpreting the Orange Line: * If the orange line is above your candle price, the asset has not kept pace with the set inflation rate (purchasing power has decreased).
If the orange line is below your candle price, the asset has outperformed the inflation rate (purchasing power has increased).
Adjusting Inflation Rates: The cumulative rate of inflation the past 100 years is 1793.4% or 2.98%/yr avg, at the time of this post. You can change the Annual Inflation Rate (%) in the indicator settings (gear icon) to test different economic scenarios (e.g., set to 2.0 for target fed rates or higher to see aggressive devaluation).
Universality: This indicator works on any asset class (Stocks, Crypto, Forex, Metals) because it automatically calculates time relative to the live price.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Trading indicators:
tradingview.com/u/Options360/
tradingview.com/u/Options360/
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Trading indicators:
tradingview.com/u/Options360/
tradingview.com/u/Options360/
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。