SP500 Droite CAGR Auto (bandes + label dynamique)

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 ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ hamouleh โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา