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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
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.