All indicators

Supply and Demand Visible Range

By LuxAlgoApr 13, 2023

Supply and Demand Visible Range is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

Supply and Demand Visible Range converts whatever slice of the chart you are viewing into zones of supply and demand. Its volume-based technique splits the visible range into price bins, kin to a volume profile, then accumulates volume from the range high downward to form the supply area and from the range low upward to form demand, stopping once a set share of total volume is reached. Intra-bar data feeds the calculation, and everything refreshes the moment you scroll or zoom.

How to Trade the Supply and Demand Visible Range?

  • Fade the extremes: price approaching the upper supply area after several tests can foreshadow a downward reversal; price nearing the lower demand area may set up an upward turn.
  • Thin areas flag liquidity: narrower zones often coincide with more liquid prices, worth keeping as reference levels.
  • Solid versus dashed lines: solid lines plot the average inside each area, dashed lines the weighted average leaning toward the more liquid levels, and the central lines split the difference between the two.

Since only on-screen bars enter the calculation, changing the view is itself an input: pan across history to profile any period you like.

Supply and Demand Visible Range Settings

  • Threshold %: portion of total visible-range volume needed to establish each area; higher values widen the zones.
  • Resolution: the bin count used to resolve each area. Greater precision, at the cost of computation on long ranges.
  • Intra-bar TF: the timeframe examined for intra-bar data; very low settings can slow the script when the chart timeframe is high.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.