OPEN-SOURCE SCRIPT

MGC SMA Gravity + Extreme Stretch + Joe Dirt Scanner

325
MGC SMA Gravity + Extreme Stretch + Joe Dirt Scanner is a multi-timeframe moving average confluence tool built to help traders identify support/resistance clusters, mean reversion extremes, and “gravity zones” where price often reacts.

This indicator plots a layered SMA ladder using:

5-minute 20 SMA and 100 SMA
15-minute 20 SMA and 100 SMA
1-hour 20 SMA and 100 SMA
4-hour 20 SMA
Core Features

SMA Gravity Cluster Heat Map
Detects when multiple SMAs compress within a user-defined tick distance, creating a potential “gravity zone” where price may be drawn, stall, bounce, or reverse.

Dynamic heat map shows cluster strength
Color-coded confluence zones:
Yellow = 3 SMA cluster
Orange = 4 SMA cluster
Red = 5 SMA cluster
Purple = 6+ SMA cluster

A dashed “magnet line” marks the center of the cluster as a potential mean reversion target.

Multi-Timeframe SMA Ladder
Projects higher-timeframe SMA levels directly onto the active chart using horizontal rays and labels, creating a visual map of stacked support and resistance.

Extreme Stretch Scanner (Mean Reversion Signals)
Measures price distance from the average of all tracked SMAs.
When price extends beyond a user-defined threshold:

OB = Extreme Overbought condition
OS = Extreme Oversold condition

Designed to help identify exhaustion moves where price may revert back toward the SMA mean.

Customizable Inputs

Cluster distance in ticks
Minimum SMA spacing filter
Extreme stretch threshold
Heat map on/off
Heat map legend on/off

Alerts Included

Extreme Overbought alert
Extreme Oversold alert
Intended Use

This tool is designed for:

Mean reversion traders
Futures traders (especially MGC/GC)
Confluence-based support/resistance analysis
Identifying “stretched” conditions away from equilibrium
Spotting areas where multiple moving averages act as a price magnet

This is not a standalone buy/sell system, but a decision-support tool meant to improve context, location awareness, and timing around SMA structure.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.