OPEN-SOURCE SCRIPT
MGC SMA Gravity + Extreme Stretch + Joe Dirt Scanner

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.
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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。