Contraction and Expansion Plotter

Volatility , Contraction, and Expansion Plotter
This indicator is based on the contraction, expansion, and trend phases concept.
I wrote this indicator and optimized it to be user-friendly and show the best value levels in various different timeframes.
The script itself uses Average True Range , WMAs, RSI , and volatility to determine contraction zones and possible expansions.
The contraction phase is the first phase of the market. The script will automatically plot the box, which is the contraction. This is the phase that traders should avoid trading because the value line has yet to be formed. You don't know if the trade will violently go up or down since it is in the next phase.
The expansion is the next phase where high volume and volatility occur. I decided to use RSI crossovers and crossunders to help find the expansion zones since it can be pretty difficult to get a program to recognize them and also since this is the phase where accumulation by the big liquidity players, like the institutions, starts.
The trend phase isn't yet implemented into the script, but basically is when these big liquidity players start taking profits. This is the part where it tends to go back to the value line , even if it is bullish or bearish .
This concept is extremely versatile and can be used to create various different strategies, from long-term strategies to scalping strategies. You can combine this with indicators and not be lost.
To be clear, the boxes are the contraction mapped and the zones you should always avoid trading in.
On timeframes that are hourly and above, the value lines will automatically be plotted by the script.
Some Customization Features:
- You can decide different line styles like dotted, solid, dashed, or arrows.
- You can also customize the width of the value line but the recommended widths is either 1 or 2.
- On default, the value lines retrieved by the contractions will be disabled on timeframes lower than the hourly or daily because it can become unorganized but the option
to enable lower timeframe value lines have been added now. - The value lines will automatically extend until another contraction is present
- Option to choose if you want filtered contractions or unfiltered contractions.
You can also customize or add custom timeframes to see what's happening in those timeframes.
I got the idea for the UI design of this screener from FVG Screener (Nephew_Sam__)
I got help and ideas for the consolidation part from "LonesomeTheBlue" Consolidation script. You can also enable or disable in the settings.
If the market is in an contraction phase like usual it will be yellow.
If the market is in a expansion phase, the candle color will be blue.
If the market is in a bullish trend phase the candle will be green and if bearish it will be red.
You can disable the colored bar candles and also change the color and change the Trend EMA in the settings.
- You are now able to change the top and bottom consolidation color.
- There is now a midpoint line in between the top and bottom consolidation.
- You can change the width and style of the consolidation lines.
- The midpoint can be extended.
This update was supposed to be apart of a much bigger update but that update might take a while since I need to rework the logic of a huge part of the script. (Not the contraction part)
Added consolidation top and bottom lines that will extend until the consolidation line was mitigated and a fill zone for the consolidation zones.
Everything to customize the consolidations for your preferences is in the menu. At the default the consolidations won't extend but you have the option to extend the consolidations until it is mitigated.
A new option in the script to prevent lag and calculation errors due to PineScript is the Line settings on the first part of the script. The default setting is the recommended value of 30. (For Max Lines to Show)
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente Traders_Endeavors.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Access our indicators: patreon.com/user?u=80987417
Declinazione di responsabilità
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente Traders_Endeavors.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Access our indicators: patreon.com/user?u=80987417