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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.