OPEN-SOURCE SCRIPT

Supply & Demand Zones + Triple EMA Pro

1 892
Supply & Demand Zones + Triple EMA Pro is a price action indicator designed to automatically detect high probability supply and demand zones while aligning them with trend direction using a triple EMA structure.

The indicator identifies potential institutional reaction levels where price previously moved away with strong momentum. These areas often represent zones where large buy or sell orders were previously placed, making them potential areas for future support, resistance, or reversals.

Unlike simple pivot based supply and demand indicators, this script filters zones using displacement logic, ATR impulse detection, and optional trend bias to reduce noise and highlight stronger setups.

Core Concepts

Supply Zones
Supply zones represent areas where selling pressure previously overwhelmed buyers and price moved downward quickly.

Demand Zones
Demand zones represent areas where buyers stepped in aggressively and price moved upward with momentum.

When price returns to these areas, traders often look for reactions such as reversals or continuation moves depending on overall market context.

Key Features
Automatic Supply and Demand Detection

The indicator detects supply and demand zones using pivot structure and price displacement.

Zones are created only when:

A swing high or swing low forms

Price moves away with sufficient momentum

A valid base candle is detected

This helps filter weak zones and highlight stronger institutional reaction areas.

Displacement Filtering

Zones are confirmed only when price moves away from the pivot with sufficient strength using ATR based impulse measurement.

This helps avoid zones that form during weak or sideways price movement.

Base Candle Detection

Instead of using the pivot candle directly, the indicator searches for the last opposing candle before the move, which often represents the true origin of the supply or demand zone.

Examples:

Supply zone
Last bullish candle before a strong bearish move

Demand zone
Last bearish candle before a strong bullish move

Triple EMA Trend Filter

The indicator includes a 21 / 50 / 200 EMA stack to identify market trend.

Bullish structure
EMA 21 > EMA 50 > EMA 200

Bearish structure
EMA 21 < EMA 50 < EMA 200

Zones can optionally be filtered to only show those that align with the current trend.

EMA Trend Coloring

Candles can be automatically colored based on EMA alignment:

Green
Strong bullish structure

Red
Strong bearish structure

Gray
Neutral or transitional structure

This helps quickly identify trend direction while trading zone retests.

Automatic Zone Mitigation

Zones are automatically removed when price fully breaks through them.

This keeps charts clean and ensures only relevant zones remain.

Inputs

Pivot Left / Right Bars
Controls sensitivity of swing detection.

Zone Extension
How far zones extend into the future.

ATR Impulse Multiplier
Controls how strong the move away must be to validate a zone.

Lookahead Bars
Number of bars used to measure displacement.

EMA Bias Filter
Optional trend filter using EMA structure.

Candle Coloring
Toggle EMA based candle coloring.

How to Use

Typical workflow:

Identify overall trend using the EMA stack.

Focus on demand zones during bullish trends.

Focus on supply zones during bearish trends.

Wait for price to return to the zone.

Look for confirmation such as:

rejection candles

market structure shifts

volume spikes

lower timeframe entries

The indicator is suitable for:

Forex

Crypto

Stocks

Futures

Works on all timeframes but performs best on 15m and higher where price structure is cleaner.

Strategy Ideas

Trend continuation
Buy demand zones in bullish EMA structure.

Pullback entries
Use demand zones as retracement entries in trends.

Reversal setups
Watch for price rejection at opposing zones.

Liquidity reactions
Look for aggressive price rejection when zones are retested.

Notes

This indicator is designed as a price action tool, not a standalone trading system.

Best results are achieved when combined with:

market structure

liquidity sweeps

volume analysis

higher timeframe bias

Disclaimer

This script is for educational and analytical purposes only.
Trading involves significant risk. Always manage risk and perform your own analysis before taking trades.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.