Inflation adjusted "if had had invested for X years" chart

The purpose of this chart is to investigate how long you need to invest in the DJIA to overcome the noise created by fluctuations in the market. What you are seeing is an inflation adjusted chart showing your yield per year if you had invested for 20,10 and 5 years respectively. It seems like 20 year investments usually show pretty good returns but not 100% of the time and past performance is not a promise of future results.

The formula I used for yield per year is "yield / (# of years)". This does not give you the compound interest rate, for that you need 100 * ((yield / 100)^(1 / (# of years)) - 1), I don't know how to take the nth root of a number with Tradingview's scripting language if one of you knows please enlighten me.

This is a conversion chart made with excel. Example when the 20 year chart says 30 it really means 600% gain over 20 years which is 7Xing your investment, this is a compound interest rate of 10.22%

Link to chart ---> https://i.gyazo.com/b23a48ee969ec2b420ff...

Disclaimer: This is for educational purposes only, this is not financial advice.
Comment: Link to a more useful chart showing tighter intervals:
---> https://i.gyazo.com/156c851281c12fbf126d...
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out