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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。