OPEN-SOURCE SCRIPT
MA 3:1 & CZs

This is the script that finds Consolidation Zones in Real Time accompanied by Three Moving Averages (20-50-200).
How does it work?
-The script finds the highest/lowest bars using "Loopback Period".
-Then calculate the address.
-Using direction and high/low bar information, calculate Consolidation Zones in real time.
-If the length of the consolidation area is equal to or greater than the minimum length defined by the user, this area is displayed as Consolidation Zone.
-Then, the Consolidation Zone is automatically extended if there is no rupture.
If you increase the loopback length, you will get larger Consolidation Zones.
The Consolidation Zones allow us to operate within said Zones, becoming independent of the instability of the chart outside said Zones.
We can set a Resistance (green arrow) at the Support of the next higher Zone and a Support (red arrow) at the Resistance of the lower Zone.
How does it work?
-The script finds the highest/lowest bars using "Loopback Period".
-Then calculate the address.
-Using direction and high/low bar information, calculate Consolidation Zones in real time.
-If the length of the consolidation area is equal to or greater than the minimum length defined by the user, this area is displayed as Consolidation Zone.
-Then, the Consolidation Zone is automatically extended if there is no rupture.
If you increase the loopback length, you will get larger Consolidation Zones.
The Consolidation Zones allow us to operate within said Zones, becoming independent of the instability of the chart outside said Zones.
We can set a Resistance (green arrow) at the Support of the next higher Zone and a Support (red arrow) at the Resistance of the lower Zone.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.