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.
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.
Trading indicators:
tradingview.com/u/Options360/
tradingview.com/u/Options360/
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.
Trading indicators:
tradingview.com/u/Options360/
tradingview.com/u/Options360/
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.