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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。