[ A L P H A X ] FORTRESS - Supply & Demand Zone EngineAlphaX FORTRESS — Supply & Demand Zone Engine with Zone Grading, Session VWAP Confluence, Liquidity Sweep Signals, HTF Zone Overlay & Live Backtest Statistics
AlphaX FORTRESS is a professional-grade supply and demand system built around an institutional zone detection engine that identifies, grades, and tracks every significant supply and demand zone on the chart — then fires precision entry signals only when price returns to those zones with genuine rejection confirmation, multi-layer filter alignment, and a qualifying zone grade. Where most supply and demand indicators simply draw boxes and leave the trader to decide what to do, FORTRESS integrates a five-factor zone grading algorithm (A+ through C), session VWAP confluence scoring, higher timeframe zone overlay, liquidity sweep detection, a full suite of entry quality filters, and a live on-chart backtest statistics tracker that counts wins, losses, and win rate in real time directly from the chart's history. Every signal is supported by zone grade verification, trend alignment, ADX confirmation, volume delta pressure, premium/discount positioning, and rejection wick quality — producing a complete, self-contained supply and demand trading system. Designed for active traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏛 Supply & Demand — The Institutional Framework
Supply and demand zones are the foundational building blocks of institutional price delivery. Unlike horizontal support and resistance drawn from price memory, genuine supply and demand zones are identified from the origin of explosive moves — the exact price range where institutions accumulated or distributed their positions before driving price aggressively in one direction.
Demand Zone: Formed when price makes an explosive bullish move away from a base. The base — one or more low-momentum candles directly preceding the explosive candle — represents the range where institutional buyers accumulated their full position. When price returns to this zone, unfilled buy orders are waiting. The most reliable demand zone retests produce sharp, rejection-candle bounces from within the zone.
Supply Zone: The mirror image. An explosive bearish move preceded by a base of low-momentum candles. Institutions distributed their position in the base before driving price aggressively lower. On return, unfilled sell orders produce sharp rejection moves downward from within the zone.
Why FORTRESS detects zones differently from most indicators: Most zone detectors use a simple pivot or pattern check. FORTRESS requires three simultaneous conditions for a zone to qualify — the departure candle must be explosive (ATR-scaled range), the body must represent a minimum proportion of the total range (body quality filter), and volume must confirm when enabled. Only zones formed by genuine institutional displacement are registered.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 Zone Detection Engine — Quality Filters
Every zone formed by FORTRESS passes three mandatory quality gates before being registered:
Explosive Move Filter:
The departure candle (the candle that leaves the base and drives price) must have a total range exceeding the ATR by a configurable multiplier (default: 1.2×). This filters out zones formed by slow, grinding moves — only impulsive, institutionally driven departures qualify. Smaller ATR multipliers produce more zones; larger values produce fewer, higher-quality zones.
Body Quality Filter:
The departure candle's body must represent at least a configurable percentage of its total range (default: 55%). A small body in a large-range candle indicates indecision — the candle moved far but closed near its midpoint, suggesting weak directional conviction. A large body relative to range confirms genuine one-directional pressure on the departure move.
Volume Confirmation (optional):
When enabled, the departure candle's volume must exceed the average volume (configurable period, default: 20 bars) by a minimum multiplier (default: 1.1×). High-volume departures carry more institutional weight than same-range moves on average volume. The volume filter is off by default — this allows the system to work effectively on instruments where volume data is unreliable (forex spot, crypto perpetuals) while providing an additional quality gate when reliable volume is available.
Base Detection:
The base candles immediately preceding the explosive departure are automatically detected — up to the configurable maximum (default: 2 candles). Base candles must have a body smaller than 0.5× ATR and must not themselves be explosive. The full base range is incorporated into the zone boundaries, accurately reflecting the complete accumulation or distribution range rather than just the departure candle alone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏅 Zone Grading System — A+ Through C
Not all supply and demand zones are equal. A zone formed on massive volume with VWAP confluence during a premium price area carries fundamentally more institutional weight than the same pattern on average volume in a random price area. FORTRESS quantifies this difference with a five-factor algorithmic grading system that assigns every zone a grade of A+, A, B, or C at the moment of formation.
Grading factors and their weights:
Move Strength (up to 30 points) — the ratio of the departure candle's range to ATR, capped at 30 points. Stronger, more explosive departures score higher. A 3× ATR departure scores maximum; a 1.2× departure (the minimum threshold) scores proportionally lower
Volume Ratio (up to 20 points) — when volume confirmation is enabled, the ratio of departure volume to average volume, capped at 20 points. When volume confirmation is off, a flat 10 points is awarded to maintain grade comparability across instruments. High-volume departures receive the full bonus
VWAP Confluence (20 points) — full 20 points awarded when the session VWAP is within a configurable ATR tolerance of the zone boundaries at the time of formation. A zone that forms directly at the institutional session reference level carries significantly more weight than a zone formed far from VWAP. This is the VWAP Boosts Grade feature
HTF Zone Match (20 points) — full 20 points when the zone overlaps with an active higher timeframe supply or demand zone. Confluence between the current timeframe zone and the HTF zone indicates institutional activity at multiple timeframe levels simultaneously — the strongest possible zone quality condition
PD Zone Match (15 points) — awarded when the zone forms in the institutionally correct price area: supply zones in premium (above dealing range equilibrium) and demand zones in discount (below equilibrium). A supply zone in premium and a demand zone in discount are positioned where institutions naturally distribute and accumulate respectively
Base bonus (5 points) — a flat quality bonus applied to all qualifying zones
Grade thresholds:
A+ (80+ points) — elite institutional zone. All or most factors aligned. Maximum conviction
A (65–79 points) — strong zone with multiple confirming factors. High quality
B (50–64 points) — solid zone with partial confirmation. Standard quality
C (below 50 points) — low-quality zone. Formed with minimal supporting factors
The grade badge is displayed directly on the zone box on the chart. The minimum grade filter (default: B) blocks signals from C-grade zones entirely — preventing entries at the lowest-quality institutional levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Session VWAP Confluence
The session VWAP is plotted as a continuous purple line and serves two distinct roles in FORTRESS.
Visual reference: The VWAP line and optional ±1σ bands provide the institutional session fair value reference directly on the price chart. Optional band display shows the first standard deviation envelope around VWAP.
Grade booster: When VWAP Boosts Grade is enabled (default: on), every zone that forms within ATR tolerance of the session VWAP receives 20 additional grade points — frequently elevating a B-grade zone to A or A+ when VWAP proximity confirms institutional positioning at that level.
Why VWAP at the zone matters: The session VWAP is the single most widely watched intraday reference level by institutional desks, algorithms, and market makers. When a supply or demand zone forms directly at the VWAP, it means the institutional activity that created the zone coincided with the session's fairest price level — the most contested and significant price in the session. Retests of these zones carry the highest probability of generating a sharp institutional response.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 HTF Zone Overlay
FORTRESS pulls supply and demand zones from a configurable higher timeframe (default: 60-minute) and overlays them on the current chart as purple dashed boxes.
What HTF zones represent: A supply or demand zone on H1 was created by a significantly larger impulsive move than anything visible on M5 or M1. These zones represent institutional positioning decisions made on a multi-hour timeframe — they carry far more weight than same-pattern zones on the current timeframe. When a current timeframe demand zone overlaps with an active H1 demand zone, two independent timeframes of institutional evidence are concentrated at the same price level.
Zone matching in the grader: When a newly formed current timeframe zone overlaps with an active HTF zone of the same type, it receives the full 20-point HTF Match bonus in the grading system — frequently pushing the zone from B to A or A+ grade. The label also appends ·HTF to confirm the match.
HTF zone lifecycle: HTF zones are maintained in real time. When price closes above an HTF supply zone or below an HTF demand zone, the zone is deleted automatically — mitigated zones are no longer relevant and are removed to keep the chart clean.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💧 Liquidity Sweep Signal Mode
In addition to standard zone rejection signals, FORTRESS detects a powerful second entry type: the liquidity sweep — where price wicks through a zone's boundary to grab stop orders before reclaiming back inside.
Demand sweep (bull): Price wicks below the demand zone bottom by at least the minimum sweep depth (default: 0.15× ATR), then closes back above the zone bottom. Retail stops placed just below the demand zone have been triggered — institutions used that liquidity to accumulate. The reclaim close is the entry signal.
Supply sweep (bear): Price wicks above the supply zone top by at least the minimum sweep depth, then closes back below the zone top. Buy stops above supply have been triggered; the close back below is the entry.
Why sweeps are powerful: A standard zone rejection is a clean, textbook entry. A zone sweep adds an additional dimension — institutions have actively manufactured a liquidity event at the zone boundary, triggered counterparty stops to fill their own orders, and then reversed. This sequence is a clear signature of institutional stop hunting followed by directional commitment. Sweep signals are marked with an orange circle rather than a triangle to distinguish them visually from standard rejections.
Stop placement for sweeps: The SL for sweep entries is placed at the wick extreme (the sweep low for bull sweeps, the sweep high for bear sweeps) plus a small ATR buffer — anchored to the actual manipulation point rather than the zone boundary.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 Signal Entry Logic — Multi-Layer Filtering
A FORTRESS signal fires when a zone touch is detected with candle rejection and all configured filters pass. The full filter stack applied to every potential entry:
Zone touch verification:
The current bar's low must reach within the demand zone (for longs) or the current bar's high must reach within the supply zone (for shorts). Touch detection includes a small ATR tolerance (0.05×) to account for minor overshoot or spread differences.
Rejection candle confirmation:
The bar must close in the correct direction — bullish close (close above open) for demand entries, bearish close for supply entries. Additionally, the rejection wick must meet the minimum wick percentage requirement (default: 50% of bar range). A bar touching a zone with a tiny lower wick but a large body is a weak rejection — the minimum wick filter ensures the zone produced a genuine, visible rejection impulse.
Filter stack (all must pass):
Trend EMA — price must be above the trend EMA (default: 50-period) for demand longs, below for supply shorts. Prevents counter-trend entries
ADX minimum — market must be trending above the configured ADX threshold (default: 18). Blocks zone entries in choppy, ranging conditions
Volume Delta — estimated directional volume pressure must agree with the signal direction. Bull volume dominance for longs, bear for shorts
PD Zone requirement — price must be in discount for demand entries (below dealing range equilibrium) and in premium for supply entries (above equilibrium)
Zone grade minimum — only zones at or above the configured minimum grade (default: B) can trigger signals
Fresh zone filter — when enabled, only zones that have not been previously tested can trigger signals. A zone that has already been retested once carries less institutional fresh-order weight
One signal per zone — when enabled, each zone can only generate one signal regardless of how many valid touches occur. Prevents repeated entries at the same level
Signal cooldown — minimum bars between any two signals (default: 5). Prevents signal clustering during complex multi-touch zone reactions
Session filter — when enabled, restricts all signals to the configured active hours window
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Zone Mitigation & Lifecycle Management
FORTRESS tracks the full lifecycle of every zone from formation through mitigation. The mitigation mode is configurable:
Body Close (default): A zone is mitigated when price closes beyond its boundary — a close above a supply zone top or a close below a demand zone bottom. This is the stricter, lower-noise mode. Wicks through the zone do not count as mitigation unless they are accompanied by a body close — consistent with the idea that a wick through the zone is a sweep (an opportunity) rather than a genuine break.
Wick Touch: A zone is mitigated as soon as any price touches the boundary — high above supply top, low below demand bottom. This is a more aggressive mitigation mode that removes zones faster, keeping the chart cleaner but potentially removing zones that could have produced more entries.
When a zone is mitigated under either mode, its box, label, and grade badge are immediately deleted from the chart. The system maintains a rolling maximum of the configured number of active zones per side (default: 3), automatically removing the oldest zones when the limit is exceeded.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Live Backtest Statistics Tracker
One of FORTRESS's most distinctive features is its on-chart live backtest statistics system . Every signal fired is tracked in memory with its entry price, ATR at signal time, direction, and grade. On every subsequent bar, the tracker evaluates whether each open signal has hit the configured target (default: 2.0× ATR) or stop (default: 1.0× ATR).
Statistics tracked and displayed on the dashboard:
Total Signals — the total count of signals logged in the tracking window
Wins — signals that reached the target before the stop
Losses — signals that hit the stop before the target
Win Rate — wins as a percentage of all closed (decided) signals. Color-coded yellow-green when at or above 50%, red when below
Pending — signals still open — neither target nor stop hit yet. Shown in orange
What this tells you: The win rate displayed is not a theoretical backtest result — it is computed directly from the current chart's historical signals using the exact filter configuration currently active. Change the zone grade minimum and the win rate updates. Enable the ADX filter and it updates. This gives you immediate, live feedback on how your configuration is performing on the current instrument and timeframe without leaving the chart.
Important note on interpretation: The statistics reflect signals fired at the current settings on the current chart's visible history. They are not forward-tested results and do not account for slippage, spread, or live execution. They serve as a real-time tuning tool — not a performance guarantee.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state across four sections.
ZONES
Supply — count of currently active, unmitigated supply zones on the chart
Demand — count of currently active, unmitigated demand zones on the chart
FILTERS
Trend — current EMA trend state: ▲ BULL, ▼ BEAR, or —
PD Zone — current premium/discount position: ◧ DISCOUNT, ◧ PREMIUM, or — EQ
ADX — live ADX value with ✓ or ✗ pass/fail indicator
Vol Delta — current volume delta direction: ▲ BULL, ▼ BEAR, or —
STATS
Signals — total signals tracked in the current window
Wins — confirmed target-hit signals
Losses — confirmed stop-hit signals
Win Rate — live win percentage across all closed signals, color-coded
Pending — signals awaiting outcome
Min Grade — the currently configured minimum zone grade filter
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Demand Zone Boxes (yellow-green) — semi-transparent yellow-green filled boxes with solid yellow-green borders. Extend right until mitigated
Supply Zone Boxes (red) — semi-transparent red filled boxes with solid red borders. Extend right until mitigated
DEMAND / SUPPLY Labels — appear at zone formation with ·VWAP and ·HTF suffixes when those confluences are present
Grade Badges (A+ / A / B / C) — small labels at the zone's left edge showing the computed quality grade. Color-coded: A+ bright yellow-green, A yellow-green, B orange, C gray
HTF Zone Boxes (purple dashed) — higher timeframe supply and demand zones overlaid from the configured HTF. Automatically deleted when mitigated
Session VWAP Line (purple) — continuous VWAP anchored to each session's first bar
VWAP Bands (purple, optional) — ±1σ envelope around the session VWAP
Equilibrium Line (purple dotted) — the 50% midpoint of the dealing range
Trend EMA (optional gray line) — the trend filter EMA plotted when Show EMA is enabled
▲ Triangle (below bar, yellow-green) — standard demand rejection long signal
▼ Triangle (above bar, red) — standard supply rejection short signal
● Circle (below bar, orange) — liquidity sweep long signal at demand zone
● Circle (above bar, orange) — liquidity sweep short signal at supply zone
SL Guide (red dotted circles) — stop loss reference level on signal bars
TP Guide (yellow-green dotted circles) — take profit reference level on signal bars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX FORTRESS — Step by Step
Step 1 — Assess the Zone Landscape
Check the dashboard: how many supply and demand zones are active? Multiple demand zones stacked in the same price area indicate a strong institutional accumulation cluster — a high-priority retest target
Identify the highest-grade zones on the chart. An A+ demand zone with ·VWAP ·HTF in the label is the highest-conviction level FORTRESS can display. Mark these as priority levels
Note the equilibrium line — are you in discount (favorable for longs) or premium (favorable for shorts)?
Step 2 — Confirm the Filter Environment
Check the dashboard: Trend ▲ BULL, PD Zone ◧ DISCOUNT, ADX ✓, Vol Delta ▲ BULL — all four green simultaneously is the ideal filter state for long entries
If any critical filter is failing, reduce position size on signals or skip the setup entirely
Watch the VWAP line — is it near the zone you are watching? VWAP proximity at the zone level confirms the highest-grade setups
Step 3 — Enter on the Signal
A ▲ triangle below the bar is a confirmed demand rejection — all quality and filter conditions met. Enter on the close or next bar open
An orange ● circle below the bar is a sweep long — the zone was violated, stops triggered, and price reclaimed. Enter on the close. Place the stop at the wick extreme
Both signal types display SL and TP guide levels (dotted circles) when Show SL / TP on Signal is enabled
Step 4 — Monitor with the Stats Dashboard
Watch the Win Rate row on the dashboard. If the current configuration is producing a win rate below 50% on this instrument and timeframe, consider tightening the filters — raise the minimum grade, increase the ADX threshold, or enable the volume filter
The Pending count tells you how many trades are currently open and unresolved — useful for position sizing decisions
If Losses are rising without corresponding Wins, check whether the market has entered a choppy regime (ADX dropping) and consider pausing trading until ADX recovers
Step 5 — Zone Management and Exit
When price reaches the TP guide level, take partial or full profit
If price closes through the zone boundary opposite to your entry (body close mitigation), the zone is invalidated — this is also your stop signal if not already stopped out
Watch for the zone to be deleted from the chart — when the box disappears, the zone has been mitigated and the trade thesis is over
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
ADX ✗ on the dashboard — the market is ranging. Supply and demand zones in range conditions are frequently tested and broken repeatedly without producing clean continuation moves. The ADX filter blocks signals in these conditions automatically
All active zones are grade C — no high-quality institutional levels are present. The zones on the chart were formed by weak, low-displacement moves and are unlikely to produce sharp institutional responses on retest
Win Rate is below 40% on the live stats tracker — the current configuration is underperforming on this instrument and timeframe. Tighten filters or review whether the instrument is suitable for zone-based trading at this time
Zones are being mitigated rapidly before retesting — fast, impulsive markets break through zones without retesting them. In this environment, wait for a new zone to form in the direction of the impulse rather than trying to catch retests of quickly broken levels
PD Zone shows — EQ — price is at the dealing range midpoint. Entries from equilibrium carry the worst risk/reward — the institutional advantage of buying in deep discount or selling in deep premium is absent
Vol Delta opposes the signal direction — institutional volume pressure is working against the zone entry. Even if all other conditions pass, a demand zone long with bearish volume delta means selling pressure is still dominant — the zone may not hold
No HTF zones visible and current timeframe zones are grading mostly B and C — the institutional context on the higher timeframe is not confirming the current timeframe levels. Wait for HTF supply or demand to align before entering aggressively
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🏛 Institutional supply and demand zone detection — explosive move filter, body quality filter, and optional volume confirmation identify only genuine displacement zones
📦 Automatic base detection — incorporates up to the configured maximum of low-momentum candles preceding the explosive departure into the zone boundaries
🏅 Five-factor algorithmic zone grading — Move Strength, Volume Ratio, VWAP Confluence, HTF Match, and PD Zone together produce an A+/A/B/C grade for every zone at formation
🌐 Session VWAP integration — plotted live with optional bands, boosts zone grades when VWAP is within tolerance of the zone, and confirmed in zone labels
📡 Higher timeframe zone overlay — pulls supply and demand zones from a configurable HTF and overlays them as purple dashed boxes. HTF-matching zones receive maximum grade bonus
💧 Liquidity sweep detection — identifies stop-hunt sequences where price wicks through a zone boundary and reclaims, marking these with distinct orange circle signals
🧠 Multi-layer filter stack — Trend EMA, ADX, Volume Delta, PD Zone, Zone Grade, Fresh Zone, One-Shot, Cooldown, and Session filters all independently configurable
⚖ Premium/Discount zone requirement — enforces institutionally correct entry positioning using a dynamic equilibrium across the dealing range
📊 Live backtest statistics tracker — tracks every signal's win/loss outcome in real time on the chart, displaying signal count, wins, losses, win rate, and pending count on the dashboard
🔀 Two zone mitigation modes — Body Close (stricter, lower noise) and Wick Touch (more aggressive zone clearance)
📝 Zone labels with confluence indicators — DEMAND / SUPPLY labels append ·VWAP and ·HTF when those confluences are present at formation
🏷 Grade badges — A+/A/B/C badges displayed directly on each zone box with color-coded visual hierarchy
🎯 SL and TP guide levels — dotted circle plots at the stop and target levels on every signal bar
📊 16-row live dashboard — Zones, Filters, and Stats sections updated in real time
🔔 6 alert conditions — demand long, supply short, sweep long, sweep short, new demand zone formation, new supply zone formation
🎨 Fully cohesive dual-tone color system — yellow-green for all demand/bullish elements, red for supply/bearish, orange for sweeps and pending stats, purple for VWAP/HTF/equilibrium
⚙ Fully configurable — all zone detection thresholds, grading weights, filter settings, mitigation mode, backtest parameters, display options, and colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Zone Detection
Max Base Candles — maximum number of low-momentum base candles to incorporate into zone boundaries (default: 2)
Move Strength (ATR x) — minimum departure candle range as a multiple of ATR (default: 1.2)
ATR Length — lookback for ATR calculation (default: 14)
Volume Multiplier — minimum volume relative to average when volume confirmation is enabled (default: 1.1)
Volume Avg Length — lookback for volume average (default: 20)
Min Body % of Range — minimum body size as a fraction of the departure candle's total range (default: 0.55)
Require Volume Confirmation — when on, departure candle must exceed the volume average by the configured multiplier (default: off)
Signal Filters
Fresh Zones Only — when on, only zones that have not been previously touched can trigger signals
One Signal Per Zone — when on, each zone produces a maximum of one signal regardless of subsequent valid touches
Min Rejection Wick % — minimum lower/upper wick as a fraction of bar range for rejection confirmation (default: 0.50)
Cooldown Bars — minimum bars between consecutive signals (default: 5)
Chart EMA Trend Filter — when on, requires price to be on the correct side of the trend EMA
Trend EMA Length — EMA period for the trend filter (default: 50)
Min Zone Grade — minimum grade required for a zone to generate signals. A+ / A / B / C (default: B)
ADX Filter — toggle the ADX trend strength gate
ADX Length / ADX Minimum — ADX calculation and threshold parameters (defaults: 14 / 18)
Volume Delta Filter — toggle the directional volume pressure requirement
Volume Delta Length — smoothing length for volume delta calculation (default: 14)
Require PD Zone — when on, longs require discount positioning, shorts require premium
Dealing Range Length — bars used for the equilibrium midpoint calculation (default: 50)
Liquidity Sweep
Enable Sweep Signals — toggle the sweep entry signal mode
Min Sweep Depth (ATR x) — minimum wick extension beyond the zone boundary to qualify as a sweep (default: 0.15)
HTF Zones
Show HTF Zones — toggle the higher timeframe zone overlay
HTF Resolution — the timeframe to pull HTF zones from (default: 60-minute)
VWAP Confluence
Show Session VWAP — toggle the VWAP line on the chart
VWAP Boosts Grade — when on, zones within VWAP tolerance receive 20 additional grade points
VWAP Tolerance (ATR x) — maximum distance from VWAP to qualify for the grade boost (default: 0.5)
Show VWAP Bands — toggle ±1σ band plots around the session VWAP
Backtest Stats
Track Signal Stats — toggle the live win/loss tracking system
Target (ATR x) — take-profit distance for stat tracking purposes (default: 2.0)
Stop (ATR x) — stop-loss distance for stat tracking purposes (default: 1.0)
Max Signals Tracked — rolling window size for the statistics tracker (default: 50)
Display
Max Active Zones / Side — maximum supply zones and demand zones maintained simultaneously (default: 3 per side)
Mitigation — Body Close or Wick Touch zone invalidation mode
Extend Zones Right — when on, zone boxes extend indefinitely to the right until mitigated
Show Zone Labels — toggle SUPPLY/DEMAND text labels on zones
Show Grade Badge — toggle A+/A/B/C grade badges on zone boxes
Show Stats Dashboard — toggle the full dashboard panel
Plot Trend EMA — toggle the trend EMA line on the chart
Show SL / TP on Signal — toggle stop and target guide circle plots on signal bars
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Session
Buy / Sell Signals — master toggle for all entry signals
Session Filter — toggle the active hours restriction
Active Session — configurable session window string
Colors
Demand / Bull / Bull Bright — yellow-green family for all demand zones, signals, and labels
Supply / Bear / Bear Bright — red family for all supply zones, signals, and labels
HTF Zone — purple for higher timeframe zone overlays
VWAP / Equilibrium — purple for VWAP and equilibrium lines
SL Guide / TP Guide — stop and target circle colors
Sweep Signal — orange for liquidity sweep entry circles
Dash Text / Neutral / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (6 total)
Entry Alerts
Fortress Demand Long — standard demand zone rejection long signal. All quality and filter conditions met
Fortress Supply Short — standard supply zone rejection short signal
Fortress Sweep Long — liquidity sweep and reclaim at demand zone. Sweep entry confirmed
Fortress Sweep Short — liquidity sweep and reclaim at supply zone
Zone Formation Alerts
New Demand Zone — a qualifying demand zone has been detected and added to the chart
New Supply Zone — a qualifying supply zone has been detected and added to the chart
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M1–M15 :
Move Strength at 1.2× ATR — sensitive enough to catch meaningful departures on fast-moving intraday instruments
Min Grade at B — filters out the lowest-quality zones while allowing solid B-grade setups to signal
Fresh Zones Only on — fresh, untested zones carry the most unfilled institutional orders
HTF at 60-minute — provides meaningful confluence context for intraday M1–M15 trading
Volume Confirmation off — reliable for futures and equities, unreliable for spot forex and crypto perpetuals
For other instruments or timeframes, adjust:
Higher timeframes (H1, H4) — increase Move Strength to 1.5–2.0× ATR, set HTF to Daily or Weekly, raise Min Grade to A, increase Dealing Range Length to 100–200
Crypto (BTC, ETH) — enable Volume Confirmation with 1.2× multiplier on exchanges with reliable volume data, increase Move Strength to 1.4–1.6, increase Min Sweep Depth to 0.25×
Indices (NAS100, US30) — enable Session Filter to 09:30–16:00, enable Volume Confirmation, set Min Grade to A for cleaner signal quality
More zones and signals — reduce Move Strength to 1.0, lower Min Grade to C, disable Fresh Zones Only, disable One Signal Per Zone
Fewer, highest-quality signals only — raise Min Grade to A or A+, enable Volume Confirmation, enable HTF Zones, set VWAP Boosts Grade on. Only A+ zones with VWAP and HTF alignment will produce signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🏛 Supply and demand traders — FORTRESS is the most complete quantitative implementation of supply and demand zone trading available in the AlphaX suite. Every concept — zone quality, freshness, grade, mitigation, sweep detection — is encoded objectively and applied consistently
📊 Traders who want data on their strategy — the live backtest statistics tracker provides immediate, chart-specific feedback on how the current configuration is performing without leaving the platform
🥇 Gold (XAUUSD) and forex traders — supply and demand zone mechanics are most consistent on highly liquid institutional instruments. Default settings are calibrated for gold and major pairs
🌐 Multi-timeframe traders — the HTF zone overlay and VWAP confluence create a natural two-timeframe framework within a single indicator
🧠 Systematic traders — every entry parameter is quantified and configurable. The grading system replaces subjective zone quality assessment with objective numerical scoring
💧 Stop hunt and sweep traders — the dedicated sweep signal mode is purpose-built for traders who specifically want to enter on liquidity grab and reclaim events at institutional zones
⚠ Traders who want to stop chasing entries — FORTRESS enforces patience by design. You wait for institutional zones to form, wait for price to return, wait for the rejection candle, and wait for all filters to confirm — discipline is built into the system architecture
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Zone detection, grading, mitigation, and signal logic all finalize on confirmed bars only
The live backtest statistics use ATR-based fixed targets and stops for tracking purposes. These are not the same as any broker-level trade execution. The purpose is configuration tuning, not performance reporting
Maximum 200 boxes, 200 labels, and 100 lines are rendered. On charts with long history and frequent zone formation, the oldest zones are automatically removed by TradingView's rendering limits. The Max Active Zones / Side setting provides additional control over zone count
HTF zone detection uses Pine Script's request.security function with lookahead off — HTF zones are non-repainting and reflect the HTF close price at each lower timeframe bar
The PD Zone equilibrium is calculated from the highest high and lowest low over the Dealing Range Length. On strongly trending instruments this level will shift progressively — it is a relative measure within the recent range, not a fixed level
The session VWAP resets at each session's first bar. For 24-hour crypto instruments, the VWAP anchors to the first bar of each calendar day. Consider disabling the VWAP grade boost on instruments where session definition is ambiguous
The sweep signal mode and standard zone rejection signal mode are independent. A zone that produces a sweep signal is marked as used (when One Signal Per Zone is enabled), preventing a subsequent standard rejection signal from the same zone — ensuring only one entry per zone regardless of which entry type fires first
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who believe that the strongest entries are not found by predicting where price will go — but by knowing exactly where institutions have left their orders waiting.
Chỉ báo Pine Script®






















