# Supply and Demand Visible Range

Supply and Demand Visible Range is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Converts the volume traded across your visible chart range into supply and demand zones, recalculating instantly as you scroll or zoom. Intra-bar data sharpens each area, while solid and dashed lines mark plain and volume-weighted averages inside every zone. The original LuxAlgo volume-based zone detector, made for visual analysis.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 13, 2023.
- Access: free.
- Concepts: [Supply & Demand Zones](https://www.luxalgo.com/library/concept/supply-and-demand-zones/) (primary), [Volume Profile](https://www.luxalgo.com/library/concept/volume-profile/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn6606008pvhsgpwv529dv
- Page: https://www.luxalgo.com/library/indicator/supply-and-demand-visible-range/

**Supply and Demand Visible Range** converts whatever slice of the chart you are viewing into [zones of supply and demand](https://www.luxalgo.com/library/concept/supply-and-demand-zones/). Its volume-based technique splits the visible range into price bins, kin to a [volume profile](https://www.luxalgo.com/library/concept/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

### Why do the zones change when I scroll?

By design: the calculation uses only the bars currently visible, so a new view means a new volume distribution and fresh zones. Treat it as an interactive lens rather than a fixed level map.

### Which sibling should I use for fixed zones?

[Supply and Demand Daily](https://www.luxalgo.com/library/indicator/supply-and-demand-daily/) stamps zones from each completed session and keeps their history on the chart, so levels hold still no matter how you navigate. It's the natural pick when stable references matter more than an on-screen estimate.

### Does Supply and Demand Visible Range cost anything?

No. It belongs to the free LuxAlgo Library. From this page it can also be opened in Quant, our coding agent, if you want to experiment with threshold and resolution combinations. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Supply Demand Profiles](https://www.luxalgo.com/library/indicator/supply-demand-profiles/) (Supply & Demand Zones): markdown at https://www.luxalgo.com/library/indicator/supply-demand-profiles.md
- [Rally Base Drop Signals](https://www.luxalgo.com/library/indicator/rally-base-drop-signals/) (Supply & Demand Zones): markdown at https://www.luxalgo.com/library/indicator/rally-base-drop-signals.md
- [Rally Base Drop SND Pivots](https://www.luxalgo.com/library/indicator/rally-base-drop-snd-pivots/) (Supply & Demand Zones): markdown at https://www.luxalgo.com/library/indicator/rally-base-drop-snd-pivots.md
- [Supply and Demand Daily](https://www.luxalgo.com/library/indicator/supply-and-demand-daily/) (Supply & Demand Zones): markdown at https://www.luxalgo.com/library/indicator/supply-and-demand-daily.md
- [Supply and Demand Anchored](https://www.luxalgo.com/library/indicator/supply-and-demand-anchored/) (Supply & Demand Zones): markdown at https://www.luxalgo.com/library/indicator/supply-and-demand-anchored.md
- [Volume Profile (Maps)](https://www.luxalgo.com/library/indicator/volume-profile-maps/) (Volume Profile): markdown at https://www.luxalgo.com/library/indicator/volume-profile-maps.md
- [Volume Profile Matrix](https://www.luxalgo.com/library/indicator/volume-profile-matrix/) (Volume Profile): markdown at https://www.luxalgo.com/library/indicator/volume-profile-matrix.md
- [Support & Resistance Zones Strength Classifier](https://www.luxalgo.com/library/indicator/support-resistance-zones-strength-classifier/) (Zone Scoring & Refinement): markdown at https://www.luxalgo.com/library/indicator/support-resistance-zones-strength-classifier.md

---

Source: https://www.luxalgo.com/library/indicator/supply-and-demand-visible-range/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
