PROTECTED SOURCE SCRIPT

Price Zones/Supply & Demand

20
Price Zones – Supply & Demand is an advanced indicator that automatically identifies key Supply, Demand, and Equilibrium zones based on volume distribution across price levels within a fixed lookback window.

The main purpose of this indicator is to provide structural price context, helping traders detect areas where an imbalance between buyers and sellers has historically occurred, and where price is more likely to react.

🔍 How it works

Fixed lookback analysis
The indicator analyzes a predefined number of historical bars to avoid repainting and ensure consistent and reliable behavior.

Volume distribution by price levels
The total price range within the lookback is divided into multiple segments (“Resolution”), measuring how much volume has been traded at each level.

Key zone detection

Supply Zone: Upper price area where a significant percentage of selling volume is concentrated.

Demand Zone: Lower price area with high concentration of buying volume.

Equilibrium: The midpoint of the analyzed range, representing balance between supply and demand.

Representative levels

Full zone area

Average price line of each zone

Always-visible midline for higher precision

Global equilibrium line

🎨 Visualization & styling

Multiple predefined visual themes (including the LionLabs preset).

Zones can be extended to the right to help project future price interaction.

Midlines and equilibrium lines are displayed using dashed styles for clarity.

Optional Supply / Demand labels with configurable size and transparency.

The visual design is clean, professional, and non-intrusive, suitable for any market or timeframe.

🚨 Built-in alert system

The indicator includes a full alert()-based alert system, including:

Close entering a Supply or Demand zone

First touch of a zone

Price crossing the Equilibrium level

Unified alert that triggers on any relevant event

Alerts can be configured to trigger only on bar close or in real time.

🧠 Who is this indicator for?

Traders using Supply & Demand zone analysis

Reversal, reaction, or confirmation-based strategies

As a context filter for discretionary or automated systems

Suitable for scalping, intraday, and swing trading

⚠️ Important note

This indicator does not generate buy or sell signals on its own. It is designed as a context and analysis tool and should be used alongside proper risk management and a well-defined trading strategy.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.