Supply and Demand w/ Higher Timeframe and Hidden Zones

This indicator draws Supply and Demand zones using the common methodology of a basing candle followed by a drop/rally candle. The indicator user inputs allow you to configure the parameters for zone identification in two ways. First, by increasing the intensity of the drop/rally candle. Second, by increasing the number of candles that should be grouped to form a base and it's following drop/rally. This allows you to chart zones from higher timeframes and zones that may not be identifiable on the higher timeframes (aka Hidden Zones).
For example, when viewing a chart on the 5min timeframe the "Number of Candles" user input can be set according to the higher timeframe that you want to use to draw zones.
Setting "Number of Candles" to 3 draws zones from the 15min timeframe. (5min * 3 candles = 15min)
Setting "Number of Candles" to 6 draws zones from the 30min timeframe. (5min * 6 candles = 30min)
This functionality also allows for the identification of hidden zones because the first candle in a set on the lower timeframe does not have to align with the candles on the higher timeframe.
█ CONCEPTS
Intensity
For demand zones, the distance between the close of a rally candle and the high of the basing candle is what this indicator refers to as "Intensity".
For supply zones, it is the distance between the close of the drop candle and the low of the basing candle.
Higher Timeframe Zones
This indicator finds higher timeframe zones through the use of the "Number of Candles" user input.
The higher timeframe used will be the product of the chart's current timeframe and the value set for "Number of Candles".
Hidden Zones
A hidden zone is a zone from a higher timeframe that can not be seen when charting with that timeframe.
It can only be found on lower timeframes by grouping candles together to emulate higher timeframe candles.
█ USER INPUTS
Lookback
The Number of Bars back used to find zones.
Zone Configuration
• Drop/Rally Intensity - Increase this to require the drop/rally candle to make a greater move from the basing candle to qualify as a zone.
• Number of Candles - Increase this to draw zones from higher timeframes. The timeframe used will be the product of the chart's current timeframe and the value selected.
Zone Drawing Options
• Include Broken Zones - When unchecked zones that have been broken through will not be drawn.
• Demand Fill/Border - Allows customization of the color and transparency of demand zones.
• Supply Fill/Border - Allows customization of the color and transparency of supply zones.
█ TIPS
1 — Use the indicator multiple times on the chart with the "Number of Candles" input set to different values to have zones from multiple higher timeframes on the chart.
2 — Drop/Rally Intensity set to 0 is not recommended. It will lead to very weak zones being drawn.
Adds new User Inputs for "Zone Overlap Settings". This reduces the amount of overlapping zones by letting you choose to keep just the Largest, Smallest, or Both zones. Also allows you to toggle on/off all the middle zones between largest and smallest.
Changes the default values.
Changes an internal variable for lookback to allow Basic (Free) TradingView accounts to use the indicator without getting a lookback error.
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 ScriptedTrading.
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.
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 ScriptedTrading.
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.