PROTECTED SOURCE SCRIPT
Telah dikemas kini

Supply & Demand MTF[E7T]

184
This is not your average supply and demand tool. it’s a powerful, flexible indicator that helps traders spot high-probability opportunities by adapting to real-time market conditions. It uses a smart combination of volatility (ATR), volume, and price action to identify key zones where the market is likely to react. Perfect for scalpers and swing traders alike, this strategy brings together adaptive zone detection, trend bias (pivot line), two-tiered signals (S1 and S2), volume filtering, built-in Fibonacci targets, and even a debug mode for transparency and performance tracking.

KEY FEATURES

1. ADAPTIVE ZONE DETECTION; This feature highlights areas where price is likely to bounce or reversebullish demand zones and bearish supply zones. Instead of using fixed levels, it adjusts based on market volatility.

HOW IT WORKS:
Uses Average True Range (ATR) to measure volatility.

TWO MODES:
Low Volatility Mode: Makes zones tighter for calm markets.
High Volatility Mode: Expands zones during choppy or fast-moving conditions.

Plots red boxes for supply zones and blue for demand zones. Zones extend until broken or naturally expire.

WHY IT MATTERS: Traditional zone indicators often fall short in fast-changing conditions. This one adjusts automatically, helping you stay one step ahead.

EXAMPLE: On a 4H BTCUSD chart, a demand zone will form at a key support level and adjust its size depending on whether the market is quiet or volatile.

2. MARKET BIAS PIVOT LINE; This dynamic line helps you quickly see whether the market is trending up or down so you can trade in the direction of strength.

HOW IT WORKS:

Based on recent swing highs and lows (default: last 4 bars).
Line is green when price is above (bullish), red when below (bearish).
Updates live and can be turned on/off in settings.

WHY IT MATTERS: It’s a built-in trend filter. Use it to avoid fighting the market.

EXAMPLE: If SPY is above a green pivot and enters a demand zone, it’s a solid bullish setup.

3. DUAL ENTRY SIGNALS (S1 and S2) The strategy gives you two signal types depending on your risk style:

S1 SIGNALS: Early entry, based on basic confirmation (like a bullish engulfing pattern).
S2 SIGNALS: Stronger entry, requiring solid candle confirmation, volume spike, and close near the zone.

HOW IT WORKS:

S1 = good for aggressive traders or small size entries.
S2 = better for high-conviction trades and bigger position sizes.

Both signals follow your selected market mood (bullish or bearish).

WHY IT MATTERS: Flexibility! Most indicators only offer one signal style. This one gives you choice.

EXAMPLE: In EURUSD, S1 might show up when price taps a demand zone and forms a small bullish candle. If volume increases and the next candle closes strong, S2 confirms the entry.

4. VOLUME CONFIRMATION This filters out weak signals by checking for real buying/selling interest.

HOW IT WORKS:
Compares current volume to previous bar and a 10–14 bar average.
Adjustable volume thresholds for S1 and S2.
Can be disabled for markets with unreliable volume (like certain forex pairs).

WHY IT MATTERS: It adds a layer of quality control. High-volume moves usually mean higher conviction.

EXAMPLE: On AAPL, an S2 will only trigger if volume jumps by 1.3x the average, signaling strong seller presence.

5. BUILT-IN FIBONACCI TARGETS (TP1, TP2, SL) No more guessing exits. The strategy draws take profit (TP) and stop loss (SL) levels automatically based on zone size.

HOW IT WORKS:

TP1 = 2.12x the zone height
TP2 = 3.3x the zone height
SL = 1x the zone height (all adjustable)

These are shown as dashed (TP) and solid (SL) lines with labels


WHY IT MATTERS: Reduces emotional decision-making. Helps you plan trades with consistent risk/reward.

Example: In GOLD, if the demand zone is $20 tall, TP1 would be ~$42.40 higher, TP2 ~$66 higher, and SL $20 lower.

6. FULLY CUSTOMIZABLE INPUTS Tweak the settings to match your style and asset type.

KEY INPUTS:

Market Mood: Choose bullish (1) or bearish (2)
Timeframe Filter: Focus only on reliable zones (30M or 4H) or can disable to show on every timeframe
Zone Limit: Limit how many zones show (e.g., max 4)
Breakout Buffer: Defines how much price must move to break a zone
Zone Opacity: Make zones more/less visible

WHY IT MATTERS: This lets you dial in the indicator for scalping, swing trading, crypto, stocks, or forex.

Example: A scalper might use tighter zones and a low breakout buffer, while a swing trader prefers more zones and higher volatility mode.

7. DEBUG MODE (Optional) Get under the hood and see exactly how the strategy works.

HOW IT WORKS:

Shows metrics like ATR, volatility mode, memory usage, signal win rate, etc.
Plots visual lines showing zone age and success rate (TP1 hit tracking)

WHY IT MATTERS: Very few indicators show their math. This one does—great for power users who want to optimize.

EXAMPLE: You might discover that signals perform best in high volatility mode during news events, helping you adjust settings accordingly.

HOW TO USE IT

1. Add it to your TradingView chart (30M or 4H timeframes recommended).

2. Adjust inputs:
Market Mood = 1 (bullish) or 2 (bearish)
Pick your Volatility Mode
Set Zone Collector Limit (3–4 works well)
Use Timeframe Filter for better signals

3. Watch for S1 and S2:
S1 = quicker trades, lighter risk
S2 = stronger confirmation, bigger trades

4. Use the Pivot Line for trade direction.

5. Manage exits with auto TP/SL levels.

6. Turn on Debug Mode if you want detailed stats.

WORKS VERY WELL WITHOUT REPAINTING

Why It’s a Game-Changer; IT takes the guesswork out of zone trading. It’s not just smart—it’s adaptive. From volatility and volume to dynamic signals and exit plans, everything adjusts based on what the market is doing. And with a built-in trend filter and real-time debug info, it’s like having a trading co-pilot that’s always alert.

Why It’s Different Most zone indicators are basic. This one isn’t. Here’s why:

Adaptive zones that change with the market
Dual signal system (S1/S2) for flexibility
Volume confirmation to filter noise
Built-in Fibonacci targets for clean exits
Debug mode that shows you how it works
YOU CAN SET ALERTS WITHOUT repainting

THIS isn’t just another tool—it’s a smarter, more responsive way to trade.
Nota Keluaran
//all timeframes supported if Timeframe Filter disabled
// Pivot line condition active on S2 signals
Close < bellow
Close > abavo
//No repainting..conditions only evaluate on confirmed closes
Nota Keluaran

//This update introduces smarter zone placement logic using pivot-based bias, along with bug fixes and improved historical depth for more context-rich analysis.

//New Feature: Pivot-Filtered Zone Creation

An optional pivot condition to improve the quality and relevance of zones on intraday timeframes:

DEMAND ZONES will now only form below the pivot line, aligning with oversold or undervalued price behavior.

SUPPLY ZONES will now only form above the pivot line, targeting overbought or extended areas.

This helps you focus on setups that align with logical market positioning buy low, sell high.

//NOTE: This filter only applies to intraday charts (under 2H). On higher timeframes (2H, 4H, Daily), the pivot filter is bypassed to preserve flexibility.

//IMPROVEMENTS & FIXES

HISTORICAL DEPTH INCREASED:
max_bars_back has been raised from 700 → 2000 to allow more reliable backtesting and deeper pivot calculations.

PIVOT FLICKER FIXED:
Resolved an issue where the pivot line occasionally flickered or lagged during new bar formation.

STABILITY UPDATES:
Improved memory handling and zone object cleanup for better performance on slower devices or high-activity charts.
Nota Keluaran
//bar index error fixed

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.