INVITE-ONLY SCRIPT
SP500 Droite CAGR Auto (bandes + label dynamique)

This indicator plots the long-term Compound Annual Growth Rate (CAGR) line of the S&P500 from a chosen start date (default: 1973).
It helps visualize whether the index is currently overvalued or undervalued compared to its historical growth trend.
Key Features:
CAGR Trendline (red): straight line connecting the start price (e.g. 1973 = 111.05 points) to today’s price based on compounded average growth.
Observed vs Fixed Mode:
Observed → CAGR automatically calculated from start date to the present.
Fixed → user-defined CAGR (e.g. 8.3%/year).
±20% and ±10% Bands (toggle on/off):
Provide tolerance zones around the long-term trend.
Useful to identify over/undervaluation ranges.
Customizable colors: for trendline and both bands.
Dynamic label (at the latest bar):
Displays the CAGR used (% per year).
Shows current deviation of the S&P500 from the CAGR line.
Gives a clear reading:
✅ “SP500 in the central band”
🟧 “SP500 between ±10% and ±20%”
🔴 “SP500 > +20% (overvalued)”
🟩 “SP500 < -20% (undervalued)”
Purpose:
This tool is designed for long-term investors. It helps to:
Spot periods of structural overvaluation (excessive bull markets).
Identify historical undervaluation phases (long-term opportunities).
Serve as an objective benchmark against short-term market noise.
⚠️ Tip: use the indicator with a logarithmic scale for correct visualization of compounded growth (the CAGR line appears straight on a log chart).
It helps visualize whether the index is currently overvalued or undervalued compared to its historical growth trend.
Key Features:
CAGR Trendline (red): straight line connecting the start price (e.g. 1973 = 111.05 points) to today’s price based on compounded average growth.
Observed vs Fixed Mode:
Observed → CAGR automatically calculated from start date to the present.
Fixed → user-defined CAGR (e.g. 8.3%/year).
±20% and ±10% Bands (toggle on/off):
Provide tolerance zones around the long-term trend.
Useful to identify over/undervaluation ranges.
Customizable colors: for trendline and both bands.
Dynamic label (at the latest bar):
Displays the CAGR used (% per year).
Shows current deviation of the S&P500 from the CAGR line.
Gives a clear reading:
✅ “SP500 in the central band”
🟧 “SP500 between ±10% and ±20%”
🔴 “SP500 > +20% (overvalued)”
🟩 “SP500 < -20% (undervalued)”
Purpose:
This tool is designed for long-term investors. It helps to:
Spot periods of structural overvaluation (excessive bull markets).
Identify historical undervaluation phases (long-term opportunities).
Serve as an objective benchmark against short-term market noise.
⚠️ Tip: use the indicator with a logarithmic scale for correct visualization of compounded growth (the CAGR line appears straight on a log chart).
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡hamouleh。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Purpose:
This tool is designed for long-term investors. It helps to:
Spot periods of structural overvaluation (excessive bull markets).
Identify historical undervaluation phases (long-term opportunities).
Serve as an objective benchmark against short-
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者批准的使用者才能訪問此腳本。您需要申請並獲得使用權限。該權限通常在付款後授予。如欲了解更多詳情,請依照以下作者的說明操作,或直接聯絡hamouleh。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Purpose:
This tool is designed for long-term investors. It helps to:
Spot periods of structural overvaluation (excessive bull markets).
Identify historical undervaluation phases (long-term opportunities).
Serve as an objective benchmark against short-
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。