OPEN-SOURCE SCRIPT
Updated

Dealing range

2 236
Hi all!

This indicator will show you the current dealing range. The concept of dealing range comes from the inner circle trader (ICT) and gives you a range between an established swing high and an established swing low (the length of these pivots can be changed in settings parameter Length and defaults to 5/2 (left/right)). These swing points must have taken out liquidity to be considered "established". The liquidity that must be grabbed by the swing point has to be a pivot of left length of 1 and a right length of 1.

The dealing range that's created should be used in conjunction with market structure. This could be done through scripts (maybe the Market structure script that I published (tradingview.com/script/ud6AQSm2-Market-structure/)) or manually. It's a common approach to look for long opportunities when the trend is bullish and price is currently in the discount zone of the dealing range. If the trend is bearish then short opportunities are presented when the price is currently in the premium zone of the dealing range.

The zones within the dealing range are premium and discount that are split on the 50% level of the dealing range. These zones can be split into 3 zone with a Fair price (also called Fair value) zone in between premium and discount. This makes the premium zone to be in the upper third of the dealing range, fair price in the middle third and discount in the lower third. This can be enabled in the settings through the Fair price parameter.

Enabled:
snapshot

You can choose to enable/disable the visualisation of liquidity grabs and the External liquidity available above and below the swing points that created the dealing range.

Enabled:
snapshot

Disabled:
snapshot

Enabled on a higher timeframe (will display a box of the liquidity grab price instead of a label):
snapshot

This dealing range is configurable to be created by a higher timeframe then the visible charts. Use the setting Higher timeframe to change this.

snapshot

You can force candles to be closed (for liquidity and swing points). Please note that if you use a higher timeframe then the visible charts the candles must be closed on this timeframe.

Lastly you can also change the transparency of liquidity grabs and external liquidity outside of the dealing range. Use the Transparency setting to change this (a lower value will lead to stronger visuals).

If you have any input or suggestions on future features or bugs, don't hesitate to let me know!

Best of trading luck!
Release Notes
- The left and right lengths for the liquidity pivots (that has to be grabbed/sweept) is now available in the settings. It defaults to 1/1 that was the lengths in previous versions.
- Change the default pivot lengths for the pivots to 20/20 to get a larger dealing range and to hold it longer. This allows for things like turtle soup style trading of false breakouts.
- Only allow 'dealing range pivots' to take 'liquidity pivots' that was found before it.
- Remove some outcommented code.

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.