OPEN-SOURCE SCRIPT
Proxy MA Levels

Proxy MA Levels
Multi-timeframe moving average proxy system with tolerance zones, touch alerts, and cycle extension tracking for SPY.
---
What it does:
Proxy MA Levels brings higher timeframe moving averages down to any chart without timeframe switching. Instead of manually jumping to Weekly or Daily charts, this indicator calculates precise proxies of the most important institutional moving averages and displays them directly on your current timeframe.
Three core levels:
- W EMA8 — Weekly 8-period EMA proxy (1H EMA 650 / Daily EMA 40). The primary short-term trend anchor used by institutional traders
- W EMA20 — Weekly 20-period EMA proxy (1H EMA 1600 / Daily EMA 100). Key medium-term support and resistance
- D SMMA10 — Daily smoothed 10-period MA proxy (1H EMA 300 / Daily RMA 10). Precise daily trend baseline
Tolerance zones:
Configurable percentage bands around W EMA8 and W EMA20 highlight approach zones before price actually touches the level — giving you early warning before the reaction happens.
Cycle Extension:
Tracks the last cross of price through W EMA20, marks the anchor price level with a horizontal line, and displays the percentage extension and days elapsed since the cross. Useful for identifying overextended moves and mean reversion setups.
---
Key features:
- Automatic TF detection — switches between 1H and Daily proxies depending on your chart timeframe
- Anti-spam pivot engine — alerts fire once per confirmed pivot leg, not on every bar
- Individual and master alerts for Near / Touch / Over / Under each level
- Fully customizable colors, line widths, and label visibility
- Works on all intraday and daily timeframes
---
Alert types:
- Near W EMA8 / W EMA20 — price approaching within tolerance zone
- Touch — price has intersected the level
- Over / Under — price has broken through tolerance zone after a touch
---
How to use:
- Watch for Touch alerts as potential entry or exit signals
- Near alerts give you preparation time before the level is reached
- Over/Under after a touch confirms breakout or rejection
- Cycle Extension helps identify when a trend leg is statistically stretched and due for a pullback
Multi-timeframe moving average proxy system with tolerance zones, touch alerts, and cycle extension tracking for SPY.
---
What it does:
Proxy MA Levels brings higher timeframe moving averages down to any chart without timeframe switching. Instead of manually jumping to Weekly or Daily charts, this indicator calculates precise proxies of the most important institutional moving averages and displays them directly on your current timeframe.
Three core levels:
- W EMA8 — Weekly 8-period EMA proxy (1H EMA 650 / Daily EMA 40). The primary short-term trend anchor used by institutional traders
- W EMA20 — Weekly 20-period EMA proxy (1H EMA 1600 / Daily EMA 100). Key medium-term support and resistance
- D SMMA10 — Daily smoothed 10-period MA proxy (1H EMA 300 / Daily RMA 10). Precise daily trend baseline
Tolerance zones:
Configurable percentage bands around W EMA8 and W EMA20 highlight approach zones before price actually touches the level — giving you early warning before the reaction happens.
Cycle Extension:
Tracks the last cross of price through W EMA20, marks the anchor price level with a horizontal line, and displays the percentage extension and days elapsed since the cross. Useful for identifying overextended moves and mean reversion setups.
---
Key features:
- Automatic TF detection — switches between 1H and Daily proxies depending on your chart timeframe
- Anti-spam pivot engine — alerts fire once per confirmed pivot leg, not on every bar
- Individual and master alerts for Near / Touch / Over / Under each level
- Fully customizable colors, line widths, and label visibility
- Works on all intraday and daily timeframes
---
Alert types:
- Near W EMA8 / W EMA20 — price approaching within tolerance zone
- Touch — price has intersected the level
- Over / Under — price has broken through tolerance zone after a touch
---
How to use:
- Watch for Touch alerts as potential entry or exit signals
- Near alerts give you preparation time before the level is reached
- Over/Under after a touch confirms breakout or rejection
- Cycle Extension helps identify when a trend leg is statistically stretched and due for a pullback
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.