ScriptedTrading

Supply and Demand w/ Higher Timeframe and Hidden Zones

█ OVERVIEW

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.
Release Notes:
Update includes 3 changes.
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.
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact ScriptedTrading for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Author's instructions

Purchase access through the Scripted Trading site: www.scriptedtrading.com

Want to use this script on a chart?

Warning: please read before requesting access.