OPEN-SOURCE SCRIPT
Interactive Compound Interest Projector

This indicator is an interactive tool designed for long-term investors and analysts who want to compare an asset's performance against a theoretical compound interest growth curve.
Unlike static tools, this script utilizes the Interactive Anchor feature. This allows you to click on any specific point on the chart (e.g., a market bottom, a specific entry date, or a previous all-time high) to serve as the starting point ("Principal") for the projection.
How to use
Add the indicator to your chart.
Important: Because confirm=true is enabled, the script will wait for you to click on the chart. Click on the specific candle you want to use as the "Start Date".
The Yellow Line will appear starting from that candle.
Open the indicator settings to adjust:
Annual Interest Rate: (Default 6.0%).
Project until Year: (Default 2050).
Use this to visualize if an asset is "beating" a standard benchmark (like a 10% S&P500 average or a 4% risk-free rate) from a specific moment in time.
Disclaimer: This tool is for educational and comparative analysis purposes only and does not guarantee future results.
Unlike static tools, this script utilizes the Interactive Anchor feature. This allows you to click on any specific point on the chart (e.g., a market bottom, a specific entry date, or a previous all-time high) to serve as the starting point ("Principal") for the projection.
How to use
Add the indicator to your chart.
Important: Because confirm=true is enabled, the script will wait for you to click on the chart. Click on the specific candle you want to use as the "Start Date".
The Yellow Line will appear starting from that candle.
Open the indicator settings to adjust:
Annual Interest Rate: (Default 6.0%).
Project until Year: (Default 2050).
Use this to visualize if an asset is "beating" a standard benchmark (like a 10% S&P500 average or a 4% risk-free rate) from a specific moment in time.
Disclaimer: This tool is for educational and comparative analysis purposes only and does not guarantee future results.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.