OPEN-SOURCE SCRIPT
Mag7 + SPY Multi-Decade Seasonality

📊 Overview
The Mag7 + SPY Seasonal Dashboard tracks historical monthly seasonality across the Magnificent 7 (AAPL, MSFT, AMZN, NVDA, GOOGL, META, TSLA) and the SPY benchmark.
It dynamically pulls monthly timeframe data (1M) for the current calendar month and calculates multi-period historical metrics over 10-Year and 20-Year lookback windows.
⚙️ Key Tracked Metrics:
- Avg Return (Avg): Average historical percentage return for the current calendar month.
- Win Rate (Pos%): Percentage of historical years where the current month closed positive.
- Volatility (StDev): Standard deviation of historical monthly returns for dispersion analysis.
- Institutional BIAS:
🟢 BULLISH: Pos% (10Y) $\ge$ 70% AND Pos% (20Y) $\ge$ 60%.
🔴 BEARISH: Pos% (10Y) $\le$ 40% OR Pos% (20Y) $\le$ 40%.
⚪ NEUTRAL: Mixed or balanced historical performance.
🎯 How to Use:
- Apply the indicator overlay to any chart (the dashboard uses fixed 1M security requests, so chart timeframe won't alter the table).
- Scan the BIAS column for strong cross-period alignment between the 10-year and 20-year windows.
- Combine directional seasonal bias with technical market structure and intraday execution triggers.
The Mag7 + SPY Seasonal Dashboard tracks historical monthly seasonality across the Magnificent 7 (AAPL, MSFT, AMZN, NVDA, GOOGL, META, TSLA) and the SPY benchmark.
It dynamically pulls monthly timeframe data (1M) for the current calendar month and calculates multi-period historical metrics over 10-Year and 20-Year lookback windows.
⚙️ Key Tracked Metrics:
- Avg Return (Avg): Average historical percentage return for the current calendar month.
- Win Rate (Pos%): Percentage of historical years where the current month closed positive.
- Volatility (StDev): Standard deviation of historical monthly returns for dispersion analysis.
- Institutional BIAS:
🟢 BULLISH: Pos% (10Y) $\ge$ 70% AND Pos% (20Y) $\ge$ 60%.
🔴 BEARISH: Pos% (10Y) $\le$ 40% OR Pos% (20Y) $\le$ 40%.
⚪ NEUTRAL: Mixed or balanced historical performance.
🎯 How to Use:
- Apply the indicator overlay to any chart (the dashboard uses fixed 1M security requests, so chart timeframe won't alter the table).
- Scan the BIAS column for strong cross-period alignment between the 10-year and 20-year windows.
- Combine directional seasonal bias with technical market structure and intraday execution triggers.
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.