OPEN-SOURCE SCRIPT
MACD Range Detector by Simonezzi

Key Features:
Range Detection: Identifies sideways markets by analyzing MACD flatness, histogram behavior, and MACD-Signal convergence
Visual Alerts: Colors the background orange during ranging periods, blue during trends
Labels: Marks when the market enters/exits ranging conditions
Statistics Table: Shows real-time metrics (top-right corner)
Built-in Alerts: Set alerts for range detection and trend resumption
MACD Panel: Optional display of MACD components with range highlighting
The indicator works best on higher timeframes (1H, 4H, Daily) for more reliable range detection. Orange background = ranging market, Blue labels = trend resuming.
Range Detection: Identifies sideways markets by analyzing MACD flatness, histogram behavior, and MACD-Signal convergence
Visual Alerts: Colors the background orange during ranging periods, blue during trends
Labels: Marks when the market enters/exits ranging conditions
Statistics Table: Shows real-time metrics (top-right corner)
Built-in Alerts: Set alerts for range detection and trend resumption
MACD Panel: Optional display of MACD components with range highlighting
The indicator works best on higher timeframes (1H, 4H, Daily) for more reliable range detection. Orange background = ranging market, Blue labels = trend resuming.
开源脚本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
开源脚本
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
免责声明
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.