Indicator · Pine Script v6 · On the chart

Supply and Demand Zones 2026-2

by mikeyhu70

Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code430
Settings12inputs
LicenceNone stated
Last update6 months ago15 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

This variant uses looser body thresholds, allowing a base candle body up to the full candle range and a small minimum rally or drop body. Other settings set ATR length and multiplier, displayed level count and colours. It marks areas only and gives no entry or exit rules.

Details

Published by

mikeyhu70 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, SMC / ICT / price action, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Supplycolorcolor.rgb(192, 199, 98, 36)col_supply
Demandcolorcolor.rgb(99, 226, 243)col_demand
ATR Lengthint200_atr
Number of Level to Displayint10no_lvl
ATR Length Multiplierfloat0.618_atr_mult
Mode 3 (RBR/RDB/DBD/DBE w/ ATR): Impulse ATR Multiplierfloat0.368mode3_impulse_mult
Mode 3 (RBR/RDB/DBD/DBE w /ATR): Base ATR Multiplierfloat1.0mode3_base_mult
Detection ModestringClassic Patterns (Body %)detection_mode
Base Candle Max Body %float1.000baseThreshold
Rally/Drop Min Body %float0.100ercThreshold
Levels to Use for Total Delta Dashboardint5delta_calc_lvls
Zone Merge Threshold %float0.5merge_threshold
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill
218 stars

This indicator maps market structure and supply and demand zones on the price chart. It marks validated and optional unvalidated swing highs and lows using a pivot length and extra confirmation bars. Consolidation and impulse moves are measured against ATR to

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Market Structure + Supply/Demand
55 stars

This Pine Script indicator overlays institutional liquidity levels on the price chart. It identifies order block levels using pivot highs and lows, then draws mean reversion lines from the 20 and 50 period simple moving averages, a volatility range midpoint pr

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Institutional Liquidity Grid

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers