[ A L P H A X ] CADENCE - Elliott Wave + Fibonacci + StructureAlphaX CADENCE — Elliott Wave + Fibonacci + Market Structure Engine: Live W2/W4 Golden Zone Pullbacks, W3 Momentum Breakout, RSI Divergence Exit Warnings & Fibonacci Extension Targets
AlphaX CADENCE is a professional-grade Elliott Wave and Fibonacci confluence system built around the most powerful and time-tested framework in technical analysis — the five-wave impulse and three-wave corrective structure that governs institutional price delivery across all timeframes and all markets. Where most Elliott Wave indicators focus on labeling historical waves after the fact, CADENCE is engineered for live trade execution : it identifies the current wave phase in real time, marks the active golden Fibonacci pullback zone, and fires entry signals at the precise moment price enters the optimal entry window with market structure, higher timeframe bias, volume, and momentum confirmation all aligned. Four setup types — Wave 2 Golden Zone, Wave 4 Golden Zone, Wave 3 Momentum Breakout, and ABC Correction End — cover both pullback and breakout entries within the Elliott Wave framework. A dedicated RSI divergence exit warning system alerts you to potential Wave 5 exhaustion before the reversal strikes. Fibonacci extension targets (TP1 at Wave 1 high, TP2 at 1.618× extension) are computed automatically from the identified impulse leg. Designed for traders who want the rigor of Elliott Wave theory applied with quantitative precision, across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
〰 The Elliott Wave Framework — Why Institutional Price Moves in Waves
Elliott Wave theory is one of the oldest and most institutionally respected frameworks in technical analysis. Its core observation is that market prices do not move randomly — they move in structured, repeating patterns that reflect the collective psychology of all participants. The primary pattern is the five-wave impulse:
Impulse wave structure (bull):
Wave 0 → Wave 1: The initial impulse move — institutions begin accumulating, price moves sharply higher
Wave 1 → Wave 2: The first pullback — retail traders who missed the initial move sell back gains; Wave 2 never fully retraces Wave 1
Wave 2 → Wave 3: The most powerful wave — institutional participation accelerates, Wave 3 is typically the longest and strongest impulse
Wave 3 → Wave 4: A corrective pullback after Wave 3's extension, typically shallower than Wave 2; Wave 4 never enters Wave 1's territory in a valid impulse
Wave 4 → Wave 5: The final impulse leg, often accompanied by declining momentum and RSI divergence as the move exhausts
Why the golden zone matters: Waves 2 and 4 are the pullback waves — the retracement phases where price temporarily retreats before the next impulse. The Fibonacci golden zone (61.8%–38.2% retracement of the prior wave) is where these pullbacks most frequently terminate and reverse. Entering at the golden zone means entering with the lowest possible risk relative to the impulse target — the tight stop is at the wave invalidation level, and the target is the next wave's extension.
CADENCE is built to detect when the market is in a Wave 2 or Wave 4 pullback, when price has entered the golden zone, and when a qualified rejection candle confirms the reversal — producing entries at the statistically optimal Fibonacci reversal level within a confirmed Elliott Wave structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌊 The Wave Engine — Pivot-Based Leg Classification
CADENCE uses a real-time swing pivot detection system to classify the current Elliott Wave phase from confirmed price structure. On every bar, confirmed fractal pivot highs and lows are collected into a rolling swing array (configurable depth, default: 8 swings). The alternating sequence of highs and lows is then pattern-matched against Elliott Wave leg configurations.
3-swing classification (W2 phase):
When the three most recent confirmed swings form the pattern Low → High → Low (for bull impulse), CADENCE identifies:
W0 at the first low (impulse origin)
W1 at the high (impulse peak)
W2 in progress at the current low (the pullback)
If W1 is above W0 (valid impulse direction), the wave phase is classified as W2 PULL — the system is watching for the golden zone entry.
5-swing classification (W4 phase):
When five confirmed swings form Low → High → Low → High → Low (bull), CADENCE identifies all five wave points (W0 through W4). When W3 is above W1 (confirming the wave hierarchy) and W1 is above W0, the phase is classified as W4 PULL — the system is watching for the Wave 4 golden zone entry before the final Wave 5 push.
Wave phase display: The current wave phase is displayed prominently on the dashboard as W2 PULL, W4 PULL, CORR, or SCAN. This single row tells you exactly where CADENCE believes the market is in its current impulse cycle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Fibonacci Golden Zone — The Optimal Entry Window
The Fibonacci golden zone is the price range between the 38.2% and 61.8% retracement of the prior impulse wave. This zone, sometimes called the "golden pocket," represents the most common termination range for corrective waves within a healthy impulse structure.
Wave 2 golden zone calculation:
Zone top = W1 − (W1 − W0) × 38.2%
Zone bottom = W1 − (W1 − W0) × 61.8%
Three Fibonacci levels displayed: 38.2% (dotted), 50.0% (solid, the equilibrium), 61.8% (dotted)
Wave 4 golden zone calculation:
Computed from the W2 → W3 leg rather than the W0 → W1 leg, reflecting that Wave 4 corrects Wave 3 specifically:
Zone top = W3 − (W3 − W2) × 38.2%
Zone bottom = W3 − (W3 − W2) × 61.8%
Golden zone visualization:
A semi-transparent box spans the golden zone from the prior wave's start bar to 15 bars beyond the current bar. Yellow-green for bull zones, red for bear zones. The box extends forward in real time — you can see the target zone approaching as price pulls back toward it.
In-zone detection:
Price is considered inside the golden zone when the bar's low (bull) or high (bear) reaches within the zone boundaries AND the candle closes on the correct side of the zone. The close-inside condition ensures the touch is a genuine rejection from within the zone rather than a pass-through.
Live Fibonacci levels:
The 38.2%, 50%, and 61.8% retracement lines are plotted from the Wave 1 pivot bar to 15 bars beyond current, updating in real time as the wave structure develops. The 50% line is plotted as a brighter solid line — the golden pocket midpoint.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Four Live Setup Types
CADENCE fires signals through four distinct entry setups, each targeting a specific phase of the Elliott Wave cycle. Each has different risk/reward characteristics and different position within the wave sequence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W2 Golden Zone — Wave 2 Pullback Entry
The most frequent high-conviction setup. Fires when price retraces into the 38.2%–61.8% golden zone of Wave 1 during an identified Wave 2 correction.
Full conditions for long:
Bull impulse identified (three-swing pattern W0→W1→W2)
Wave phase is W2 PULL
Market structure is bullish (or HTF is bullish as a fallback)
The bar's low has entered the golden zone (between 38.2% and 61.8% retracement)
The bar closes above the zone bottom — confirming rejection, not breakdown
Wave 2 (the pullback) is holding above Wave 0 (the impulse origin) — the Elliott Wave rule that W2 never fully retraces W1 is validated
The impulse leg (W1 − W0) is at least the minimum size (default: 1.0× ATR) — filtering micro-waves
A qualifying bull trigger candle (rejection wick above 48% of range or bullish engulfing) is present
Stop placement: Below the minimum of W2 and W0 (the prior impulse origin) plus the ATR buffer. If price violates Wave 0, the impulse structure is invalid by Elliott Wave rules.
Targets: TP1 at W1 (the prior wave high); TP2 at the close plus 1.618× the impulse leg distance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W4 Golden Zone — Wave 4 Pullback Entry
The higher-conviction pullback setup. Wave 4 occurs after Wave 3 — the strongest and longest wave — has completed. The W4 correction offers the final opportunity to enter before Wave 5.
Key differences from W2:
Requires confirmed market structure (structure == 1 for bull, not just HTF fallback) — Wave 4 entries demand structural confirmation
Golden zone is computed from the W2 → W3 leg (correcting Wave 3, not Wave 1)
Requires five confirmed swings (W0 through W4) — a more mature wave count
Why W4 is high-conviction: By the time a Wave 4 is identifiable, the impulse sequence has completed three waves with Wave 3 confirming above Wave 1. The institutional participants who accumulated during Wave 2 are in strong profit and will add to positions during Wave 4. The golden zone for Wave 4 is the most actively defended pullback level in the entire five-wave sequence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W3 Momentum Breakout — Wave 3 Entry
The highest-momentum setup. Fires when price breaks above the Wave 1 high (bull) or below the Wave 1 low (bear) during a Wave 2 or Wave 4 pullback phase — the moment Wave 3 begins.
Long conditions:
Wave phase is W2 PULL or W4 PULL (the correction is completing)
Price closes above the last identified swing high (the Wave 1 level) in a single bar
The prior bar was at or below the breakout level
Market structure is bullish
Impulse leg size meets the minimum threshold
The W3 breakout philosophy: The Wave 3 breakout is the moment institutional participation accelerates explosively — the "Wall of Worry" is cleared and the crowd that was short begins covering. Entering at this exact bar captures the beginning of the fastest and largest wave of the impulse. The risk is paying a higher price than the golden zone pullback entries, but the momentum confirmation is unambiguous.
Target for W3 entries: TP1 is at entry + the full impulse leg distance (projecting a Wave 3 equal to Wave 1); TP2 is at the 1.618× extension.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ABC Correction End — Three-Wave Reversal Entry
The counter-trend corrective setup. Disabled by default — the lower-conviction alternate wave scenario. Fires when a three-wave ABC correction retraces to the 61.8% level of the prior impulse with a rejection candle.
ABC conditions (bull):
Three-swing pattern confirms an ABC correction structure (Low → High → Low within a bull structure)
Price reaches the 61.8% retracement of the A leg from the B peak
Close recovers back above the 61.8% level
Bull trigger candle confirms
Why ABC is off by default: ABC entries are counter-corrective — they attempt to catch the end of a pullback at a single Fibonacci level without the full five-wave context. They work well when the prior impulse was clean and the ABC is proportional, but carry higher failure rates in choppy or range-bound conditions. Enable this setup only after studying its behavior on your specific instrument and timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ W5 RSI Divergence Exit Warning System
One of CADENCE's most valuable risk management features is the dedicated Wave 5 exhaustion detection system. When price is making new highs in a bull structure but the RSI is simultaneously making lower highs — a classic bearish divergence — the system plots small orange circles above the relevant bars as exit warnings.
How the divergence is detected:
Using confirmed pivot highs and lows from both price and RSI, CADENCE identifies:
Bearish divergence (bull W5 exhaustion): Price's pivot high exceeds the prior pivot high, but RSI's corresponding pivot is below its prior reading — price strength is not confirmed by momentum
Bullish divergence (bear W5 exhaustion): Price's pivot low is below the prior low, but RSI's reading is above its prior — selling momentum is fading at lower prices
Why W5 divergence is the most important Elliott Wave exit signal: Wave 5 is structurally the most exhausted wave — it occurs after four prior waves have already moved in the impulse direction, and is frequently accompanied by declining institutional participation. RSI divergence at Wave 5 is the most reliable early warning of the corrective ABC wave that follows. The small orange circles appear at the divergence bars — not blocking entry signals (divergence can persist for multiple bars) but providing continuous awareness that the impulse is aging.
These exit warnings fire separate alert conditions — CADENCE W5 Exit Bear and W5 Exit Bull — allowing you to set targeted notifications that prompt profit-taking on active wave trades.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 10-Layer Confluence Engine
Every setup is scored through a 10-layer confluence system. The default minimum is 4 of 10, producing a relatively permissive signal environment. Raising the minimum to 6–7 restricts signals to the highest-conviction wave setups only.
Layer 1 — Market Structure (1 point):
The current market structure state (bull or bear from the BOS/CHoCH engine) aligns with the signal direction. A W2 Golden Long in a bullish structure scores this point. A W2 Golden Long against a bearish structure does not.
Layer 2 — Fibonacci Zone (1 point):
Price is inside the applicable golden zone (W2 zone for W2 entries, W4 zone for W4 entries). For W3 and ABC entries, this layer is always credited since those setups do not require Fibonacci zone confirmation.
Layer 3 — Trigger Candle (1 point):
A qualifying bull or bear trigger candle is present — either a rejection pin bar (lower wick above 48% of range for bull) or a bullish engulfing. For W3 momentum entries, this layer is always credited since the breakout bar itself is the trigger.
Layer 4 — HTF Bias (1 point):
The higher timeframe EMA structure agrees with the signal direction. Can be set as a hard block (requireHtf = on) or as a soft scoring layer (default: off). When HTF is disabled, this layer awards 1 neutral point.
Layer 5 — Volume Expansion (1 point):
Current bar volume exceeds the volume moving average by the configured multiplier (default: 1.1×). Confirms institutional participation on the entry bar.
Layer 6 — Non-Chop Market (1 point):
Choppiness Index is below the configured threshold. Also enforced as a hard gate — extreme chop blocks all signals regardless of wave count quality.
Layer 7 — RSI Zone (1 point, optional):
RSI is in the appropriate zone for the signal direction — above the minimum for longs (default: 38), below the maximum for shorts (default: 62). Off by default — when enabled, adds a momentum context filter.
Layer 8 — EMA Trend Filter (1 point, optional):
Price is on the correct side of the configurable EMA. Off by default — when enabled, adds a trend alignment filter.
Layer 9 — RSI Momentum (1 point, optional):
RSI is actively rising (bull) or falling (bear) on the current bar — momentum is accelerating in the signal direction. Off by default.
Layer 10 — Base Credit (1 point):
A flat credit awarded to all qualifying setups — the minimum point that acknowledges the setup type itself has passed its structural requirements. This ensures that even with optional filters disabled, the maximum achievable score is 10.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Fibonacci Extension Targets — Automatic TP Calculation
Every CADENCE signal produces two automatically computed take profit levels based on the identified impulse wave measurement.
TP1 — Wave 1 High / Wave Projection:
For W2 and W4 golden zone entries, TP1 is set at the prior Wave 1 level — the high that preceded the current pullback. This is the minimum structural target: the expectation that Wave 3 or Wave 5 will at least reclaim Wave 1's high. For W3 momentum entries, TP1 is set at entry plus the full impulse leg distance (Wave 3 = Wave 1 in length).
TP2 — 1.618× Extension:
The primary Fibonacci extension target, computed as `entry + impulse_leg × 1.618`. The 1.618 extension (the Golden Ratio) is the most common Wave 3 termination level and a standard Wave 5 target when Wave 3 is extended. This level is configurable (default: 1.618, range: 1.0–2.618).
Visual output: TP1 is plotted as a lime-green dotted line. TP2 is plotted as a bright yellow-green dashed line at width 2. Both extend forward by the configured guide bars (default: 35). The stop loss is plotted as a red dotted line below the wave invalidation level plus ATR buffer.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 9-row real-time dashboard displays the complete wave analysis state.
Wave Phase — W2 PULL, W4 PULL, CORR, or SCAN. The current position within the Elliott Wave cycle. Purple color
Structure — BULL MS (bullish market structure), BEAR MS (bearish), or RANGE (no clear structural direction)
Setup — the current or most recent setup name: W2 GOLDEN, W4 GOLDEN, W3 BREAK, ABC END, ARM LONG (golden zone approached but not yet triggered), ARM SHORT, or —. Color-coded by directional bias
Layers — the current confluence score out of 10. Yellow-green when at or above the minimum threshold
Chop — live Choppiness Index value. Yellow-green when clear, red when above the stand-aside threshold
TP1 — the current or most recent TP1 level. Shows — between signals
TP2 — the current or most recent TP2 level
HTF — the higher timeframe EMA bias: UP, DOWN, or MIX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Live Wave Path Lines — lines connecting the most recent confirmed swing pivots, color-coded yellow-green for bull impulse and red for bear impulse. Shows the current wave sequence structure directly on the price chart
Golden Zone Box — semi-transparent box spanning the 38.2%–61.8% Fibonacci retracement zone from the prior wave. Yellow-green for bull, red for bear. Extends 15 bars forward and updates in real time as the wave structure evolves
Fibonacci Levels — three horizontal dotted/solid lines at 38.2%, 50%, and 61.8% retracement from the Wave 1 pivot bar. The 50% level is the brightest solid line — the golden pocket center
▲ Triangle (below bar, bright yellow-green) — bull entry signal. W2 Golden, W4 Golden, W3 Breakout, or ABC End
▼ Triangle (above bar, bright red) — bear entry signal
● Orange Circle (above bar) — W5 bearish RSI divergence exit warning
● Orange Circle (below bar) — W5 bullish RSI divergence exit warning
Entry Line (bull/bear color dashed) — entry close level extending guideExtend bars forward
Stop Loss Line (red dotted) — structural stop below wave invalidation level plus ATR buffer
TP1 Line (lime dotted) — first target at Wave 1 high or equal-leg projection
TP2 Line (bright yellow-green dashed, width 2) — 1.618× Fibonacci extension target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX CADENCE — Step by Step
Step 1 — Read the Wave Phase
Check the Wave Phase row on the dashboard. W2 PULL or W4 PULL means the system has identified a valid pullback phase — a setup may be approaching
Confirm Structure — BULL MS for long setups, BEAR MS for short. If Structure shows RANGE, the wave context is weaker
Check the golden zone box on the chart. Is it near current price? Is price approaching from above (bull W2 pullback)?
Step 2 — Watch the Golden Zone Approach
When Setup shows ARM LONG, price is approaching the golden zone. Watch for a rejection candle forming inside or at the zone boundary
Check Layers — if it is approaching the minimum threshold, a signal is likely imminent. Check HTF to confirm the macro direction
The Fibonacci levels on the chart show the exact 38.2%, 50%, and 61.8% prices — monitor for price rejection specifically at the 61.8% level (the deepest golden zone entry) for the highest-conviction golden pocket entry
Step 3 — Enter on the Triangle Signal
A ▲ triangle below the bar confirms all wave, Fibonacci, structural, and confluence conditions are met simultaneously. The setup name shows on the dashboard (W2 GOLDEN, W4 GOLDEN, W3 BREAK, ABC END)
The SL line is at the structural wave invalidation level — if price closes below Wave 0 (W2 entries) or below Wave 2 (W4 entries), the Elliott Wave count is invalid. This is a structural stop, not arbitrary ATR
TP1 is at the prior Wave 1 high — the minimum expectation for the next impulse wave
TP2 is at the 1.618× Fibonacci extension — the classical Wave 3 or Wave 5 termination level
Step 4 — Monitor for W5 Exit Warnings
As price advances toward TP2, watch for the orange W5 exit warning circles appearing above (bear divergence) or below (bull divergence) price bars
When orange circles begin appearing regularly as price approaches TP2, consider taking full profit rather than holding for further extension
A W5 divergence warning combined with price near TP2 is the strongest exit signal the system produces
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Wave Phase shows SCAN or CORR — the system has not yet identified a clear impulse structure with sufficient pivot history. SCAN means fewer than 3 qualified swings are stored; CORR means the three-swing pattern does not satisfy the impulse directional rules. Do not force entries without clear wave context
Chop Index is red on the dashboard — the hard chop gate is active. Elliott Wave patterns are fundamentally trend-following structures and lose their predictive power in extreme chop. All signals are blocked
Structure shows RANGE — no clear bullish or bearish market structure is established. W2 and W4 golden zone entries without structural support are lower quality. Consider waiting for a CHoCH or BOS to establish directional structure before entering
Layers score is at minimum (4/10) with all optional filters disabled — the bare-minimum score means only the most basic conditions are met. In this environment, require a higher layer count (increase minimum to 5–6) or wait for more confluence factors to align
W5 exit warnings are already appearing when entering — if orange circles are appearing before a new entry signal fires, RSI divergence is already present. This suggests the wave is potentially in a late W5 stage rather than a healthy W2 or W4. Do not enter a new position when existing divergence warnings are active
Golden zone is very narrow (W4 zone nearly coincides with stop) — when the 38.2% and 61.8% levels are very close together (small Wave 3 leg), the golden zone provides minimal entry edge. The risk/reward is poor when the zone height is less than 0.5× ATR
The ideal CADENCE setup:
Wave Phase W4 PULL with confirmed 5-swing structure
Market structure BULL MS or BEAR MS — clear directional bias
Price at or near the 61.8% golden zone boundary — the deepest valid pullback
HTF aligned with impulse direction
Volume expanding on the rejection bar
Layers at 7–8 out of 10
No W5 divergence warnings on the current sequence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
〰 Real-time Elliott Wave classification — 3-swing (W2 phase) and 5-swing (W4 phase) pattern matching from confirmed fractal pivots, updated on every bar
📐 Adaptive Fibonacci golden zone — 38.2%–61.8% retracement zone computed from the current wave's impulse leg, rendered as a live box and three labeled levels updating in real time
📦 Live wave path visualization — lines connecting the most recent confirmed swing pivots, color-coded by impulse direction, showing the current wave sequence structure
🏷 Four setup types — W2 Golden Zone, W4 Golden Zone, W3 Momentum Breakout, and ABC Correction End (optional) — covering both pullback and breakout entries within the wave framework
📈 Fibonacci extension targets — TP1 at the Wave 1 high (minimum wave projection), TP2 at the configurable Fibonacci extension (default: 1.618×) automatically computed from the identified impulse leg
⚠ W5 RSI Divergence Exit Warning — pivot-based RSI divergence detection produces orange warning circles as price approaches potential Wave 5 exhaustion, with dedicated alert conditions
🧠 10-layer confluence engine — Market Structure, Fibonacci Zone, Trigger Candle, HTF Bias, Volume, Non-Chop, RSI Zone, EMA Filter, RSI Momentum, and Base Credit scored independently
🛡 Wave-anchored structural stop — SL placed below the Elliott Wave invalidation point (Wave 0 for W2 entries, Wave 2 for W4 entries) plus ATR buffer — not an arbitrary distance
📊 Live dashboard — Wave Phase, Structure, Setup, Layers, Chop, TP1, TP2, and HTF updated on every bar
📡 JSON alerts on FIRED — structured alert payload with weapon, side, setup name, entry, SL, TP1, TP2 for webhook integration
🔔 4 alert conditions — CADENCE Long, CADENCE Short, W5 Exit Bear Warning, W5 Exit Bull Warning
⚙ Fully configurable — pivot length, minimum leg size, Fibonacci zone levels, extension target, RSI divergence settings, all four setup enables, confluence minimum, HTF parameters, all optional filters, chop gate, SL buffer, guide bars, wave path and golden box display, dashboard size, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Wave Engine
Swing Pivot Length — fractal sensitivity for pivot detection (default: 5)
ATR Length — ATR calculation lookback (default: 14)
Min Leg Size (xATR) — minimum impulse leg height in ATR multiples for wave classification (default: 1.0)
Swings Stored — rolling swing array depth (default: 8)
Fibonacci Zones
Pullback Zone Low (Fib) — lower Fibonacci level of the golden zone (default: 0.382)
Pullback Zone High (Fib) — upper Fibonacci level (default: 0.618)
TP2 Extension — Fibonacci extension level for the full measured move target (default: 1.618)
Show Active Fib Levels — toggle the 38.2%, 50%, and 61.8% horizontal lines
Market Structure
BOS: Close Only — when on, structure breaks require a close beyond the swing level (default: on)
Live Setups
W2 / W4 Golden Pullback — toggle both golden zone entry setup types
W3 Momentum Breakout — toggle the Wave 3 breakout entry
ABC Correction End — toggle the corrective three-wave reversal entry (default: off)
W5 RSI Divergence Exit Warn — toggle the exit warning system
RSI Length — RSI calculation period (default: 14)
Divergence Lookback — bars for pivot-based RSI divergence detection (default: 14)
Confluence
Min Layers (of 10) — minimum score to fire a signal (default: 4)
Hard HTF Alignment — when on, counter-HTF signals are blocked (default: off)
HTF Trend Bias / HTF Timeframe / HTF Fast / HTF Slow EMA — higher timeframe parameters
Volume Confirm / Volume vs Avg / Volume Avg — volume expansion layer parameters
RSI Momentum Filter — optional RSI direction filter (default: off)
RSI Min (Long) / RSI Max (Short) — RSI zone thresholds when filter is enabled
EMA Trend Filter / EMA Length — optional EMA directional filter (default: off)
Block Extreme Chop / Choppiness Length / Chop Block Above — chop gate parameters
Signal Cooldown (bars) — minimum bars between signals (default: 8)
Entry / Exit Guides
Show SL + TP1 + TP2 — toggle the guide lines
SL Buffer (xATR) — ATR buffer beyond the wave invalidation point (default: 0.25)
Guide Extend (bars) — how many bars forward the guide lines project (default: 35)
Display
Show Live Wave Path — toggle the swing-to-swing connecting lines
Show Golden Zone Box — toggle the Fibonacci retracement zone box
Show Entry Markers — toggle signal triangles
Show Dashboard — toggle the full dashboard
Dashboard Text Size — Standard / Small
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Wave Up — yellow-green for bullish waves, signals, and zones
Bear / Wave Down — red for bearish elements
Fib / Wave Accent — purple for Fibonacci levels, wave path, and neutral zone elements
W3 / Exit Accent — orange for W3 breakout accents and W5 exit warning markers
Stop Line / TP1 Line / TP2 Line — individual guide line colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (4 total + JSON)
Entry Alerts
CADENCE Long — all wave, Fibonacci, structure, and confluence conditions confirmed. JSON payload delivered with setup, entry, SL, TP1, TP2
CADENCE Short — all conditions confirmed for a short wave setup. JSON payload delivered
Exit Warning Alerts
CADENCE W5 Exit Bear — bearish RSI divergence detected at a price pivot high in a bull structure. Wave 5 exhaustion may be approaching
CADENCE W5 Exit Bull — bullish RSI divergence detected at a price pivot low in a bear structure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M15–H4 :
Pivot Length at 5 — captures meaningful structural swings without excessive sensitivity on intraday timeframes
Min Leg Size at 1.0× ATR — filters micro-waves while capturing the significant legs that represent genuine Elliott impulses
Fibonacci zone from 38.2% to 61.8% — the classic golden zone that encompasses the highest-probability pullback termination range
HTF at 60-minute as a soft scoring layer — adds confluence when aligned without hard-blocking the counter-HTF wave setups that occasionally occur at institutional correction boundaries
ABC Correction End off by default — the corrective pattern carries more interpretation risk and is better enabled only when the user has studied Elliott corrective structures
For other instruments or timeframes, adjust:
M1–M5 scalping — reduce Pivot Length to 3, reduce Min Leg Size to 0.5, increase Cooldown to 5–6 bars, reduce Guide Extend to 15–20
H4–Daily swing trading — increase Pivot Length to 8–10, increase Min Leg Size to 1.5–2.0, increase TP2 Extension to 2.0–2.618, increase Min Layers to 5–6
Crypto (BTC, ETH) — increase Min Leg Size to 1.5 for the larger swing amplitudes, increase Fibonacci zone to 0.382–0.786 for the deeper corrections common in crypto waves
Higher confidence signals only — raise Min Layers to 6–7, enable Hard HTF Alignment, enable EMA Trend Filter and RSI Momentum Filter, disable ABC Correction End
More signals — lower Min Layers to 3, enable ABC Correction End, disable Volume Confirm, reduce Min Leg Size to 0.5
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
〰 Elliott Wave traders — CADENCE is the definitive quantitative implementation of the Elliott Wave trading framework for the AlphaX suite. Every component — swing identification, wave phase classification, golden zone computation, wave invalidation stop, Fibonacci extension target — is automated and applied consistently
📐 Fibonacci traders who want wave context — the Fibonacci zone in CADENCE is not a standalone level but a wave-specific retracement within a confirmed impulse structure. This context dramatically improves the reliability of Fibonacci entries compared to drawing retracement levels manually without wave classification
🎯 Pullback traders — the W2 and W4 golden zone setups are fundamentally the most optimal pullback entry in all of technical analysis — buying the deepest valid retracement within a confirmed trend impulse, with a stop at the structural invalidation point
⚡ Momentum traders — the W3 Momentum Breakout entry targets the beginning of the fastest and largest wave of the impulse sequence, providing explosive breakout entries within a wave-confirmed context
🧠 Systematic traders who want quantified wave analysis — the 10-layer scoring system and deterministic pivot-based classification replace the subjectivity of traditional Elliott Wave labeling with objective, repeatable criteria
📈 Traders who struggle with knowing when to exit trending trades — the W5 RSI divergence exit warning system provides early, systematic notification of impulse exhaustion — the most common and costly mistake in Elliott Wave trading is riding Wave 5 too long
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Pivot detection, wave classification, Fibonacci zone computation, and confluence scoring all finalize on confirmed bars only
Elliott Wave classification requires a minimum of 3–5 confirmed swings in the rolling array. On charts with fewer than 200 bars of history, the wave phase may show SCAN until sufficient pivot history accumulates
The wave path lines and golden zone box are redrawn on the last bar only for chart performance. Historical signal triangles and exit warnings are preserved on their original bars
The minimum leg size filter (default: 1.0× ATR) ensures that only waves with meaningful price movement are classified. Very small swings below the ATR threshold are ignored by the wave engine, preventing micro-structure noise from producing false wave counts
The W5 divergence detection uses pivot-based RSI comparison with a configurable lookback. The detection is based on confirmed pivots and is non-repainting, but the divergence signal appears at the confirmation bar (pivLen bars after the actual pivot), not at the pivot bar itself
When both W2 and W4 conditions are simultaneously met (a rare occurrence in transition periods), W4 takes priority in the signal selection because W4 entries occur in more mature, structurally confirmed wave counts
The indicator does not automatically label historical waves — it focuses on the live wave phase and active entry setups. For historical wave labeling, combine with a standalone Elliott Wave labeling tool
The indicator does not track open positions or P&L and does not connect to any broker or account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 understand that markets move in waves — and who want a system precise enough to position them at the exact Fibonacci level where the next wave begins. Penunjuk

[ A L P H A X ] BASTION - Support & Resistance PatternsAlphaX BASTION — Support & Resistance Lattice Engine: Touch-Clustered Zone Detection, HTF Level Blending, Four Interaction Playbooks & Level-to-Level Target System
AlphaX BASTION is a professional-grade support and resistance system built around the concept of a lattice — a dynamic, self-updating grid of strength-scored price zones that are continuously constructed from fractal pivot clusters, blended with higher timeframe levels, decayed over time as they lose relevance, and scored by touch frequency and institutional significance. Unlike static horizontal line indicators or basic pivot systems, BASTION treats every support and resistance level as a living structure with a birth date, a touch history, an HTF weight, and a decay clock. Where most S/R systems simply identify levels and leave the trader to decide what to do, BASTION goes one step further: it monitors every active level for four specific micro-pattern interactions — DEFEND, SWEEP, RETEST, and COIL — and fires precision entry signals when those interactions occur at qualified levels with sufficient confluence. The target for every signal is not an arbitrary ATR multiple or measured move — it is the next Bastion level in the signal direction, the natural institutional delivery destination from one defended wall to the next. Designed for traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏰 The Lattice — A Self-Building Defended Price Map
The word "lattice" captures the core concept precisely: BASTION constructs an interconnected grid of defended price levels that represents the current institutional support and resistance landscape. This lattice is not drawn manually, not imported from a fixed timeframe, and not redrawn from scratch on every bar. It is built incrementally — growing as new pivots form, strengthened as levels are retested, and pruned as levels age beyond their relevance window.
How the lattice is constructed:
On every bar, BASTION detects confirmed fractal pivot highs and lows (using a configurable pivot length, default: 5 bars each side). Each new pivot is fed into the lattice's merge algorithm:
If the new pivot is within the merge tolerance (default: 0.22× ATR) of an existing level, it merges with that level — the level's midpoint shifts to the weighted average of all contributing pivots, the touch count increments, the zone boundaries expand if necessary, and the last touch timestamp updates
If the new pivot is farther than the merge tolerance from any existing level, a new level is created with the pivot as its midpoint, zone height of ±0.18× ATR above and below, touch count of 1, and the current bar as its birth bar
When the number of levels per side exceeds the configured maximum (default: 4), the oldest level is dropped from the end of the array
Level decay:
Levels that have not been touched in more than the configured decay period (default: 250 bars) are pruned automatically. This ensures the lattice reflects current institutional market memory rather than accumulating ancient, irrelevant levels that clutter the chart and produce false signals.
Why touch clustering produces better levels than standard S/R: A single pivot high at a price is a weak level — it represents one instance of sellers overwhelming buyers. The same price area touched three times across different sessions represents a genuine institutional order cluster — the level where significant participants have repeatedly defended their position. BASTION's weighted averaging and touch counting system identifies these genuine defended levels and distinguishes them from noise pivots.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 HTF Level Blending — Multi-Timeframe Institutional Walls
Every Bastion level is either a current timeframe pivot cluster or a higher timeframe structural level . When Show HTF Swing Levels is enabled (default: on), BASTION pulls pivot highs and lows from the configured HTF (default: H4) and feeds them into the same merge algorithm as current timeframe pivots.
HTF levels receive a special weight in the strength calculation: +2 additional strength points beyond their touch count. This reflects the institutional significance differential — a resistance level formed on H4 represents a zone where a much larger institutional participant defended their position, and carries proportionally more weight than a current timeframe pivot at the same price.
HTF levels are visually distinguished: HTF-sourced zones are rendered with a slightly different purple color (slateblue rather than the standard purple), and HTF-contributing midlines use a thicker dashed line (width 2 vs 1 for standard levels). This allows you to immediately identify which levels have higher timeframe structural backing.
How HTF blending works in practice: When an H4 resistance level is at 2490.00 and a current timeframe resistance forms at 2491.50 — within the merge tolerance — they merge into a single strengthened level. The merged level receives the touch count of both the HTF pivot and any current timeframe retests, plus the HTF weight bonus, making it one of the strongest levels in the lattice. This is the precise behavior of real institutional support and resistance: the H4 level acts as the anchor, and intraday touches confirm it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 Level Strength Scoring
Every level in the lattice has a dynamically computed strength score used to qualify signals and sort level priority.
Strength components:
Touch count — the primary strength component. Each time a new pivot merges into the level, touch count increments. A level with 4 touches is significantly stronger than one with 1
HTF bonus (+2) — levels that have HTF pivot contributions receive 2 additional strength points, reflecting their higher institutional significance
Recency bonus (+1) — levels born within the last 80 bars receive 1 additional point. Fresh levels that were recently created and immediately retested carry more immediate institutional relevance than older levels with the same touch count
Minimum strength gate: Signals are blocked from firing at levels with strength below the configured minimum (default: 2 touches). This single filter eliminates the single most common false signal in S/R trading — entering at an untested level that has not proven itself as a genuine defended zone.
Strength display on dashboard: The nearest support and resistance levels are displayed on the dashboard with their strength scores in brackets — e.g., "2450.50 " means the level at 2450.50 has a strength score of 4. At a glance, you know which levels are most defended.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎮 The Four Interaction Playbooks
The lattice provides the structural map. The playbook engine defines what to do when price arrives at a lattice level. Four specific micro-pattern interactions are monitored continuously — each representing a different way price can interact with a defended wall and a different entry scenario.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DEFEND — Wick Rejection at Level
The most common and cleanest S/R interaction. A wick rejection candle forms when price tests the level and is immediately repelled — buyers overwhelm sellers at support, or sellers overwhelm buyers at resistance, within a single candle.
Long conditions (support DEFEND):
The current bar's low is within the proxAtr distance of the nearest support level
The lower wick exceeds the configured minimum (default: 52% of bar range) — a dominant rejection wick
The close is in the upper quarter of the bar (above bodyBot + 25% of range)
The close is above the zone bottom — price rejected from inside the zone
The DEFEND signal tells you: The support level absorbed the selling pressure on this bar with a clear institutional response. The wick is the signature of buyers stepping in aggressively at the defended zone. This is the most textbook S/R signal available and the highest-frequency of the four playbooks.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SWEEP — Liquidity Grab + Reclaim
The institutional stop-hunt interaction. Price breaches the zone boundary to trigger stop orders, then immediately reverses and closes back inside the zone.
Long conditions (support SWEEP):
The current bar's low extends below the zone bottom by more than the minimum sweep depth (default: 0.12× ATR) — stop orders below support have been triggered
The bar closes above the zone midline — the reclaim is decisive, not just touching the boundary
The bar closes bullish (close above open) — institutional buying drove the recovery
Why SWEEP is the highest-conviction signal: A liquidity sweep at a lattice level combines two layers of institutional evidence. The level itself has been defended multiple times (touch count) and has institutional order significance. The sweep event confirms that institutions actively used the liquidity pool below the level to fill their buy positions — the same sweep-and-reclaim dynamic that underlies MAGNET, but now occurring specifically at a pre-qualified lattice level with known strength.
The SWEEP playbook carries a confluence bonus (+1 layer point) because of this elevated institutional evidence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RETEST — Break Then Hold (S/R Flip)
The classic support-becomes-resistance and resistance-becomes-support interaction. Price previously broke through the level from the other side, and is now returning to test the flipped level.
Long conditions (support RETEST):
Within the lookback window (default: 12 bars), the close was below the zone bottom — a genuine prior breakdown
The current bar's low is within the zone and the close is above the zone midline — the retest from above is holding
The current bar closes bullish
The RETEST signal captures: The moment when a broken resistance becomes confirmed new support. When a level that previously acted as resistance is broken, retail traders who were long above the level are stopped out or become sellers. When price returns to test the level from above — and the close holds above the midline — the same institutional level that attracted sellers is now attracting buyers who missed the initial breakout. This is the "second chance" entry that offers excellent risk/reward relative to the original breakout candle.
The RETEST playbook also carries a confluence bonus (+1 layer point).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COIL — Compression into Level
The pre-breakout compression interaction. Price has been ranging with narrow ATR bars approaching the level — a coiling squeeze that frequently precedes an explosive directional move.
Long conditions (support COIL):
The last N bars (default: 4) each have an ATR of less than 0.75× the overall ATR — the market is compressing with below-average volatility
The close is within the proxAtr distance of the support level — the compression is occurring directly at the lattice level
The close is above the zone midline — the compression is occurring on the correct side of the level
The COIL signal captures: The energy-building phase at a defended level. When price approaches a lattice level with declining volatility over multiple bars, it indicates the institutional response to that level is suppressing price movement — buyers and sellers are in equilibrium at the level, but the institutional bias (toward defending it as support or resistance) creates a coiled spring. The first decisive bar after the coil frequently produces a large directional move.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Level-to-Level Target System — The Bastion's Unique Approach
Every other entry system in the AlphaX suite uses ATR multiples, Fibonacci measured moves, or pattern heights to compute take profit targets. BASTION uses none of these. The target for every BASTION signal is the next Bastion level in the direction of the trade.
For a long signal at support: The target is the nearest resistance level above the entry price in the current lattice. This is the next defended wall — the level where sellers are expected to step in and potentially cap the move.
For a short signal at resistance: The target is the nearest support level below the entry price — the next defended wall where buyers are expected to step in.
Why level-to-level targeting is superior to measured moves for S/R trading: The market does not move from support to an arbitrary ATR multiple above. It moves from support to resistance — from one institutional wall to the next. Using the actual lattice level as the target ensures the trade is exited at the next genuine institutional interaction point rather than at an arbitrary mathematical distance. This aligns the trade's exit with the same institutional framework that generated the entry.
NEXT WALL TGT on dashboard and chart: The target level is displayed on the dashboard as NEXT WALL TGT and plotted as a yellow-green dashed line on the chart labeled "NEXT WALL." When no opposing lattice level is currently qualified (the target would be beyond the available lattice), the system shows — rather than fabricating a target.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 7-Layer Confluence Engine
Every playbook signal is evaluated through a 7-layer scoring system. Signals below the minimum layer count (default: 4) are suppressed.
Layer 1 — Level Strength (1 point):
The interacted level meets the minimum strength threshold (touch count + HTF bonus + recency bonus ≥ minimum). Levels that do not meet this floor cannot produce signals regardless of playbook quality.
Layer 2 — HTF Trend Bias (1 point):
The higher timeframe EMA structure (default: 60-minute, 21/55 EMA) agrees with the signal direction. Bull signals require HTF bull, bear signals require HTF bear. When HTF bias is disabled, this layer is neutral (0 points). Note that the HTF bias is also enforced as a hard condition in the signal firing logic — signals opposing the HTF are blocked entirely when useHtfBias is on.
Layer 3 — Volume Expansion (1 point):
Current bar volume exceeds the volume moving average by the configured multiplier (default: 1.08×). Confirms institutional participation on the interaction bar.
Layer 4 — Non-Chop Market (1 point):
Choppiness Index is below the configured threshold (default: 62). Also enforced as a hard gate — extreme chop blocks all signals. S/R interactions during extreme chop frequently produce false breakouts and fake rejections.
Layer 5 — Playbook Bonus (1 point):
SWEEP and RETEST playbooks receive 1 additional point reflecting their elevated institutional evidence. DEFEND and COIL do not receive this bonus — they are valid but carry less structural confirmation than a sweep reclaim or S/R flip.
Layer 6 — Bar Range Quality (1 point):
The current bar's range is at least 0.35× ATR — the interaction bar has sufficient price action to produce a genuine signal. Doji and near-doji bars in critical zones do not score this point.
Layer 7 — Session Active (1 point):
The current bar is within the configured active session window when the session filter is enabled. When the filter is off, this layer always contributes its point.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 14-row real-time dashboard displays the complete state of the lattice and the current signal context.
LATTICE
Nearest Sup — the price of the nearest support level below current price, with its strength score in brackets (e.g., "2450.50 "). Yellow-green color
Nearest Res — the price of the nearest resistance level above current price with strength score. Red color
Zone Count — the total number of active support and resistance levels in the lattice (e.g., "3 sup · 4 res"). Provides awareness of how populated the current lattice is
PLAYBOOK
State — the current playbook state: the active playbook name (DEFEND, SWEEP, RETEST, COIL) when a signal just fired; WATCH WALLS during the inter-signal period
Bias — ▲ LONG or ▼ SHORT when a signal fired; NEAR RES, NEAR SUP, or MID-RANGE based on current price position relative to the lattice when idle
Next Wall Tgt — the price of the next opposing lattice level — the level-to-level target for the current trade
FILTERS
HTF Bias — ▲ BULL, ▼ BEAR, or — FLAT
Chop — live Choppiness Index value. Orange when above the stand-aside threshold
Volume — EXPAND (above threshold) or QUIET
Playbooks On — abbreviations of all currently enabled playbooks (DEF SWP RET COIL) for quick reference
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Resistance Zone Boxes (purple / slateblue) — semi-transparent boxes spanning each resistance level from its birth bar to 15 bars beyond current. Standard purple for current timeframe levels, slateblue for HTF-blended levels
Resistance Midlines (purple dashed) — the exact midpoint of each resistance zone. Width 1 for standard, width 2 for HTF levels
Support Zone Boxes (yellow-green) — semi-transparent yellow-green boxes for all active support levels
Support Midlines (yellow-green dashed) — support zone midpoints. Width 2 for HTF levels
⬡ Diamond (below bar, bright yellow-green) — BASTION long signal. Playbook fired at a support level with qualifying confluence
⬡ Diamond (above bar, bright red) — BASTION short signal
Playbook Label — appears above or below the signal diamond showing "BASTION LONG/SHORT" + playbook name + level price
SL Guide (red dotted) — stop loss below the zone bottom plus ATR buffer (long) or above zone top plus ATR buffer (short), extending 30 bars forward with "SL" label
NEXT WALL Guide (yellow-green dashed) — the level-to-level target extending 30 bars forward with "NEXT WALL" label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX BASTION — Step by Step
Step 1 — Read the Lattice
Check the NEAREST SUP and NEAREST RES rows on the dashboard. Note the strength scores in brackets. Levels with strength 4+ are the most defended — prioritize interactions at these levels
Look at the Zone Count row — a lattice with 3–4 levels on each side represents a well-populated market map. A sparse lattice (1–2 levels per side) means fewer reference points and potentially lower signal quality
Check whether the nearest support or resistance has HTF origin — the slateblue color on the chart or the higher strength score indicates institutional level significance
Step 2 — Monitor Price Approaching a Level
When the dashboard Bias row shows NEAR RES or NEAR SUP, price is approaching a lattice level within the proximity threshold. Watch for a playbook interaction to develop
Identify which playbook is most likely: Is price approaching with narrow bars (COIL)? Did price recently spike below (SWEEP potential)? Has the level previously been broken (RETEST setup)? Is price arriving with a clear wick forming (DEFEND setup)?
Check HTF Bias and Chop on the dashboard — both must be favorable before a signal can fire
Step 3 — Enter on the Diamond Signal
A ⬡ diamond below the bar confirms a qualifying long interaction. The playbook label shows which of the four setups fired and at which exact level
The SL guide shows the stop level — placed below the zone bottom plus ATR buffer (long) or above zone top plus buffer (short). This is the structural invalidation point: if price closes through the zone boundary in the wrong direction, the level has failed to defend
The NEXT WALL guide shows the target level — the next opposing lattice wall
SWEEP and RETEST signals carry the highest confluence (extra playbook layer point) — size these entries at full allocation. DEFEND and COIL at standard allocation
Step 4 — Manage to the Next Wall
The trade targets the NEXT WALL level shown on the chart. As price approaches that level, watch for rejection signals in the opposing direction — if BASTION fires a signal at the target level against your trade, this is a natural exit point
Monitor the lattice continuously — new levels may form during the trade that become relevant intermediate targets or stop adjustment points
If the lattice map shifts significantly (a level is pruned by decay or a strong new level forms), reassess the trade's target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Chop Index is orange on the dashboard — the hard gate is active. No signals fire in extreme chop. S/R levels lose their predictive power when the market is oscillating — every touch becomes ambiguous
Zone Count shows 1–2 levels per side — a sparse lattice means the system has insufficient structural reference. The market may be trending strongly through all levels or may be too early in the session to have built meaningful clusters. Wait for the lattice to populate
Nearest level strength is 1 — the minimum strength gate will block signals at untested levels, but if the nearest levels all show , the lattice is populated with fresh, unproven levels. Increase the minimum level strength in settings to require at least 2–3 touches
HTF Bias shows FLAT — no higher timeframe directional conviction. Counter-trend S/R interactions in a flat HTF environment fail at a higher rate because neither institutional buyers nor sellers have committed to a directional view
NEXT WALL TGT shows — — no opposing qualified level exists in the lattice above (for longs) or below (for shorts). Without a level-to-level target, the trade lacks a natural exit framework. Consider skipping signals when no next wall target is available
Playbook is COIL at a level with strength 2 — a coil at a weak, lightly-tested level carries the lowest probability of the signal matrix. COIL at high-strength (4+) levels with HTF backing is a quality setup; COIL at minimum-strength levels is marginal
The ideal BASTION setup:
Support or resistance level with strength 4+ (multiple touches, ideally HTF-blended)
HTF Bias aligned with the trade direction
SWEEP or RETEST playbook (highest confluence bonus)
Volume expanding on the interaction bar
Chop Index well below threshold
Clear NEXT WALL target on the opposing side of the lattice
Signal layers at 6–7 out of 7
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🏰 Dynamic S/R lattice — self-building, self-pruning grid of touch-clustered support and resistance zones. New pivots merge into existing levels, incrementing touch counts and adjusting zone boundaries automatically
📡 HTF level blending — H4 (or any configurable HTF) pivot levels fed into the same lattice with a strength bonus, producing a multi-timeframe S/R map in a single indicator
💪 Level strength scoring — touch count + HTF bonus + recency bonus produces a composite strength score for every level. Minimum strength gate blocks signals at untested levels
⏱ Level decay — zones older than the configurable decay period are automatically pruned, keeping the lattice relevant to current institutional market memory
🎮 Four interaction playbooks — DEFEND (wick rejection), SWEEP (liquidity grab + reclaim), RETEST (S/R flip), COIL (compression) — each detecting a different institutional level interaction scenario
🎯 Level-to-level target system — take profit targets the next opposing lattice wall rather than an arbitrary ATR multiple or measured move. The most institutionally grounded target method available
🛡 Zone-anchored stop loss — stop placed beyond the zone boundary plus configurable ATR buffer, at the structural invalidation point for each interaction type
🧠 7-layer confluence engine — Level Strength, HTF Trend Bias, Volume, Non-Chop, Playbook Bonus, Bar Range Quality, Session Active
📊 Live lattice dashboard — Nearest Support/Resistance with strength scores, Zone Count, active Playbook, Bias, Next Wall Target, and all filter states
🎨 Phase-coded zone visualization — resistance zones in purple/slateblue, support zones in yellow-green. HTF levels distinguished by color shade and line width
🔔 2 alert conditions + runtime alerts — Bastion Long and Bastion Short with level price and target in the alert message
⚙ Fully configurable — pivot length, zone merge and half-height tolerances, max levels per side, level decay, HTF timeframe for levels, all four playbook enables, proximity, wick minimum, sweep depth, retest lookback, coil bars, minimum level strength, confluence minimum, HTF bias timeframe and EMAs, volume filter, chop gate, session, cooldown, SL buffer, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
S/R Lattice
Swing Pivot Length — fractal sensitivity for pivot detection (default: 5)
Zone Merge (xATR) — ATR distance within which new pivots merge into existing levels (default: 0.22)
Zone Half-Height (xATR) — ATR distance above and below each level midpoint defining the zone boundaries (default: 0.18)
Max Levels per Side — maximum active resistance and support levels maintained simultaneously (default: 4 each)
Level Decay (bars) — bars since last touch after which a level is pruned from the lattice (default: 250)
ATR Length — ATR calculation lookback (default: 14)
Show S/R Zones — toggle lattice boxes and midlines
Blend HTF Swing Levels — toggle higher timeframe level incorporation
HTF for Levels — the higher timeframe from which pivot levels are imported (default: H4)
HTF Pivot Length — pivot length for HTF level detection (default: 5)
Interaction Playbooks
DEFEND — Wick Rejection at Level — toggle the rejection wick playbook
SWEEP — Liquidity Grab + Reclaim — toggle the sweep and reclaim playbook
RETEST — Break then Hold — toggle the S/R flip retest playbook
COIL — Compression into Level — toggle the narrow-bar compression playbook
Max Distance to Level (xATR) — ATR distance from level within which an interaction is considered proximate (default: 0.35)
Min Rejection Wick % — minimum wick fraction of bar range for DEFEND (default: 0.52)
Min Sweep Depth (xATR) — minimum extension below/above zone boundary for SWEEP (default: 0.12)
RETEST Lookback (bars) — bars to scan for the prior breakout in RETEST detection (default: 12)
COIL Min Narrow Bars — consecutive narrow-ATR bars required for COIL (default: 4)
Min Level Strength (touches) — minimum composite strength for a level to generate signals (default: 2)
Confluence
Min Layers (of 7) — minimum confluence score to fire a signal (default: 4)
HTF Trend Bias / HTF Bias TF / HTF Fast / Slow EMA — trend bias filter parameters
Volume Expansion / Volume vs Avg / Volume Avg Length — volume layer parameters
Block Extreme Chop / Choppiness Length / Chop Block Above — chop gate parameters
Session Filter / Active Session — trading hours restriction
Signal Cooldown (bars) — minimum bars between signals (default: 6)
Level-to-Level Guidance
Show SL + Next Level Target — toggle the stop and target guide lines
SL Beyond Sweep/Zone (xATR) — ATR buffer beyond the zone boundary for stop placement (default: 0.35)
Show Playbook Label — toggle the signal label showing playbook name and level price
Display
Show Entry Markers — toggle the ⬡ diamond signal shapes
Show Dashboard — toggle the full dashboard
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Support — yellow-green for support zones and bullish signal elements
Bear / Resistance — red for resistance zones and bearish signal elements
S/R Lattice — purple for standard lattice zones and midlines
HTF Level — slateblue for HTF-blended level zones and midlines
Sweep Accent — orange for SWEEP playbook accents and chop warnings
Stop Guide / Next Level Target — stop and target line colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (2 total + runtime)
Entry Alerts
Bastion Long — qualifying long interaction fired at a support level. Alert message includes playbook name, level price, and next wall target
Bastion Short — qualifying short interaction fired at a resistance level
Runtime alerts (via the alert() function) fire simultaneously with the chart signals, also containing the playbook, level price, and target in the message for immediate actionability.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M5–H1 :
Pivot Length at 5 — balanced sensitivity for intraday lattice construction
Zone Merge at 0.22× ATR — appropriate for gold's tick structure; tighter than typical forex parameters
Level Decay at 250 bars — approximately 20 hours on M5; sufficient to maintain intraday relevance without accumulating ancient levels
HTF for Levels at H4 — the most widely respected swing timeframe for gold and forex institutional structure
Minimum Level Strength at 2 — requires at least two confirmed touches before a level can generate signals
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Pivot Length to 3, reduce Zone Merge to 0.15, reduce Level Decay to 100–150 bars, reduce Cooldown to 3, reduce COIL Min Narrow Bars to 2–3
H4–Daily swing trading — increase Pivot Length to 8–10, increase Zone Merge to 0.35, increase Level Decay to 500+, set HTF for Levels to Weekly, increase Min Level Strength to 3
Crypto (BTC, ETH) — increase Zone Merge to 0.28–0.35 for wider tick structure, increase Min Sweep Depth to 0.18, increase Level Decay to 300
Indices (NAS100, US30) — use session filter for cash market hours, increase Zone Merge to 0.25, increase Min Level Strength to 3 for index structure
More signals — lower Min Layers to 3, reduce Min Level Strength to 1, increase Max Distance to Level to 0.50
Highest-quality only — raise Min Layers to 5–6, increase Min Level Strength to 3+, enable only SWEEP and RETEST playbooks
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🏰 Support and resistance traders — BASTION is the most complete and systematic S/R implementation in the AlphaX suite. Every aspect of the S/R trading approach — level identification, strength scoring, interaction detection, stop placement, target identification — is automated and quantified
📡 Multi-timeframe S/R traders — the HTF level blending system automatically incorporates H4 (or any configurable timeframe) swing levels into the same lattice, producing a multi-timeframe S/R map without requiring manual level drawing across timeframes
💧 Liquidity sweep traders — the SWEEP playbook at lattice levels is the highest-conviction signal type in BASTION, combining the stop-hunt reversal concept from MAGNET with the pre-qualified, strength-scored level framework of the lattice
🎯 Traders who want structurally meaningful targets — the level-to-level target system is the most institutionally grounded TP approach available — targeting the next defended wall rather than an arbitrary distance
🧠 Systematic traders who want quantified S/R — touch counts, strength scores, decay parameters, and confluence layers replace entirely subjective level identification with objective, repeatable criteria
📈 Traders across all asset classes — the ATR-normalized zone parameters adapt naturally to gold, forex, crypto, and indices without manual recalibration between instruments
⚠ Traders who draw too many or too few S/R levels manually — BASTION manages level count automatically through the Max Levels per Side setting and the decay system — always showing the most current and most relevant levels without chart clutter
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Lattice construction, level strength, playbook detection, and confluence scoring all finalize on confirmed bars only
The lattice is built incrementally from the first bar of chart history. On initial chart loads, the lattice will be sparse for the first 50–100 bars as pivots begin to form and levels begin to cluster. Signal quality improves as the lattice populates
The level decay mechanism (default: 250 bars) means that on very active instruments with frequent pivots, the lattice refreshes relatively quickly. On slower instruments or higher timeframes, levels persist longer. Adjust the decay period to match your instrument's typical S/R memory window
HTF level blending uses Pine Script's request.security — HTF pivots are confirmed on the HTF's own bar close schedule, not the current timeframe. This is non-repainting and consistent with all standard security requests
When multiple playbooks fire at the same level on the same bar, the signal with the highest layer count is selected. The dashboard's playbook abbreviations show which playbooks are currently enabled
Maximum 500 lines, 500 labels, and 60 boxes are rendered. The lattice visualization uses boxes and lines for each level, the signal uses a label, and the guide uses lines and labels. On very active charts with maximum level counts, older elements may be removed by TradingView rendering limits
The indicator does not track open positions or P&L; and does not connect to any broker or account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 understand that price does not move in a vacuum — it moves between walls, and the key to reading the market is knowing where those walls are, how strong they are, and exactly what price does when it arrives at them. Penunjuk

Zero-Lag GARCH Bands | NAL1. Overview
Zero-Lag GARCH Bands | NAL is an adaptive volatility band indicator built from a Zero-Lag EMA baseline and an optimized GARCH-style volatility engine.
The indicator does not use a standard fixed-width channel. Instead, it estimates market variance through a recursive GARCH framework, smooths that volatility with a Zero-Lag EMA, and uses the result to create dynamic upper and lower bands around price structure.
The purpose of the indicator is to identify when price escapes a volatility-adjusted regime boundary, while allowing the band width to adapt to the underlying variance environment.
2. Calculation
The indicator starts by estimating volatility from lagged log returns. These returns are squared to create a variance component, which becomes the foundation of the GARCH model.
GARCH_LogReturn = math.log(close / close )
GARCH_SquaredLogReturn = math.pow(GARCH_LogReturn, 2.0)
GARCH_RealizedVariance = ta.sma(GARCH_SquaredLogReturn, GARCH_Lookback)
The script then searches through possible coefficient weights to find a beta/lambda value that better fits recent realized variance behavior. A second optimization loop is used to estimate gamma, which controls the long-run variance contribution.
These optimized coefficients are combined into a GARCH-style variance model using three components: long-run variance, recent shock variance, and lagged variance.
GARCH_Variance =
GARCH_Gamma * GARCH_LongRunVariance +
GARCH_Alpha * GARCH_SquaredLogReturn +
GARCH_Beta * GARCH_LaggedVariance
After the variance estimate is created, it is smoothed using a Zero-Lag EMA. This gives the volatility engine a faster response while still reducing noise.
GARCH_ProjectedVariance = f_zlema(GARCH_Variance, GARCH_SmoothLen)
GARCH_Volatility = math.sqrt(math.max(GARCH_ProjectedVariance, 0.0))
The baseline is also built with a Zero-Lag EMA, applied after a light EMA pre-smoothing step. This creates the central reference line for the band structure.
The final bands are created by scaling the Zero-Lag GARCH volatility against the selected source and band pressure setting. Higher band pressure creates a tighter band, while lower pressure allows the band structure to expand.
upperBand = baseline + (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
lowerBand = baseline - (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous regime is held.
3. Key Features
Zero-Lag EMA baseline for reduced-lag price structure.
Optimized GARCH-style volatility engine.
Adaptive variance model using shock, lagged, and long-run components.
Zero-Lag smoothing applied to projected volatility.
Dynamic upper and lower volatility bands.
Band pressure control for adjusting channel tightness.
State-based candle coloring, band coloring, glow effect, and directional fills.
4. Use
Zero-Lag GARCH Bands is designed to identify when price begins escaping its volatility-adjusted structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The GARCH engine gives the indicator a deeper volatility layer than a standard ATR or deviation channel. Instead of only measuring recent range, it models variance behavior and projects that into the band structure.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate volatility-adjusted regime expansion, where price is evaluated against a dynamic variance boundary rather than a static channel. The full value comes from how this volatility regime signal is integrated into a broader process for timing, structure, and execution.
Penunjuk

Apex Fusion AI| Smart Trend EngineApex Fusion AI | Smart Trend Engine
Apex Fusion AI combines multiple high-probability trading concepts into a single confluence engine designed to filter low-quality setups and highlight only the strongest opportunities.
Instead of relying on a single indicator, it analyzes trend, momentum, market structure, volatility, and volume confirmation simultaneously.
Features
• EMA Trend Filter
• SuperTrend Confirmation
• MACD Momentum Analysis
• Momentum Strength Filter
• Fractal Market Structure (BOS)
• Fibonacci Retracement Confluence
• ATR Dynamic Risk Management
• Smart Volume Confirmation
• Institutional POC Approximation
• Built-in A+ Quality Scoring System
Each signal is evaluated through a weighted scoring model, allowing traders to focus only on high-confluence setups while filtering out weaker market conditions.
Designed for swing trading, day trading, and scalping across Forex, Crypto, Indices, Commodities, and Gold.
Works on every timeframe, with particularly strong performance on the 1H chart where trend, momentum, and structure align more consistently.
This indicator is intended to assist decision-making and should be used alongside sound risk management and proper market analysis.
— Tomukas Trading Strategi

Gaussian RSI | NAL1. Overview
Gaussian RSI | NAL is a smoothed momentum-regime indicator built around an RSI engine filtered through a Gaussian weighting model. Instead of plotting raw RSI, the indicator applies Gaussian smoothing to reduce noise and create a cleaner momentum line.
The signal is then refined with an optional Gaussian confluence filter. This adds a second smoothing layer that acts as a directional confirmation structure, helping separate stronger momentum regimes from weaker internal fluctuations.
2. Calculation
The indicator starts by calculating RSI from the selected source. This creates the base momentum reading used by the rest of the model.
The RSI is then passed through a Gaussian filter. The Gaussian filter weights the lookback window using a bell-curve style distribution, creating a smoother momentum line while still preserving directional movement.
A second Gaussian filter can also be applied as a confluence line. This creates a slower reference layer for the Gaussian RSI, allowing the indicator to judge whether the current RSI structure is aligned with its own smoothed trend.
The bullish condition requires the Gaussian RSI to move above the upper threshold. When confluence is enabled, the Gaussian RSI must also be above the Gaussian confluence line.
The bearish condition requires the Gaussian RSI to move below the lower threshold. When confluence is enabled, the Gaussian RSI must also be below the Gaussian confluence line.
The final state holds its previous direction when neither condition is active. This creates a cleaner regime output instead of constantly flipping to neutral between threshold zones.
3. Key Features
Gaussian-smoothed RSI momentum engine.
Optional Gaussian confluence filter.
Upper and lower threshold-based regime detection.
State-based candle coloring and RSI coloring.
Glow-style RSI plot, regime fills, confluence line, and transition labels.
Designed to reduce raw RSI noise while preserving momentum structure.
4. Use
Gaussian RSI is designed to identify when momentum begins shifting into a stronger bullish or bearish regime. A move above the upper threshold reflects bullish momentum pressure, while a move below the lower threshold reflects bearish momentum pressure.
The confluence filter adds an additional layer of structure by requiring the Gaussian RSI to align with its own smoother reference line. This can help separate cleaner momentum expansions from weaker internal movement.
This indicator is best used as a specialized momentum module within a complete strategy framework. Its role is to isolate a refined RSI-based momentum layer, where the full value comes from how the signal is integrated into a broader process for regime, timing, and execution.
Penunjuk

Adpative Dual Cloud | NAL1. Overview
Adaptive Dual Cloud | NAL is a dual-baseline trend cloud built from two separate smoothing structures: a Kijun-style midpoint baseline and an ALMA baseline. Instead of relying on a single moving average or one volatility model, the indicator builds an adaptive cloud around both baselines and only confirms direction when price escapes the full combined structure.
The purpose of the indicator is to create a stricter trend envelope. The Kijun side captures broader structural balance, while the ALMA side adds a smoother adaptive layer. The final upper and lower cloud boundaries are selected from both systems, forcing price to clear the stronger side of the cloud before a bullish or bearish state is confirmed.
2. Calculation
The indicator starts by creating two independent baselines. The first baseline is a Kijun-style midpoint calculated from the highest and lowest values over the selected lookback. This represents a structural equilibrium zone.
kijun_sen = math.avg(ta.lowest(cloudLen1), ta.highest(cloudLen1))
The second baseline uses ALMA, giving the cloud a smoother weighted-average component with adjustable sigma and offset. This adds a more refined smoothing layer beside the Kijun structure.
alma_base = ta.alma(srcSeries, cloudLen2, cloud2Off, cloud2Sig)
The indicator then calculates volatility using a selectable deviation engine. The volatility source can be price, the residual between price and the cloud average, or the cloud structure itself. This allows the band width to be built from different layers of market behavior.
VolSrc = switch devSrc
"Price" => srcSeries
"Residuals" => srcSeries - math.avg(alma_base, kijun_sen)
"Cloud" => math.avg(alma_base, kijun_sen)
The volatility engine supports multiple deviation types, including standard deviation, mean absolute deviation, median absolute deviation, exponential deviation, ATR, linear regression deviation, Hull deviation, FRAMA deviation, Kauffman adaptive deviation, Gaussian deviation, and quantile deviation.
After volatility is calculated, adaptive upper and lower bands are created around both baselines.
upper_kijun = kijun_sen + vol * multi_u
lower_kijun = kijun_sen - vol * multi_l
upper_alma = alma_base + vol * multi_u
lower_alma = alma_base - vol * multi_l
The final cloud uses the highest upper boundary and the lowest lower boundary. This makes the signal more selective because price must break beyond the combined cloud, not just one individual baseline.
upper = math.max(upper_kijun, upper_alma)
lower = math.min(lower_kijun, lower_alma)
A bullish state triggers when price closes above the final upper cloud. A bearish state triggers when price closes below the final lower cloud. When price remains inside the cloud, the previous state is held.
3. Key Features
Dual-baseline cloud using Kijun structure and ALMA smoothing.
Adaptive upper and lower bands built from selectable volatility models.
Multiple deviation engines for different volatility interpretations.
Selectable volatility source: price, residuals, or cloud structure.
Final cloud requires price to clear the combined upper or lower boundary.
State-based candle coloring, cloud coloring, glow effect, and directional fills.
4. Use
Adaptive Dual Cloud is designed to identify when price escapes a combined structural and smoothed volatility envelope. A close above the upper cloud reflects bullish expansion beyond both baseline systems, while a close below the lower cloud reflects bearish expansion below the combined structure.
The indicator is intentionally stricter than a single-baseline channel. By combining a Kijun-style midpoint with an ALMA baseline, it creates a cloud that filters more of the internal noise before confirming a directional regime.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate a cloud-based volatility and structure layer, where price must prove strength or weakness against more than one adaptive baseline. The full value comes from how this regime signal is integrated into a broader process for timing, structure, and execution.
Penunjuk

Median Gaussian Trend | NAL1. Overview
Median Gaussian Trend | NAL is an adaptive trend-band indicator built from a median price baseline, Gaussian smoothing, and Gaussian-weighted volatility bands.
The indicator is designed to filter raw price movement into a smoother directional structure. Instead of using a simple moving average or standard deviation channel, it first compresses price through a median calculation, then applies Gaussian smoothing to create a cleaner baseline. Around that baseline, it builds adaptive upper and lower bands using Gaussian-weighted deviation.
The result is a robust, smooth trend regime tool that identifies when price breaks outside its filtered volatility structure.
2. Calculation
The indicator starts by calculating a median of the selected source. This helps reduce noise by focusing on the central value of recent price action instead of reacting directly to every candle.
That median value is then passed through a Gaussian filter. The Gaussian filter gives more structured weighting to the lookback window, producing a smoother baseline while still preserving directional movement.
The indicator then calculates a Gaussian-weighted deviation around the smoothed median baseline. This creates a custom volatility measurement that is more aligned with the filtered baseline rather than raw price alone.
The upper and lower bands are then built around the Gaussian-smoothed median. The script allows separate upper and lower multipliers, which lets the band structure be asymmetric if needed.
upper = median_base + sd_range * sd_mul
lower = median_base - sd_range * sd_mulb
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous regime is held.
3. Key Features
Median-based price filtering.
Gaussian-smoothed baseline.
Gaussian-weighted volatility deviation.
Adaptive upper and lower trend bands.
Separate upper and lower band multipliers.
State-based candle coloring, band coloring, glow effect, and directional fills.
4. Use
Median Gaussian Trend is designed to identify when price escapes its smoothed median-volatility structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The median component helps reduce noisy price behavior, while the Gaussian smoothing and deviation engine create a more refined trend envelope. This makes the indicator useful for reading directional structure without relying on a raw moving average channel.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate a filtered volatility-trend layer of price behavior, where the real value comes from how the signal is integrated into a broader process for regime, timing, and execution.
Penunjuk

G-Score | NAL1. Overview
G-Score | NAL is a volatility-adjusted Z-Score regime indicator built from two main components: a smoothed price Z-Score and an adaptive GARCH-based volatility Z-Score.
The indicator does not use fixed overbought or oversold levels. Instead, it builds dynamic thresholds from the current volatility structure of the market. Price is then measured against those volatility-derived boundaries to determine whether the market is entering a bullish or bearish statistical regime.
2. Calculation
The indicator starts by estimating volatility through a GARCH-style process. It calculates log returns from the selected source, converts those returns into squared variance, and then compares short-term variance behavior against a realized variance baseline.
GARCH_LogReturn = math.log(src / src )
GARCH_SquaredLogReturn = math.pow(GARCH_LogReturn, 2.0)
GARCH_RealizedVariance = ta.sma(GARCH_SquaredLogReturn, GARCH_Lookback)
The model then searches through possible beta and gamma coefficients to find weights that better fit the recent variance environment. These optimized coefficients are used to build a GARCH variance estimate from three components: long-run variance, recent shock variance, and lagged variance.
GARCH_Variance =
GARCH_Gamma * GARCH_LongRunVariance +
GARCH_Alpha * GARCH_SquaredLogReturn +
GARCH_Beta * GARCH_LaggedVariance
The final GARCH volatility value is created by taking the square root of the projected variance. This produces the volatility engine used later in the threshold system.
The indicator then calculates two separate Z-Scores. The first is a price Z-Score, measuring where price is relative to its own mean and deviation. The second is a volatility Z-Score, measuring where GARCH volatility is relative to its own historical distribution.
Both values are smoothed with a Jurik-style moving average to reduce noise while keeping the response relatively fast.
The volatility Z-Score is then mirrored into positive and negative boundaries. This creates dynamic upper and lower thresholds that expand and contract with the current volatility regime.
The final signal compares the smoothed price Z-Score against those adaptive volatility thresholds. A bullish state triggers when price strength expands above the upper volatility boundary. A bearish state triggers when price weakness falls below the lower volatility boundary. When price remains inside the volatility envelope, the previous regime is held.
3. Key Features
Adaptive GARCH-style volatility engine.
Price Z-Score measured against volatility-derived thresholds.
Dynamic upper and lower boundaries instead of fixed levels.
Jurik-style smoothing for both price and volatility components.
State-based candle coloring, background regime coloring, threshold fills, and transition labels.
Designed to capture statistical expansion when price moves outside its volatility-adjusted structure.
4. Use
G-Score is designed to identify when price begins separating from its normal statistical range after accounting for the current volatility environment. A move above the upper threshold reflects bullish statistical expansion, while a move below the lower threshold reflects bearish statistical expansion.
The strength of the indicator comes from the relationship between price displacement and volatility regime. Rather than treating every Z-Score reading the same, it lets volatility define the boundary that price must break.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate a specific statistical layer of market behavior, where price expansion is evaluated through the lens of adaptive volatility. The full value comes from how this regime signal is integrated into a broader process for timing, structure, and risk.
Penunjuk

Volatility Halo | NAL1. Overview
Volatility Halo | NAL is an adaptive volatility band indicator built from a Zero-Lag EMA baseline, ATR band structure, and a recursive GARCH-style volatility regime multiplier.
The indicator does not use fixed-width bands. Instead, it starts with ATR-based bands and then adjusts their width using a projected volatility regime model. This allows the bands to respond differently when market volatility is expanding, contracting, or stabilizing.
2. Calculation
The indicator starts by calculating a Zero-Lag EMA baseline from the selected source. This baseline acts as the central trend reference, helping reduce lag compared to a standard EMA while still keeping the structure smooth.
float baseline = f_zlema(src, baseline_len)
float ATR_Value = ta.atr(ATR_Len)
The ATR value is then multiplied by the user-defined ATR multiple. This forms the base volatility distance used for the upper and lower bands.
The more advanced part of the indicator is the recursive GARCH-style regime multiplier. It begins by calculating log returns and converting them into shock variance. A long-run variance estimate is then built from recent shock variance.
GARCH_LogReturn = close > 0.0 and close > 0.0 ? math.log(close / close ) : 0.0
GARCH_ShockVariance = math.pow(GARCH_LogReturn, 2.0)
GARCH_LongRunVariance = ta.ema(GARCH_ShockVariance, GARCH_LongRunLen)
The model recursively updates conditional variance using three components: recent shock variance, long-run variance, and previous conditional variance. When adaptive coefficients are enabled, the script searches for coefficient weights that better fit recent variance behavior.
GARCH_ConditionalVariance :=
GARCH_Gamma * GARCH_LongRunVariance +
GARCH_Alpha * GARCH_ShockVariance +
GARCH_Beta * GARCH_PreviousConditionalVariance
The conditional variance is then projected and converted into a volatility estimate. This volatility is compared against its own regime baseline to create a volatility regime multiplier. The multiplier is clamped between a minimum and maximum value, preventing the bands from becoming too narrow or too wide.
GARCH_Volatility = math.sqrt(math.max(GARCH_ProjectedVariance, 0.0))
GARCH_RegimeMultiplierRaw = GARCH_Volatility / GARCH_RegimeBase
GARCH_RegimeMultiplier = f_clamp(GARCH_RegimeMultiplierSmooth, GARCH_MinMult, GARCH_MaxMult)
The final band width is created by combining ATR with the GARCH regime multiplier. The upper and lower bands are placed around the Zero-Lag EMA baseline.
hybridBandWidth = ATR_Value * ATR_Mult * GARCH_RegimeMultiplier
upperBand = baseline + hybridBandWidth
lowerBand = baseline - hybridBandWidth
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous state is held.
3. Key Features
Zero-Lag EMA baseline for reduced-lag trend structure.
ATR-based volatility bands.
Recursive GARCH-style conditional variance model.
Adaptive volatility regime multiplier.
Bands expand or contract based on projected volatility conditions.
State-based candle coloring, band coloring, glow effect, and regime fills.
4. Use
Volatility Halo is designed to identify moments where price begins escaping its volatility-adjusted structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The adaptive volatility engine allows the bands to shift with the underlying market environment, making the signal more responsive to changes in pressure and regime.
This indicator is best used as a specialized module within a complete strategy framework. Its real strength appears when it is combined with a broader process for reading market behavior, timing, and risk. The full edge comes from how the signal is integrated, not from the signal existing in isolation.
Penunjuk

MR8 Trend Direction & Signal IndicatorThe MR8 is a dynamic trend-following indicator built on the McGinley Dynamic moving average — one of the most responsive and self-adjusting smoothing algorithms available. Unlike traditional EMAs that can lag or whipsaw in changing market conditions, the McGinley Dynamic automatically adapts its speed based on market velocity, resulting in cleaner, more reliable signals.
How It Works
MR8 plots two McGinley Dynamic lines — a faster Ribbon 8 and a slower Ribbon 9. When the faster line crosses above the slower line, the ribbon turns white, signaling bullish momentum and a potential long entry. When the faster line crosses below, the ribbon turns grey, signaling bearish momentum and a potential short entry. This crossover method filters out the noise and false flips that plague single-line slope-based indicators.
Built-In Stop Loss
MR8 includes an optional visual stop loss line calculated directly from the ribbon's current value — 2% above the line for shorts, 2% below for longs. Toggle it on in settings to see exactly where your risk level sits relative to the indicator itself, on any timeframe.
Alert Ready
MR8 includes two built-in alert conditions — one for long signals and one for short signals — with a webhook-compatible JSON message format. Connect directly to any automated trading bot or notification system with zero additional configuration.
Best Used On
BTC/USD and BTC/USDT
55 minute, 1 hour, and higher timeframes
Futures and spot markets
Settings
Ribbon 8 Length — controls the speed of the faster line (default 12)
Ribbon 9 Length — controls the speed of the slower line (default 21)
Stop Loss % — distance from the ribbon for the optional SL line (default 2%)
Show Stop Loss Line — toggle the SL visualization on or off Penunjuk

Vortex Signals [Gabremoku]Vortex Signals is a reworked version of the classic Vortex Indicator designed to make directional shifts easier to read and less reactive than raw crossover-based interpretations.
Instead of treating every VI+ / VI- crossover as a direct trading signal, this script uses the Vortex lines as a regime detector first, then looks for signal quality through spread expansion and re-activation after a pullback. The goal is to reduce the noisy sequence of repeated entries and exits that often appears when the standard Vortex is used on its own.
What the script does:
Plots the classic Vortex components, VI+ and VI-.
Fills the space between the two lines with a dynamic gradient that reflects which side is dominant and how strong the current spread is.
Detects bullish and bearish dominance regimes.
Uses a signal engine based on regime change, spread expansion, and first valid continuation after weakening.
Prints compact chart markers for LONG, SHORT, and CLOSE events.
Includes a dashboard to show current state, sequence status, setup condition, spread, slope, and directional bias.
How it works:
Regime: the script first determines whether VI+ is above VI- or VI- is above VI+.
Spread: it measures the distance between the two Vortex lines to evaluate whether dominance is meaningful or weak.
Expansion: a regime becomes more relevant when the spread rises above its short baseline and continues widening.
Trigger logic: instead of firing on every crossover, the script waits for either an early valid impulse after regime change or the first useful re-expansion after a pullback inside the same regime.
Why this is different from the classic Vortex:
The built-in Vortex is often read through raw line crossovers.
This script reframes the indicator as a dominance and continuation tool rather than a pure crossover trigger.
The signal engine is designed to capture cleaner transitions and continuation phases while avoiding part of the back-and-forth noise that often occurs in choppy conditions.
How to use it:
In Long mode, focus on bullish dominance and the appearance of a LONG marker after spread expansion or re-expansion.
In Short mode, focus on bearish dominance and the appearance of a SHORT marker after the same logic on the opposite side.
CLOSE markers appear when the opposite Vortex condition breaks the active sequence.
Suggested use:
This script is generally better suited to trending or directional environments than to highly compressed sideways markets.
In my testing and chart observation, the signals can appear cleaner on the 1H timeframe, where short-term noise is often reduced compared with very low timeframes, but users should still adapt settings to the instrument and market structure they trade.
Notes:
This indicator is not predictive and does not guarantee profitable signals.
It should be used as a decision-support tool together with price structure, risk management, and broader market context.
As with any directional model, false signals can still occur during whipsaw or transition phases. Penunjuk

[ A L P H A X ] VECTOR - Regime-Adaptive Flow EngineAlphaX VECTOR — Regime-Adaptive Flow Engine: Kaufman ER Regime Classification, KAMA Vector Line, Multi-Component Flow Score & Scalping-Optimized Entry Playbooks
AlphaX VECTOR is a professional-grade scalping system built around a fundamentally different architectural premise from every other indicator in the AlphaX suite: the market regime is identified first, and the entry playbook is selected automatically to match that regime. Most scalping systems apply the same entry logic regardless of whether the market is trending, ranging, or chopping — and then wonder why the same setup works brilliantly in one context and fails consistently in another. VECTOR solves this at the architectural level by running a three-metric regime classification engine (Efficiency Ratio, Choppiness Index, and ADX) that determines the current market character on every bar and locks in one of four states: Trend Bull, Trend Bear, Balance/Range, or Chop. Each state activates a different set of entry playbooks — micro-pullbacks to the Vector Line in trends, micro-impulse breaks in balance or trend, mean-reversion fades at band extremes in balance — and all entries are filtered through a 6-component Flow Vector score that measures the directional conviction of the current market from five independent dimensions. The result is a system where every signal is not just directionally filtered, but regime-appropriate — built for M1 through M15 scalping on gold, forex, indices, and crypto.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧭 The Core Philosophy — Regime First, Setup Second
The single biggest failure mode in scalping is applying trend-following entries in choppy markets and mean-reversion entries in trending markets. The market character changes continuously — a trending gold session can collapse into a tight range within minutes, and a balance period can explode into a directional impulse with no warning. Any fixed system that ignores this regime cycle will have extended periods of consistent losses whenever the market shifts character.
VECTOR's architecture inverts the standard approach. Instead of picking a setup type and then trying to filter bad signals, VECTOR determines the market's current character first — with three independent quantitative measurements — and then selects the correct playbook for that character. In Trend Bull, only pullback and impulse break setups fire. In Balance, only impulse breaks and band fades fire. In Chop, nothing fires. The dashboard explicitly tells you the active playbook at all times: SCALP PULLBACK ▲, SCALP PULLBACK ▼, SCALP FADE / BREAK, or NO TRADES.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 The Regime Engine — Three Independent Classifiers
The regime is determined on every bar by three completely independent measurements. The combination of all three produces a robust, multi-dimensional picture of market character that no single indicator alone could provide.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Kaufman Efficiency Ratio (ER)
The Efficiency Ratio measures how directionally efficient price movement has been over the lookback period (default: 10 bars). It divides the net directional change in price by the total path traveled — the sum of all individual bar-to-bar movements. A ratio close to 1.0 means every bar moved in the same direction — maximum efficiency, maximum trend. A ratio close to 0.0 means the total path traveled far exceeds the net movement — price oscillated back and forth with no net progress — maximum chop, minimum efficiency.
ER thresholds:
ER ≥ 0.35 (trend minimum) — price is moving with high directional efficiency. The market is trending and momentum setups are appropriate
ER ≤ 0.22 (chop maximum) — price is oscillating with low efficiency. Combined with low ADX, this triggers the CHOP regime and blocks all signals
Between thresholds — transitional state. Not clear trend, not clear chop
The ER is displayed live on the dashboard with color coding — yellow-green when in trend territory, orange when in chop territory, neutral otherwise. This single number tells you the fundamental quality of price direction at any given moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Choppiness Index
The Choppiness Index (CI) provides an independent measure of market randomness using a logarithmic ratio formula. It calculates the sum of all individual ATR readings over the lookback period (default: 14 bars) divided by the total high-low range of that period. High CI values indicate the range of the period was consumed by oscillating ATRs — choppy movement. Low CI values indicate the period's range was established by directional movement.
CI interpretation:
CI above 61.8 — the market is in a Golden Ratio chop zone. Institutional consensus is absent. All signals are suppressed when this threshold is exceeded (configurable, default: 61.0)
CI below 38.2 — maximum trending efficiency. In practice, CI values this low indicate an impulsive directional move in progress
CI between 38.2 and 61.8 — transitional territory, neither pure trend nor pure chop
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ADX (Average Directional Index)
The ADX provides the most widely recognized trend strength measure, confirming whether a directional bias measured by ER and CI is backed by genuine momentum. ADX above the configured minimum (default: 20) is required for Trend Bull or Trend Bear regime classification. Below the minimum, even if ER is high and CI is low, the system classifies as Balance rather than Trend — the directional efficiency exists but the momentum confirmation is absent.
Combined regime logic:
CHOP (0) — CI above threshold OR (ER below chop max AND ADX below trend min). The market is in an untradeable oscillating state. Dashboard shows ⛔ CHOP — STAND ASIDE. All signals blocked
TREND BULL (1) — not chop, ADX above trend min, ER above trend min, Flow Vector positive, price above Vector Line. Playbook: SCALP PULLBACK ▲
TREND BEAR (2) — same conditions with Flow Vector negative and price below Vector Line. Playbook: SCALP PULLBACK ▼
BALANCE (3) — not chop, but ADX or ER conditions for trend not met. Market is directional enough for scalping but not in a clear trend. Playbook: SCALP FADE / BREAK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 The KAMA Vector Line — Adaptive Trend Reference
The Vector Line is a Kaufman Adaptive Moving Average (KAMA) — the same ER-weighted adaptive EMA that forms the basis of the regime classification. It is the central price reference for all pullback entries and a key component of the Flow Vector score.
Why KAMA over a standard EMA: A standard EMA responds with the same speed regardless of market conditions. In a trending market, the EMA lags price and creates false pullback signals. In a choppy market, it whipsaws. KAMA self-adjusts — it moves quickly in trending conditions (tracking price closely) and moves slowly in choppy conditions (staying stable). This means the Vector Line acts as an accurate, self-calibrating trend reference that naturally tightens around price during strong trends and widens away from price during chop.
Vector Line color coding: The line is plotted in gradient color based on the current Flow Vector score — bright yellow-green when the Flow Vector is strongly positive (above the Strong Vector threshold), bright red when strongly negative, fading to semi-transparent in neutral territory. At a glance, the Vector Line's color tells you the directional conviction of the current market.
Vector Line price: The exact current Vector Line price is displayed on the dashboard as VECTOR LINE in real time — the precise price level where pullback entries are being monitored.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ The Flow Vector — 6-Component Directional Score
The Flow Vector is a composite directional score ranging from -100 (maximum bearish conviction) to +100 (maximum bullish conviction). It is computed on every bar from six independent measurements, each capturing a different dimension of directional bias.
Component 1 — EMA Stack (up to ±22 points):
A triple EMA (8/21/50) full stack alignment — EMA 8 above EMA 21 above EMA 50, with price above EMA 8 — scores +22 points for bull, -22 for bear stack. Partial alignment (price simply above or below EMA 21) scores ±8. This is the momentum structure layer.
Component 2 — Vector Line Slope (up to ±18 points):
Whether the KAMA Vector Line is currently rising or falling. A rising Vector Line in a bull trend confirms the adaptive average is itself accelerating — ±18 points. This ensures the entry direction is aligned with the KAMA's own momentum, not fighting it.
Component 3 — OBV Slope (up to ±15 points):
The slope of On-Balance Volume over the configured lookback period (default: 10 bars). A rising OBV slope means net buying pressure is accumulating (each up-close bar adds volume, each down-close subtracts). A falling slope confirms net selling. ±15 points. This is the volume accumulation/distribution layer — independent of price movement.
Component 4 — Volume Delta (up to ±12 points):
The estimated directional volume pressure — bull volume EMA minus bear volume EMA using the candle range position method. ±12 points. This captures intrabar volume directional bias as opposed to OBV's inter-bar accumulation bias.
Component 5 — HTF EMA Bias (up to ±18 points):
The higher timeframe EMA structure — fast EMA above slow EMA with close above fast EMA (bull) or the inverse (bear). ±18 points. This ensures the Flow Vector reflects the macro institutional direction, not just the current timeframe's local momentum.
Component 6 — Price vs Vector Line (up to ±15 points):
Whether the current close is above or below the KAMA Vector Line. ±15 points. Price above the Vector Line in a bull regime confirms the pullback has not reached the Vector Line yet (trend intact). Price below confirms the line has been reached or breached (potential reversal zone).
Flow Vector thresholds:
+40 to +100 — strong bull flow. Setup A (Trend Micro-Pullback) long entries require this minimum
+65 to +100 — extreme bull flow. Used as a fade signal when combined with upper balance band touch
-40 to -100 — strong bear flow. Setup A short entries require this minimum
-65 to -100 — extreme bear flow. Fade signal condition for lower band touches
-39 to +39 — neutral flow. Directional conviction insufficient for Trend regime entries
Flow Acceleration:
In addition to the absolute score, VECTOR checks whether the Flow Vector is currently accelerating — increasing for two consecutive bars (bull) or decreasing for two consecutive bars (bear). Acceleration is a hard requirement for Setup A (Trend Micro-Pullback) entries, ensuring the entry occurs when flow is building rather than stalling or reversing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕯 Scalping Candle Quality — The Pin Bar Filter
VECTOR applies a specific, tight candle quality standard for all entry types — the scalping pin bar. All four conditions must be simultaneously true:
Bull pin bar requirements:
Bullish close (close above open)
Lower wick covers at least 42% of the total bar range — the rejection of the low is dominant
Upper wick is at most 32% of the total range — no significant selling into the close
Body size at least 0.10× ATR — not a doji or near-doji
Close in the upper 28% of the bar range (upper quartile) — the bar closed strongly bullish
Bear pin bar requirements: The mirror conditions — upper wick dominant (42%+ of range), lower wick minimal (32% max), small minimum body, close in the lower quartile.
Why this specific candle quality standard for scalping: Scalping entries are executed in the wick of the signal candle — buying at the low of a bull pin bar, selling at the high of a bear pin bar. A candle that lacks a dominant rejection wick provides no clear structural fill level. The upper quartile close requirement for bulls ensures the rejection was decisive — not a bar that dipped into support and then closed mediocre. These parameters are significantly stricter than the standard 50% wick filter used in MERIDIAN and PIVOT, reflecting the precision required for scalping entries.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Four Setup Types — Regime-Gated Playbooks
VECTOR implements four distinct setup types, each activated only in the appropriate regime state. The active playbook is displayed on the dashboard as a PLAYBOOK row, telling you exactly which setups are available right now.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup A — Trend Micro-Pullback (Regime: Trend Bull or Trend Bear only)
The primary VECTOR scalp entry. Fires in Trend Bull regime for longs, Trend Bear for shorts.
Full condition stack for long:
Regime is Trend Bull (regime == 1)
Flow Vector is strongly bullish (≥ +40)
Flow Vector is accelerating (rising for two consecutive bars)
Price has touched the EMA 8 or Vector Line from above — the micro-pullback has reached the trend reference level. Touch tolerance is ±0.22× ATR (configurable)
A qualifying bull pin bar has formed at the touch
The recent 5-bar low has dipped into the EMA 8 / Vector Line zone (confirming the touch was genuine, not just proximity)
Price is not extended above the Vector Line by more than the maximum extension setting (default: 1.0× ATR) — the anti-chase filter
RSI(7) is between 40 and 70 — not already overbought, not in a capitulation zone
Why this is the core scalp setup: In a confirmed Trend Bull regime with accelerating flow, the EMA 8 and Vector Line are the natural pullback magnets. Institutional buyers who are long in the trend use these levels to add on dips. The pin bar at the level confirms they stepped in. The anti-extension filter prevents chasing a move that has already run 1× ATR above the Vector Line — exactly the stretch that precedes a deeper pullback.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup B — Micro Impulse Break (Regime: Trend or Balance)
A momentum continuation scalp that fires when price breaks out of a micro swing range with a qualifying body and volume delta confirmation.
Key conditions for long:
Regime is Trend Bull or Balance (the setup fires across both regimes as momentum can develop in either)
Price closes above the highest high of the last 4 bars (configurable lookback) on the previous bar — a genuine micro swing break
The break bar's body meets the minimum body threshold (default: 0.85× the impulse body minimum × ATR)
Volume delta is positive — buying pressure drove the break
A qualifying bull pin bar is present on the break bar
HTF bias aligns — long only when the higher timeframe confirms bullish
Price is not over-extended above the Vector Line (anti-chase filter)
What this setup captures: The breakout from a micro consolidation range with volume confirmation — the intrabar equivalent of a structure break. On a 1-minute chart, a 4-bar micro range that breaks with a strong body and bull delta is a clean scalp entry with a tight stop at the bottom of the range. In Balance regime, this setup provides the best entries because the market character does not support pullback trades but does support momentum breaks on sufficient flow.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup C — Range Fade / Band Extreme (Regime: Balance only)
The mean-reversion scalp. Fires only in Balance regime when price reaches the outer balance band with an exhausted or reversing Flow Vector.
Short fade conditions:
Regime is Balance (regime == 3)
Price has touched the upper balance band (within 0.08× ATR of the upper band)
The Flow Vector is either in extreme bull territory (≥ +65, meaning the move to the band is overextended) OR the flow is beginning to fade (Flow Vector is falling and was recently above +53)
A qualifying bear pin bar confirms the rejection at the band
RSI(7) is above 58 — confirming the RSI is elevated at the band touch, consistent with a reversal setup
Why band fades only fire in Balance: In a Trend Bull regime, price touching the upper balance band is a continuation event — the trend is simply pushing to the next level. Fading that in a trend produces the most reliable losses in scalping. Setup C is therefore hard-gated to Balance regime only, where the market has proven it is oscillating rather than trending, and the balance band genuinely represents a mean-reversion boundary.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup D — Vector Shift / Flow Zero-Cross (Off by default)
A legacy setup type that fires when the Flow Vector crosses from negative to positive (long) or positive to negative (short) with a strong body candle and positive volume delta. Off by default on fast timeframes because flow zero-crosses on M1–M5 produce excessive noise. Available for traders who want to experiment with flow momentum entries on H1+ timeframes where the zero-cross carries more structural weight.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 7-Point Scalp-Weighted Confluence Score
VECTOR uses a setup-weighted scoring system specifically calibrated for scalping frequency and quality:
Score structure:
Setup Type (up to 2 points) — primary setups (Trend Micro-Pullback, Micro Impulse) score 2 points. Secondary setups (Range Fade, Vector Shift) score 1 point. This weighting reflects that Setup A and B have more prerequisite conditions and are inherently higher quality
Flow Acceleration (1 point) — Flow Vector is actively building in the signal direction over the last two bars. Ensures the entry coincides with momentum building, not stalling
HTF Bias (1 point) — higher timeframe EMA confirms the signal direction
Volume Expansion (1 point) — current bar volume exceeds the volume average by the configured minimum (default: 1.05×)
Non-Chop Market (1 point) — the market is not in Chop regime. This point is also enforced as a hard gate — signals cannot fire in Chop regardless of the score
RSI(7) Filter (1 point) — the 7-period RSI is in the acceptable zone for the signal direction (40–70 for longs, 30–60 for shorts)
Maximum score: 7. Default minimum: 4. The scalp-weighted system means that a Setup A or B entry with flow acceleration, HTF alignment, and volume can reach 5 points from the setup type, flow, HTF, and volume components alone — a clean high-quality signal. Setup C entries require more supporting factors to reach the threshold because their 1-point setup score means more of the other layers must confirm.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Anti-Chase & Quality Filters
VECTOR includes several anti-chase and quality gates specifically designed for scalping precision that do not appear in the other AlphaX indicators.
Extension Filter: No long signal fires if price is already above the Vector Line by more than the configured maximum extension (default: 1.0× ATR). No short signal fires if price is already below by that much. This single filter eliminates the most common scalping failure — entering a pullback after it has already run too far from the reference level, leaving insufficient room for the signal to develop before hitting the stop.
Dip/Rip Confirmation: For Setup A entries, the 5-bar lowest low (bull) or highest high (bear) must have reached within a tight ATR tolerance of the reference lines. This confirms that the touch was genuine — price actually dipped into the zone — rather than just being close to it without contacting it.
RSI(7) Micro Filter: A 7-period RSI gate blocks entries when RSI is already overbought (above 70 for longs) or in a knife-catch zone (below 40 for shorts). On scalping timeframes, entering a long when 7-bar RSI is already at 75 means you are entering after the move is exhausted. This filter alone dramatically reduces the worst class of setup A false signals — those that occur when price is touching the EMA 8 on the way back down through it rather than bouncing off it.
Flow Acceleration Requirement: Setup A requires the Flow Vector to be accelerating (not just positive) for two consecutive bars. A stale, high but flat Flow Vector indicates the move is decelerating — the opposite of the momentum condition that produces clean scalp continuations.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Scalp Entry Reference — Wick-Based Positioning
Unlike the other AlphaX indicators where the entry is taken on the close or next open, VECTOR's entry reference is the rejection wick of the signal candle — specifically the bar's low (for bull signals) or high (for bear signals). This is the optimal scalp fill zone.
Why the wick, not the close: A scalp pin bar with a 42%+ lower wick has a significant low-to-close range. Entering at the close gives up nearly half that range unnecessarily. The institutional scalp entry is at the wick extreme — the exact level where buyers stepped in and stopped the selling. A limit order at the bar's low (bull) captures the optimal risk/reward because the stop goes below that low, and the full bar range is available as immediate profit space.
Entry reference visualization: A cross marker is plotted at the signal bar's low (bull) or high (bear) — the wick entry reference — distinct from the signal triangle. This gives you the precise price at which to place a limit order if you prefer limit entry over market-on-open execution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 17-row real-time dashboard displays the complete internal state across five sections.
REGIME
Market Regime — current regime state with icon: ⛔ CHOP — STAND ASIDE, ▲ TREND BULL, ▼ TREND BEAR, or ◆ BALANCE / RANGE. This is the primary trading context indicator
Playbook — the active setup playbook matching the current regime: NO TRADES, SCALP PULLBACK ▲, SCALP PULLBACK ▼, or SCALP FADE / BREAK. Tells you exactly which setup types can fire
Flow Vector — the live composite Flow Vector score with + or - sign. Yellow-green when strongly positive, red when strongly negative, neutral otherwise
METRICS
Efficiency — current Kaufman Efficiency Ratio value. Yellow-green when in trend territory (≥ threshold), orange when in chop territory (≤ chop max)
Chop Index — current Choppiness Index value. Orange when above the stand-aside threshold
ADX — current ADX value. Yellow-green when above the trend minimum
Vol Delta — ▲ BUYERS or ▼ SELLERS based on the current volume delta direction
FILTERS
HTF Bias — ▲ BULL, ▼ BEAR, or — FLAT
Session — ✓ ACTIVE or ✗ OFF
CONFLUENCE
Bull Score — live 0–7 score. Background highlights yellow-green when threshold is met and regime is not Chop
Bear Score — live 0–7 score. Background highlights red when threshold is met and regime is not Chop
Vector Line — the exact current KAMA Vector Line price, color-coded by Flow Vector strength
Live confluence label: During non-chop regimes, a small B x/7 · S x/7 label appears near the Vector Line on the current bar, updating in real time.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
KAMA Vector Line — the adaptive trend reference line, color-coded by Flow Vector strength. Bright yellow-green when bull flow is strong, bright red when bear flow is strong, fading to semi-transparent in neutral/weak territory
Balance Bands (upper, lower, midline) — the Bollinger-style bands used as reference for Balance regime and Setup C fade entries. Purple-tinted at low opacity
▲ Label with setup tag (below bar, yellow-green) — bull scalp signal. Tag shows A, B, C, or D identifying which setup type fired. Tooltip shows the full setup description
▼ Label with setup tag (above bar, red) — bear scalp signal
Entry Reference Cross (× marker) — plotted at the signal bar's low (bull) or high (bear) — the optimal scalp limit entry price
SL Guide (red dotted circles) — stop loss reference below the EMA 8 and Vector Line minimum (bull) or above (bear), plus ATR buffer
TP Guide (yellow-green dotted circles) — dynamically computed reward target at R multiple
Regime Change Labels (optional) — small labels at regime transition bars showing TREND ▲, TREND ▼, or BALANCE. Off by default — regime visible on dashboard
Live confluence label — B x/7 · S x/7 near the Vector Line on the current bar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX VECTOR — Step by Step
Step 1 — Read the Regime First
Check the Market Regime row on the dashboard. ⛔ CHOP — do nothing, close the chart if needed. ◆ BALANCE — Setup B and C available. ▲ TREND BULL or ▼ TREND BEAR — Setup A is active
Check the Playbook row — it tells you exactly which setup type is currently firing-eligible
Note the Flow Vector value. Above +40 in Trend Bull is the optimal Setup A environment. Below +40 but still positive suggests the trend may be weakening
Step 2 — Prepare the Level
In Trend Bull, identify where the Vector Line is currently sitting (Vector Line on dashboard). This is your Setup A anchor level — watch for price to pull back toward it
Note the EMA 8 on the chart. For Setup A, price must touch either EMA 8 or the Vector Line — whichever is closest to price is the active support
In Balance, note where the upper and lower balance bands sit. These are the Setup C fade boundaries
Step 3 — Enter on the Signal Label
A ▲ label below the bar with setup tag is the core scalp signal — Trend Micro-Pullback long. All conditions including regime, flow acceleration, line touch, pin bar, RSI, and extension filter are confirmed
The entry reference × marker shows the wick low — the optimal limit order price
The SL guide is at the minimum of EMA 8, Vector Line, and the bar low, minus ATR buffer. This is a tight structural stop designed for scalping
The TP guide is at the R-multiple target. Default 2.0R for a tight scalp stop produces a larger absolute target than most other AlphaX indicators due to the compressed ATR-based stops
Step 4 — Manage the Scalp
Scalp trades in VECTOR are short-duration by design — move the stop to breakeven after any meaningful move in your favor
Watch the Flow Vector on the live label — if it drops below +40 during a long trade, the bull flow is weakening. Consider taking profit early
If the regime changes to Chop during an open trade, take profit immediately — the market character has changed and the setup's underlying logic no longer applies
Setup A targets in strong Trend Bull regimes can be extended toward the band extremes. In strong trends, the first R-target is often just the beginning of a larger move
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Market Regime shows ⛔ CHOP — this is the clearest possible signal to step back. No signals will fire, and any manual entries during chop carry statistically negative expectation on scalping timeframes
Chop Index above 61 on the dashboard — even if regime hasn't fully shifted to CHOP, a CI above 61 is a warning that market character is deteriorating. Reduce size or stop trading
Flow Vector is between -39 and +39 — the directional conviction is insufficient for Setup A. In this zone, the market is neither clearly bullish nor bearish at the flow level. Wait for the vector to commit above ±40
Flow Vector is high but flat (no acceleration) — a Flow Vector at +55 that has been flat for 5 bars means the momentum is stale. Setup A requires active acceleration, not just a high score. The signal will be blocked, but the absence of acceleration is itself a warning
HTF Bias opposes the signal direction — scalping against the higher timeframe institutional flow is the highest-risk scalp. If HTF shows BEAR and you are attempting Setup A longs, every entry is fundamentally counter-trend
RSI(7) is above 70 at a bull pin bar — the 7-bar RSI filter will block the signal, but if you see a bull pin at the Vector Line with RSI at 72, it is a warning that the touch is occurring after an overbought condition rather than at a healthy pullback
Regime changes rapidly between states — if the regime is cycling between Trend Bull and Balance or Balance and Chop multiple times per session, the market is in an indecisive transition phase. These transitions produce the most noise and the lowest signal quality across all setup types
The ideal VECTOR scalp setup:
Trend Bull or Trend Bear regime sustained for 5+ bars
Flow Vector at ±55 or above, actively accelerating
HTF aligned with regime direction
Price pulling back cleanly to the Vector Line / EMA 8 zone with a tight, contained range
Bull or bear pin bar with lower/upper wick of 50%+ of range, closing in the upper/lower quartile
RSI(7) between 45–60 for longs or 40–55 for shorts — the healthy pullback RSI zone
Volume above average, volume delta confirming direction
Score at 5/7 or higher
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🧭 Three-metric regime classification engine — Kaufman Efficiency Ratio, Choppiness Index, and ADX combined to classify every bar as Trend Bull, Trend Bear, Balance, or Chop
📊 Active playbook display — dashboard tells you exactly which setup type is eligible right now: SCALP PULLBACK ▲/▼, SCALP FADE / BREAK, or NO TRADES
📈 KAMA Vector Line — adaptive moving average that tightens in trends and stabilizes in chop, providing the most accurate scalp reference line available
⚡ 6-component Flow Vector — EMA Stack, KAMA Slope, OBV Slope, Volume Delta, HTF Bias, and Price vs Vector Line combined into a -100 to +100 directional conviction score
🔴 Flow Acceleration detection — Setup A requires the Flow Vector to be actively building for two consecutive bars, blocking stale or decelerating flow entries
🏷 Four regime-gated setup types — Setup A (Trend Micro-Pullback), Setup B (Micro Impulse Break), Setup C (Balance Band Fade), Setup D (Vector Shift, off by default)
🕯 Strict scalping pin bar standard — lower/upper wick ≥ 42% of range, opposing wick ≤ 32%, minimum body, close in upper/lower quartile — the highest candle quality standard in the AlphaX suite
🛡 Anti-chase extension filter — blocks signals when price has already moved too far from the Vector Line, eliminating chasing entries
📍 Wick-based entry reference — × marker at the signal bar's wick extreme for optimal limit order placement
🔢 RSI(7) micro filter — 7-period RSI gates block overbought longs and oversold shorts at the exact scalp entry bar
📊 Live Efficiency, Choppiness, and ADX metrics on dashboard — the three regime classification inputs displayed with live values and color-coded thresholds
🎨 Flow Vector–colored Vector Line — line color reflects directional conviction in real time from strong bull to neutral to strong bear
📊 17-row live dashboard — Regime, Playbook, Flow Vector, Efficiency, Chop Index, ADX, Vol Delta, HTF Bias, Session, Confluence, and Vector Line price updated every bar
🔔 5 alert conditions — long entry, short entry, chop warning, trend bull regime change, trend bear regime change
⚙ Fully configurable — ER lookback and thresholds, CI length and maximum, ADX length and minimum, KAMA parameters, OBV and delta lengths, flow vector thresholds, all four setup enables, pullback tolerance, anti-chase extension, impulse body minimum, confluence minimum, HTF timeframe and EMAs, volume filter, session, SL/TP parameters, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Regime Engine
ATR Length — ATR lookback for all ATR-relative calculations (default: 14)
Efficiency Ratio Length — Kaufman ER lookback period (default: 10)
ER Min for Trend Regime — minimum ER to qualify as trend (default: 0.35)
ER Max for Chop Regime — maximum ER that contributes to chop classification (default: 0.22)
Choppiness Index Length — CI calculation lookback (default: 14)
Chop Index — Stand Aside Above — CI threshold above which all signals are suppressed (default: 61.0)
ADX Length — ADX calculation lookback (default: 14)
ADX Min for Trend — minimum ADX for Trend Bull or Trend Bear classification (default: 20.0)
Balance Band Length / Mult — parameters for the balance band Bollinger calculation (defaults: 20 / 2.0)
Flow Vector
Vector Line (KAMA) Length — KAMA lookback period (default: 21)
KAMA Fast / KAMA Slow — KAMA smoothing constants (defaults: 2 / 30)
OBV Slope Length — lookback bars for OBV slope calculation (default: 10)
Volume Delta Length — EMA smoothing for volume delta estimation (default: 14)
Strong Vector Threshold — minimum absolute Flow Vector for strong directional condition (default: 40)
Extreme Vector (range fade) — Flow Vector level triggering the extreme condition for Setup C fades (default: 65)
Entries & Confluence (Scalping)
Setup A · Trend Micro-Pullback — toggle the primary trend scalp setup
Setup B · Micro Impulse Break — toggle the momentum continuation scalp
Setup C · Range Fade (band extreme) — toggle the balance band mean-reversion scalp
Setup D · Vector Shift (legacy) — toggle the flow zero-cross setup (default: off)
Pullback Touch Tolerance (xATR) — ATR tolerance for EMA 8 / Vector Line touch detection (default: 0.22)
Impulse Min Body (xATR) — minimum body size for Setup B impulse and Setup D shift candles (default: 0.55)
Max Extension from Vector (xATR) — maximum allowed distance from Vector Line before anti-chase blocks the signal (default: 1.0)
Micro Swing Lookback — bars for the Setup B micro swing high/low reference (default: 4)
Min Confluence Layers (of 7) — minimum score to fire a signal (default: 4)
Show Entry Signals — toggle signal labels
Show Confluence Label — toggle the live B/S score label near the Vector Line
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 3)
Filters
HTF Trend Filter — toggle higher timeframe EMA alignment requirement
HTF Timeframe — higher timeframe for EMA data (default: 60-minute)
HTF Fast / Slow EMA — EMA periods on the HTF (defaults: 21 / 55)
Volume Confirm — toggle volume expansion requirement
Min Volume vs Avg — minimum volume ratio (default: 1.05)
Volume Avg Length — SMA length for volume baseline (default: 20)
Session Filter — toggle active hours restriction (default: off)
Active Session — configurable session window
Exit Guidance
Show SL / TP Guides — toggle stop and target circle plots
SL Distance (xATR) — ATR buffer added beyond the EMA 8 / Vector Line stop anchor (default: 0.85)
TP Reward (R) — take profit as a multiple of the actual risk (default: 2.0)
Display
Show Vector Line (KAMA) — toggle the adaptive trend reference line
Show Balance Bands — toggle the BB-style balance band plots
Show Regime Change Labels — toggle small regime transition labels on regime-change bars (default: off)
Show Dashboard — toggle the full dashboard
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for bullish signals and indicators
Bear / Bear Bright — red family for bearish signals
Chop / Caution — orange for chop regime and caution states
Balance / Vector — purple for balance bands, Vector Line neutral state, and equilibrium elements
SL Guide / TP Guide — stop and target circle colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (5 total)
Entry Alerts
Vector Long — scalp long signal fired. Wick rejection entry confirmed with all regime and confluence conditions met
Vector Short — scalp short signal fired
Regime Alerts
Vector Chop Warning — market has entered Chop regime. Stand aside until regime clears
Vector Trend Bull — market has transitioned to Trend Bull regime. Watch Vector Line for Setup A pullback opportunities
Vector Trend Bear — market has transitioned to Trend Bear regime. Watch Vector Line for Setup A short pullback opportunities
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–M5 :
Cooldown at 3 bars — fast timeframes produce setups in rapid succession. A 3-bar cooldown prevents back-to-back signals on consecutive bars while allowing reasonable signal frequency
SL at 0.85× ATR — tight scalp stop anchored to the EMA 8 / Vector Line zone. The strict pin bar requirement ensures the signal bar's wick provides meaningful structural support, so the stop does not need to be large
TP at 2.0R — on M1–M5 with a 0.85× ATR stop, 2.0R produces a tight, achievable target during normal trending conditions
HTF at 60-minute — the standard intraday reference for M1–M5 scalping
Volume at 1.05× average — a very low multiplier appropriate for scalping timeframes where volume spikes are smaller and entry bars do not always show dramatic volume expansion
For other instruments or timeframes, adjust:
M15–H1 intraday — increase ER Length to 14, increase Chop Length to 20, increase CI stand-aside to 62, increase ADX minimum to 22, increase Cooldown to 6, increase TP to 2.5–3.0R
Crypto (BTC, ETH) — increase ATR Length to 20 for smoother ATR on high-volatility instruments, increase ER threshold to 0.40 for trend classification on more volatile assets
Indices (NAS100, US30) — use session filter restricted to market hours, increase ADX minimum to 22, consider enabling Setup D for the sharper zero-cross moves typical of index momentum
Fewer, higher-quality signals — raise Min Confluence to 5–6, increase ER trend minimum to 0.40, reduce CI stand-aside to 58, increase pullback touch tolerance slightly to 0.25 for tighter reference line proximity
Higher signal frequency — lower Min Confluence to 3, enable Setup D, reduce cooldown to 2, disable HTF filter on fast timeframes where the 60-minute EMA can lag too much
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
⚡ Pure scalpers on M1–M5 — VECTOR is the only indicator in the AlphaX suite specifically designed for sub-5-minute scalping. Every parameter — the pin bar standard, the wick entry reference, the tight ATR stop, the acceleration requirement, the anti-chase filter — is calibrated for fast-timeframe execution
🧭 Regime-aware traders — traders who understand that different market conditions require different strategies will immediately recognize the value of having the regime identified and the playbook selected automatically
🎯 Precision entry traders — the wick-entry reference and the strict pin bar requirements make VECTOR ideal for traders who want precise fill zones rather than market-on-close entries
📊 Traders who study market microstructure — the Efficiency Ratio, Choppiness Index, and KAMA components expose the internal mechanics of market character in ways that standard trend indicators do not
🔴 Traders who are burned by chasing — the anti-extension filter and RSI(7) gate are built specifically to stop the two most common scalping failures: entering too late after the move has already extended, and entering when momentum is actually exhausted
⚠ Traders who overtrade in choppy conditions — the Chop regime is the most powerful feature for discipline. When the dashboard shows ⛔ CHOP — STAND ASIDE, the system enforces what many traders cannot enforce themselves
🏦 Gold and forex scalpers — the default settings are calibrated for XAUUSD and major forex pairs, which exhibit the clearest regime cycling of any liquid instruments due to their session-driven institutional flows
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. All regime classification, Flow Vector, setup conditions, and confluence scoring finalize on confirmed bars only
The KAMA Vector Line has a warm-up period equal to the KAMA Length setting. On charts with insufficient bar history, the Vector Line may not display correctly until enough bars accumulate
The Efficiency Ratio and Choppiness Index require their full lookback periods to produce accurate readings. On charts with fewer bars than the longest lookback, readings may be imprecise during the initial warm-up period
The anti-chase extension filter uses the distance from close to the Vector Line. In fast-moving scalp conditions, this filter can sometimes block entries that a discretionary trader would take. Increase the extension maximum if this becomes a frequent issue on your instrument
The signal cooldown of 3 bars is deliberately short for scalping timeframes. On M1 charts, 3 bars = 3 minutes — sufficient to prevent back-to-back duplicate signals while allowing rapid sequential setups in trending conditions
Setup D (Vector Shift) is off by default and is not recommended for M1–M5 scalping. Flow Vector zero-crosses on fast timeframes occur too frequently and with insufficient signal-to-noise ratio to be useful without additional filtering. Consider enabling it only on H1+ timeframes
The balance bands in VECTOR are Bollinger-style ATR-smoothed bands used purely as visual references and Setup C trigger levels. They are not the same as the ANCHOR adaptive bands and do not produce trailing stop functionality
The indicator does not track open positions or P&L and does not connect to any broker or account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 scalpers who know that trading the wrong setup in the wrong regime is not a signal problem — it is a system architecture problem. Penunjuk

[ A L P H A X ] PIVOT - Smart Money StructureAlphaX PIVOT — Smart Money Structure + OTE Pullback Engine: Market Structure Tracking, Optimal Trade Entry Zones, Liquidity Sweep Detection & 7-Layer Confluence Scoring
AlphaX PIVOT is a professional-grade smart money pullback system built around two of the most powerful concepts in institutional price action: market structure and the Optimal Trade Entry zone. Where breakout-based systems enter at the moment of structural displacement — chasing the move after it has already begun — PIVOT waits for the market to pull back into the precise Fibonacci retracement zone where institutional continuation orders are resting, and fires only when a qualified rejection candle confirms within that zone with multi-layer confluence backing. The result is a system that gives you the same directional conviction as a breakout entry at a structurally superior price — buying the pullback into institutional demand after a bullish BOS or CHoCH, selling the pullback into institutional supply after a bearish structure shift — with a stop anchored to the structural swing low or high rather than an arbitrary ATR distance. Designed for precision-entry traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 The Core Philosophy — Why Pull Back to OTE?
A Break of Structure or Change of Character tells you that the market has shifted direction at the institutional level. But the bar that breaks structure is rarely the optimal entry — it has already moved aggressively, the risk/reward from entry is reduced, and a pullback is statistically likely before the continuation begins.
The Optimal Trade Entry concept solves this. After a structural displacement move, price almost always retraces into a specific Fibonacci retracement zone — the 61.8% to 78.6% retracement of the displacement leg — before the next move in the structural direction begins. This zone is where institutional orders waiting at discount prices (in a bull structure) or premium prices (in a bear structure) are filled. Entering in the OTE zone means entering where institutions are entering, with the displacement leg already confirmed as the directional signal and the structural swing as the natural stop reference.
PIVOT detects every structural event, computes the OTE zone for the displacement leg in real time, and monitors for qualified rejection entries within that zone — all while running a 7-layer confluence engine that scores every potential entry before it fires.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏗 Market Structure Engine — Tracking BOS & CHoCH
The market structure engine runs a real-time fractal pivot detection system that tracks the most recent confirmed swing high and swing low on every bar, identifies every Break of Structure and Change of Character event, and maintains a live structural trend state.
Pivot detection:
Swing highs and lows are detected using a configurable pivot length (default: 5 bars each side). A pivot is confirmed when the specified number of bars on both the left and right side are lower (for a pivot high) or higher (for a pivot low). This creates confirmation — not just a local high or low, but a genuine fractal swing point.
Break of Structure (BOS):
When price closes above the most recent confirmed swing high while the structure is already bullish, a bullish BOS is detected — confirming the uptrend is intact and continuing. When price closes below the most recent swing low in a bearish structure, a bearish BOS is confirmed. BOS events are continuation signals — the existing structure is reinforcing itself.
Change of Character (CHoCH):
When price closes above a swing high while the structure is bearish, a bullish CHoCH is detected — the character of the market has changed from bearish to bullish. A bearish CHoCH is the inverse. CHoCH events are the highest-quality structural signals — they represent genuine institutional trend reversals and form the trigger for PIVOT's highest-conviction setup type.
Structure break mode:
The Close Only setting (default: on) requires a candle body close beyond the swing level for a BOS or CHoCH to register. When off, any wick touch counts. Body close is the stricter, cleaner mode — it eliminates false structure breaks caused by wick spikes that fail to close through the level, producing fewer but more reliable structural events.
Live swing levels:
The most recent confirmed swing high (plotted as a red dashed line) and swing low (yellow-green dashed line) are maintained on the chart in real time, extending forward until superseded by a new confirmed pivot. These levels represent the current active liquidity pools — the precise levels where the next sweep event is likely to occur.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Structure Leg Box & Equilibrium — The Dealing Range
Every confirmed structure break event spawns a Structure Leg Box — a semi-transparent purple rectangle anchored to the displacement leg that produced the structural event. This box is the visual equivalent of the ANCHOR trend segment box, providing immediate context for the current structural move's price range.
Box construction:
For a bullish structure break, the leg box spans from the previous swing low (the origin of the displacement) to the close that broke structure — capturing the full range of the institutional displacement move. For a bearish structure break, it spans from the previous swing high down to the structure break close.
Equilibrium line:
The midpoint of the structure leg box — the 50% retracement level — is plotted as a purple dotted line extending forward. This is the leg's equilibrium level and the dividing line between discount (below EQ, favorable for longs) and premium (above EQ, favorable for shorts). The Premium/Discount requirement enforces that PIVOT signals can only fire when price is in the institutionally correct zone relative to this level.
Live updating:
The box expands as the trend develops — if price makes new highs in a bull leg, the box top extends upward. The equilibrium adjusts continuously. This ensures the OTE calculations always reflect the full extent of the current structural leg, not just the initial displacement.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 The OTE Zone — Optimal Trade Entry Band
The Optimal Trade Entry zone is a Fibonacci retracement band calculated from the structure leg's high and low — the 61.8% to 78.6% retracement zone (configurable). This is the institutional re-entry zone — the price area where sophisticated traders who missed the initial displacement fill their positions on the pullback.
OTE calculation for bull structure:
OTE Top = Leg High − (Leg Range × OTE Fib Low). Default: Leg High − (Range × 0.618)
OTE Bottom = Leg High − (Leg Range × OTE Fib High). Default: Leg High − (Range × 0.786)
This creates a band in the lower portion of the leg range — price must retrace between 61.8% and 78.6% of the upward displacement before the OTE zone is active.
OTE calculation for bear structure:
OTE Bottom = Leg Low + (Leg Range × OTE Fib Low)
OTE Top = Leg Low + (Leg Range × OTE Fib High)
This creates a band in the upper portion of the leg range — price must retrace between 61.8% and 78.6% of the downward displacement before the OTE zone is active.
Why the 61.8–78.6% zone: The 61.8% (golden ratio) and 78.6% (square root of 0.618) retracement levels are the two most consistently respected Fibonacci levels in institutional price delivery. They represent the deepest pullback levels that remain structurally valid — a retracement beyond 78.6% technically invalidates the structure leg's momentum. Entries within this zone maximize reward (entering near the deepest discount in a bull leg) while minimizing risk (the stop is at the structural swing, not far from the OTE bottom).
OTE zone visualization: A semi-transparent purple box rendered from the leg start bar to two bars beyond the current bar, spanning the OTE top and bottom prices. The zone extends and updates in real time as the leg evolves. The exact OTE band price levels are displayed on the dashboard for immediate reference.
In-OTE detection: The current bar is considered in the OTE zone when the bar's low (for bull setups) reaches within the OTE band, or the bar's high (for bear setups) reaches within the OTE band. This detects the precise moment price has retraced into the optimal entry area.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💧 Liquidity Sweep Detection
The sweep detection engine identifies liquidity grab events relative to recent price extremes, adding an important second dimension to PIVOT's entry context. A sweep is detected when price briefly extends beyond the recent high or low reference level by a minimum ATR depth, then reverses and closes back inside — the classic stop-hunt signature.
Bull sweep: The current bar's low extends below the lowest low of the lookback period (default: 20 bars) by at least the minimum sweep depth (default: 0.1× ATR), and the bar closes above that low and closes bullish (close above open). Sell-side liquidity has been grabbed.
Bear sweep: The high extends above the highest high of the lookback period by at least the minimum depth, and the bar closes below that high and closes bearish. Buy-side liquidity has been grabbed.
Sweep recency: PIVOT accepts sweeps from the current bar or either of the two preceding bars — a three-bar recency window. This accommodates the common scenario where the sweep candle precedes the OTE entry bar by one or two bars, allowing the confluence engine to credit the sweep even when entry occurs slightly after the grab.
Setup B — Sweep + CHoCH: When a sweep occurs within 40 bars of a Change of Character event and price is simultaneously in the OTE zone with a rejection candle, PIVOT's second setup type fires — the Sweep + CHoCH entry. This is the highest-conviction entry type: a CHoCH confirms the structural reversal, the sweep confirms institutional liquidity accumulation, and the OTE entry delivers the optimal price. All three institutional signals converging simultaneously.
Sweep markers (optional): Small orange circles can be plotted above or below bars where sweeps are detected. Off by default — sweeps count toward confluence scoring regardless of whether markers are displayed — but enabling them provides visual awareness of every liquidity event on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕯 Rejection Candle Confirmation
Every PIVOT entry requires a qualifying rejection candle within the OTE zone — the candle that demonstrates price has touched the OTE level and been rejected back in the structural direction.
Bull rejection (Bullish Rejection or Engulfing):
Bullish Rejection — the bar closes bullish (close above open) and the close-to-low distance represents more than 55% of the bar's total range. The lower wick consumes the majority of the bar's range — buyers overwhelmed sellers that pushed into the OTE zone
Bullish Engulfing — a bullish close that fully engulfs the prior bearish candle — closing above the prior open while the prior candle was bearish. Confirms a clean reversal of the pullback momentum
Bear rejection (Bearish Rejection or Engulfing):
The mirror conditions — a bearish close with the high-to-close distance exceeding 55% of range, or a bearish engulfing of the prior bullish candle.
Why candle confirmation is essential: The OTE zone being touched is a necessary but not sufficient condition for entry. Price can drift through the OTE zone on low momentum without producing a genuine reversal. The rejection candle requirement ensures that the OTE touch produced a visible institutional response — not just a passive drift through the zone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 7-Layer Confluence Engine
Every potential entry is evaluated across seven independent confluence layers. The default minimum is 5 of 7 — a high-quality gate that blocks setups where several dimensions of confirmation are missing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — Market Structure Direction
Awards 1 point when the current structural trend agrees with the signal direction — bullish structure for longs (structure == 1), bearish for shorts. This is also a hard prerequisite enforced in the setup conditions — no PIVOT signal can fire without the structural trend being established in the signal direction. Structure is simultaneously a confluence layer and a foundational entry requirement.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — OTE Zone Touch
Awards 1 point when the current bar is within the OTE retracement band for the active leg direction — the 61.8–78.6% retracement zone. Also a hard prerequisite in the setup conditions. Ensures the entry is at the institutionally optimal retracement depth, not at an arbitrary price within the leg range.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — Premium/Discount Zone
Awards 1 point when price is in the correct zone relative to the leg equilibrium — below EQ (discount) for bull entries, above EQ (premium) for bear entries. The PD Zone layer enforces the institutional entry positioning principle: buy when price is cheap relative to the leg's fair value, sell when expensive. A valid OTE touch in the wrong PD zone (above EQ for a bull entry) carries a fundamental positioning problem — this layer blocks it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — HTF Bias
Awards 1 point when the higher timeframe EMA structure (default: 60-minute, 21/55 EMA) agrees with the signal direction, using the same strict condition as SURGE and ANCHOR — the HTF fast EMA must be above the slow EMA and the HTF close must be above the fast EMA for a bull vote. A bull OTE entry against a bearish HTF is a counter-trend trade; this layer ensures PIVOT's signals align with the macro institutional flow.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — Liquidity Sweep
Awards 1 point when a qualifying sweep has occurred within the three-bar recency window in the correct direction. A sweep before or coinciding with the OTE entry dramatically increases the probability that the pullback is a genuine institutional accumulation event rather than a mechanical retracement. When the Sweep Filter is disabled, this layer is not available for scoring — the total achievable score drops to 6 of 6 in that configuration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 6 — Rejection Candle
Awards 1 point when a qualifying bull rejection or bullish engulfing candle (long) or bear rejection or bearish engulfing candle (short) is present on the current bar. This is the candle confirmation layer — confirming that the institutional response to the OTE touch is visible and decisive on the current bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 7 — ADX + Volume Expansion
Awards 1 point when both the ADX filter and the volume expansion filter pass simultaneously. ADX confirms the market has directional strength rather than ranging. Volume exceeding the moving average confirms genuine institutional participation on the entry candle rather than a low-activity drift through the OTE zone. Both conditions must be true for the single layer point — they are evaluated jointly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Two Setup Types — A and B
PIVOT fires signals through two distinct setup configurations, each representing a different institutional entry scenario. Both can be enabled simultaneously.
Setup A — OTE Pullback:
The foundational PIVOT setup. Fires when the market structure is established (BOS or CHoCH has confirmed), the displacement leg is active, price pulls back into the 61.8–78.6% OTE zone, a rejection candle forms within the zone, and the full confluence stack meets the minimum score. This is the highest-frequency setup type — it captures the standard institutional pullback sequence following any qualifying structure event.
Setup B — Sweep + CHoCH:
The premium PIVOT setup. Requires all Setup A conditions plus a Change of Character within the lookback window (40 bars) and a qualifying liquidity sweep within the three-bar recency window. The sequence is: liquidity sweep (stop hunt) → CHoCH (structural reversal confirmation) → OTE pullback (optimal entry). When all three institutional events converge simultaneously in the OTE zone with a rejection candle, this is among the highest-conviction setups available in the entire AlphaX indicator suite.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Structural Stop Loss Placement
PIVOT uses structurally anchored stop placement — the stop is placed beyond the most recent confirmed swing low (for bull entries) or swing high (for bear entries), plus a small configurable ATR buffer (default: 0.25× ATR).
Why this is the correct stop for OTE entries: The OTE entry is made on the premise that the structural swing low (bull) or high (bear) will hold — it is the key level whose violation would invalidate the entire structural thesis. If price closes through the swing low after a bull OTE entry, the structure leg is negated, the displacement was a false break, and the position thesis is fundamentally wrong. The structural swing is therefore not an arbitrary stop choice — it is the precise price at which the trade is provably wrong.
This produces stops that adapt naturally to the leg size: large legs with distant swings produce wider stops and wider profit targets; tight legs with nearby swings produce tighter, higher-precision entries. The risk/reward is computed dynamically as `(close − slGuide) × TP Reward (R)`.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 16-row real-time dashboard displays the complete internal state across four sections.
STRUCTURE
Market Struct — current structural trend: ▲ BULLISH, ▼ BEARISH, or — NEUTRAL
PD Zone — current position relative to leg equilibrium: ◧ DISCOUNT, ◧ PREMIUM, or — EQ
Leg EQ — the exact leg equilibrium price (50% of the structure leg range) in real time
OTE Band — the current OTE zone bottom and top prices. Updates live as the leg expands
FILTERS
HTF Bias — higher timeframe EMA alignment: ▲ BULL, ▼ BEAR, or — FLAT
ADX — live ADX value with ✓ or ✗ pass/fail
Session — ✓ ACTIVE or ✗ OFF
LEVELS
Swing Hi — the most recent confirmed fractal swing high price. This is the current sell-side liquidity level and bear structural reference
Swing Lo — the most recent confirmed fractal swing low. The current buy-side liquidity level and bull structural stop reference
CONFLUENCE
Bull Score — live 0–7 confluence score. Background highlights yellow-green when threshold is met
Bear Score — live 0–7 score. Background highlights red when threshold is met
Live confluence label: During BUILDING and active leg phases, a small label near the OTE zone on the last bar shows B x/7 · S x/7 in real time — identical to ANCHOR's live score display — so you can monitor confluence building without dashboard attention.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Structure Leg Box (purple, semi-transparent) — the dealing range of the current displacement leg from structural origin to current price extreme. Adapts as the leg evolves
OTE Band Box (purple, deeper tint) — the 61.8–78.6% retracement zone of the current leg, extending two bars beyond the current bar for forward visibility
Leg Equilibrium Line (purple dots) — the 50% midpoint of the structure leg, continuously updated
Swing High Line (red dashed) — the most recent confirmed fractal swing high
Swing Low Line (yellow-green dashed) — the most recent confirmed fractal swing low
▲ Small Triangle (BOS Bull) — bullish Break of Structure, semi-transparent yellow-green
▲ Large Triangle (CHoCH Bull) — bullish Change of Character, bright yellow-green, larger size
▼ Small Triangle (BOS Bear) — bearish Break of Structure, semi-transparent red
▼ Large Triangle (CHoCH Bear) — bearish Change of Character, bright red, larger size
● Circle (optional, orange) — sweep detection markers when Show Sweep Markers is enabled
▲ Large Triangle (bull signal) — PIVOT long entry. All conditions confirmed
▼ Large Triangle (bear signal) — PIVOT short entry
Live confluence label — B x/7 · S x/7 near the OTE zone on the current bar
SL Guide (red dotted circles) — structural stop loss level below/above the swing reference
TP Guide (yellow-green dotted circles) — dynamically computed reward target based on R multiple
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX PIVOT — Step by Step
Step 1 — Identify the Structural Context
Check the dashboard Market Struct row. ▲ BULLISH or ▼ BEARISH tells you the directional bias. — NEUTRAL means no structure is established — no setup can develop
Note the Swing Hi and Swing Lo levels on the dashboard. These are the current liquidity pools and structural stop references
Check HTF Bias — does the higher timeframe agree with the current structure? HTF alignment is worth 1 confluence point and significantly improves setup quality
Step 2 — Watch for a Structure Event
A large bright ▲ CHoCH triangle below the bar marks a bullish Change of Character — the highest-priority structural event. The structure leg box and OTE zone will draw immediately
A smaller ▲ BOS triangle marks a bullish Break of Structure — confirmation the trend is continuing
After either event, the Structure Leg Box and OTE Band are drawn in real time. Note where the OTE zone sits in absolute price terms from the dashboard's OTE Band row
Step 3 — Wait for the OTE Pullback
After the displacement, watch price retrace toward the OTE zone. The purple OTE box on the chart gives you the exact price boundaries
Check PD Zone on the dashboard — for bull entries, you want ◧ DISCOUNT to confirm price is below the leg equilibrium when it enters the OTE
Watch the live B x/7 score label near the OTE zone. As price approaches the zone, the score builds in real time
Step 4 — Enter on the PIVOT Signal
A ▲ triangle at the OTE zone confirms all conditions — structure direction, OTE touch, PD zone, HTF bias, sweep (if applicable), rejection candle, and ADX/volume
The SL guide is plotted below the structural swing low (bull) — your structural invalidation level
The TP guide is plotted at the computed reward target based on your configured R multiple
For Setup B signals (Sweep + CHoCH), all three institutional events have converged — this is the highest-conviction PIVOT entry available
Step 5 — Manage and Exit
At the TP guide level, take partial or full profit
If a new CHoCH fires in the opposite direction during the trade, the structure has reversed — this is the exit signal for any remaining position
If price retests the OTE zone again during the same structural leg without triggering a new signal (cooldown active), wait for the cooldown to clear and assess whether the fresh confluence score still meets the minimum
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Market Struct shows — NEUTRAL — no structural direction is established. Without a confirmed BOS or CHoCH, the leg box and OTE zone have no directional context. Wait for a structural event to occur before looking for OTE entries
HTF Bias opposes structure direction — a bullish current timeframe structure against a bearish HTF is a counter-trend setup. These carry significantly lower success rates. The HTF alignment layer will not score, reducing the confluence count
Price is in the wrong PD zone for the setup direction — a bull entry above the leg equilibrium (premium) or a bear entry below (discount) means entering when price is institutionally expensive relative to the leg's fair value. The PD zone filter blocks these when enabled
Score is at 4/7 and the minimum is 5/7 — the setup is present but not enough layers confirm. Do not force entries when confluence is borderline
Structure events (BOS/CHoCH) are flipping rapidly in both directions — alternating bull and bear structure events in quick succession indicate a choppy market with no clean trend. The OTE zones will be constantly resetting without producing completed pullback sequences
OTE zone is very close to the swing low (bull) or swing high (bear) — when the OTE band and the structural stop reference are nearly at the same price, the risk/reward is poor. The stop would be just below the OTE entry. Reduce position size or pass the setup
The ideal PIVOT setup:
CHoCH event followed by a clean displacement leg with a well-defined leg box
Price retraces into the OTE zone while in discount (bull) or premium (bear)
A qualifying sweep has occurred within the last three bars
HTF Bias aligned with structure direction
Rejection candle forms within the OTE zone
Confluence score at 6/7 or 7/7
ADX confirms trending and volume is expanding
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
📐 Real-time market structure engine — fractal pivot detection with configurable sensitivity, tracking BOS and CHoCH events with body-close confirmation mode
📦 Structure Leg Box — automatically drawn from the structural origin to the current price extreme, expanding in real time as the leg develops
🎯 Optimal Trade Entry zone — 61.8–78.6% Fibonacci retracement band computed from the structure leg, rendered as a live OTE box and displayed with exact price levels on the dashboard
⚖ Leg Equilibrium line — 50% midpoint of the structure leg acting as the dynamic PD zone divider, plotted continuously and updated as the leg grows
💧 Liquidity sweep detection — identifies stop-hunt events relative to the recent price range with configurable ATR depth and three-bar recency window
🏅 Two setup types — Setup A (OTE Pullback after any BOS/CHoCH) and Setup B (Sweep + CHoCH + OTE — the highest-conviction institutional entry pattern)
🕯 Dual candle confirmation — bullish/bearish rejection candles and engulfing candles both qualify, ensuring the OTE touch produced a genuine institutional reversal response
🧠 7-layer confluence engine — Market Structure, OTE Touch, PD Zone, HTF Bias, Liquidity Sweep, Rejection Candle, and ADX + Volume Expansion all scored independently
📊 Live confluence label near OTE zone — B x/7 · S x/7 displayed in real time on the current bar without requiring dashboard reference
🎯 Structural stop loss — placed beyond the confirmed swing low (bull) or swing high (bear) plus ATR buffer, anchored to the genuine structural invalidation level
💹 Dynamic TP target — computed as `risk × R multiple`, adapting to leg size rather than using a fixed ATR distance
📡 HTF EMA bias filter — strict dual-condition HTF alignment (EMA crossover + price above fast EMA) for maximum higher timeframe conviction
🕐 Session filter — restricts signals to configurable active trading hours
📊 16-row live dashboard — Structure, Filters, Levels, and Confluence sections updated in real time
🔔 6 alert conditions — long/short entry, bull/bear CHoCH, sweep low, sweep high
🎨 Fully cohesive dual-tone color system — yellow-green for all bullish elements, red for all bearish, purple for structural reference levels and OTE zone, orange for sweeps
⚙ Fully configurable — pivot length, structure break mode, OTE Fibonacci levels, sweep depth and lookback, setup types, confluence minimum, HTF timeframe and EMAs, ADX, volume filter, session, SL buffer, TP reward multiple, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Structure Engine
Pivot Length (bars each side) — fractal sensitivity. 3 for scalping, 5 for standard intraday (default), 7+ for swing trading
Structure Break: Close Only — when on, requires a candle body close beyond the swing level (default: on). Off = wick touch counts
Show Active Swing Levels — toggle swing high and swing low dashed lines
Show BOS / CHoCH Markers — toggle all structure event triangles
CHoCH Only (hide BOS markers) — when on, only CHoCH events are marked. BOS events still update structure but are not labeled
Structure Leg & OTE
Show Structure Leg Box — toggle the displacement leg dealing range box
Show Leg Equilibrium (50%) — toggle the leg midpoint line
Show OTE Band (62–79%) — toggle the Fibonacci retracement entry zone box
OTE Fib Low — lower Fibonacci level of the OTE band (default: 0.618)
OTE Fib High — upper Fibonacci level of the OTE band (default: 0.786)
Require Premium / Discount — when on, longs require discount positioning, shorts require premium (default: on)
Liquidity Sweep
Enable Sweep Filter — when on, Layer 5 scores the recent sweep and Setup B becomes available
Show Sweep Markers — toggle optional orange circle markers at sweep detection bars
Min Sweep Depth (xATR) — minimum wick extension beyond the reference extreme to qualify as a sweep (default: 0.1)
Sweep Reference Lookback — bars used to define the recent high/low reference for sweep detection (default: 20)
Entries & Confluence
Setup A · OTE Pullback — enable standard OTE pullback entries after BOS or CHoCH
Setup B · Sweep + CHoCH — enable the premium sweep + reversal + OTE setup type
Min Confluence Layers (of 7) — minimum score required for a signal (default: 5)
Show Entry Signals — toggle signal triangles
Show Confluence Label — toggle the live B/S score label near the OTE zone
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 8)
Filters
HTF Trend Filter — toggle the higher timeframe EMA alignment requirement
HTF Timeframe — the higher timeframe for EMA data (default: 60-minute)
HTF Fast / Slow EMA — EMA periods on the HTF (defaults: 21 / 55)
ADX Trend Filter — toggle the ADX strength requirement (default: off)
ADX Length / ADX Minimum — ADX parameters (defaults: 14 / 18)
Volume Expansion Confirm — when on, entry candle volume must exceed the moving average by the minimum multiplier
Min Volume vs Avg — minimum volume ratio for the expansion filter (default: 1.1)
Volume Avg Length — SMA length for the volume baseline (default: 20)
Session Filter — toggle active hours restriction (default: off)
Active Session — configurable session window
Exit Guidance
ATR Length — lookback for ATR calculation (default: 14)
Show SL / TP Guides — toggle stop and target dotted circle plots
SL Buffer Beyond Swing (xATR) — additional ATR buffer beyond the structural swing stop reference (default: 0.25)
TP Reward (R) — take profit distance as a multiple of the risk from entry to stop (default: 2.0)
Display
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for bullish signals, fills, and labels
Bear / Bear Bright — red family for bearish signals, fills, and labels
Sweep / Alert — orange for sweep markers and alerts
Equilibrium / OTE Band — purple for structural reference levels and OTE zone
SL Guide / TP Guide — stop and target circle colors
Bull / Bear Label Text — text color for signal labels
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (6 total)
Entry Alerts
Pivot Long Entry — all conditions confirmed for a long OTE setup. Signal label fired
Pivot Short Entry — all conditions confirmed for a short OTE setup
Structure Alerts
Pivot Bull CHoCH — bullish Change of Character detected. Watch for OTE pullback in discount zone
Pivot Bear CHoCH — bearish Change of Character detected. Watch for OTE pullback in premium zone
Sweep Alerts
Pivot Sweep Low — sell-side liquidity swept below recent lows. Potential long setup developing
Pivot Sweep High — buy-side liquidity swept above recent highs. Potential short setup developing
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 on M5–M15 , with general suitability for major forex pairs and crypto on the same timeframes:
Pivot Length at 5 — the classic fractal sensitivity for intraday gold and forex. Balances signal frequency with structural significance
Close Only on — body close structure breaks eliminate the vast majority of wick-based false breaks on gold and volatile instruments
Setup B (Sweep + CHoCH) on — the highest-quality setups on gold involve a sweep before the CHoCH, making this setup type particularly effective on XAUUSD
HTF at 60-minute — the standard intraday reference for M5–M15 trading
ADX filter off by default — the OTE + rejection candle requirements already provide strong quality filtering without needing ADX as an additional gate
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Pivot Length to 3, increase Cooldown to 5, reduce TP Reward to 1.5, use tight session filter
H1–H4 swing trading — increase Pivot Length to 7–10, set HTF to Daily or Weekly, increase TP Reward to 3.0–4.0, increase SL Buffer to 0.5
Crypto (BTC, ETH) — increase Sweep Depth to 0.2–0.3× ATR for the wider wicks typical of crypto, consider enabling ADX filter at 20
Indices (NAS100, US30) — use Pivot Length 5–7, enable Session Filter to 09:30–16:00, enable ADX filter
More signals — lower Min Confluence to 4, disable PD Zone requirement, enable Setup A only, reduce Cooldown
Ultra-selective entries only — raise Min Confluence to 6 or 7, require Setup B only, enable ADX filter, enable Volume Expansion
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🎯 OTE and Fibonacci pullback traders — PIVOT is the definitive quantitative implementation of the Optimal Trade Entry framework. Every component — structure detection, leg computation, Fibonacci zone rendering, and rejection confirmation — is automated and scored
🏦 Smart money concepts and ICT methodology traders — PIVOT encodes the CHoCH → displacement → OTE pullback sequence that forms the core of ICT's entry model. The Sweep + CHoCH setup type specifically captures the stop hunt → reversal → optimal entry sequence
🥇 Gold (XAUUSD) and forex traders — the default settings are calibrated for intraday gold trading, where OTE pullbacks after CHoCH events are among the most consistent institutional patterns available
📊 Traders who want structure-defined risk — the structural stop placement means every trade has a stop at a genuinely meaningful level — the swing that would invalidate the structure thesis — rather than an arbitrary ATR distance
🧠 Systematic traders who want to quantify OTE entries — the 7-layer scoring system removes subjectivity from OTE trading. Every potential entry is scored objectively against the same seven criteria on every bar
📈 Traders who want to enter later at a better price — PIVOT's entire philosophy is about waiting for the pullback. If you consistently enter at breakouts and then watch price retrace before continuing, PIVOT is the solution — it waits for that retracement and enters at the optimal Fibonacci level within it
⚠ Traders who struggle with stop placement — the structural swing reference + ATR buffer produces a stop that makes structural sense. You are not guessing where to put the stop — the market's structure tells you exactly where it belongs
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Pivot detection, structure break logic, OTE zone calculation, and confluence scoring all finalize on confirmed bars only
The pivot detection has an inherent offset of pivotLen bars — a pivot is only confirmed after pivotLen bars have passed on both sides. This is standard behavior for fractal-based pivot systems and is not repainting — it is the mathematical requirement for confirming the fractal pattern
The Structure Leg Box and OTE Zone are redrawn only on the last bar for chart cleanliness. Historical bars retain signal markers and BOS/CHoCH labels but do not show outdated box overlays
The CHoCH window for Setup B (40 bars) means a Sweep + CHoCH setup can fire up to 40 bars after the CHoCH event, as long as the OTE zone is still valid and all other conditions are met. On slower timeframes this window covers a wider clock-time range — adjust if needed
The confluence label near the OTE zone is drawn only on the last bar. It is a real-time awareness tool, not a historical indicator
Maximum 500 labels, 500 lines, and 80 boxes are rendered. On very active charts, the oldest markers may be removed by TradingView's limits
The session filter is off by default — PIVOT's structural approach is timeframe and session-agnostic. Enable the session filter for instruments where specific sessions (London, NY) produce more reliable structure events
The TP guide is computed dynamically as risk × R multiple. On bars where the swing reference and current price are very close (producing near-zero risk), the fallback is ATR × R multiple
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 know that the move has already started — and who want to enter it at the precise price where the institutions who created the move are still adding to their position. Penunjuk

[ A L P H A X ] CATALYST - Volatility & Regime Prediction EngineAlphaX CATALYST — Volatility Ignition & Regime Prediction Engine: Compression Cycle Detection, Bias Vector Scoring, 6-Stage Regime State Machine & Ignition Probability Gate
AlphaX CATALYST is a professional-grade volatility prediction system built on a fundamentally different philosophy from every other indicator in the AlphaX suite. Where VOID, SURGE, FORTRESS, and ANCHOR all detect setups after price has established a structural context, CATALYST reads the market before the move happens. It does not wait for a breakout to confirm entry — it measures the energy compressing inside the market during quiet periods and predicts the ignition point before the explosion occurs. The core insight is simple but profound: markets breathe in cycles. They compress, coil, and then release energy in directional bursts. CATALYST quantifies every stage of that cycle — from the first signs of volatility contraction through full coil, ignition, trending expansion, and exhaustion — and fires signals only when the compression is deep enough, the directional bias during the coil is strong enough, and the higher timeframe structure confirms the direction. The result is a system that positions you at the moment of ignition — not a bar after the breakout has already occurred. Designed for volatility-aware traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌬 The Philosophy — Markets Breathe
Every major directional move in every liquid market is preceded by a period of compression. Price range contracts. Volume dries up. Volatility percentile falls toward historic lows. The Bollinger Bands compress inside the Keltner Channels. Narrow range bars form consecutively. This compression is not random — it is the mechanism by which institutional positions are accumulated quietly, without moving price, before the delivery move begins.
Most traders see this compression phase as boring or unreadable and look elsewhere for setups. CATALYST is built on the opposite premise: the compression phase is the most important and readable phase of the entire price cycle . The depth of the compression tells you how much energy is coiling. The directional bias during the compression tells you where that energy is most likely to be released. The higher timeframe alignment tells you whether that release is likely to be with or against the macro institutional flow.
By the time the breakout candle is obvious to everyone, CATALYST has already been tracking the setup for multiple bars — measuring compression depth, monitoring accumulation bias, and computing the ignition probability score in real time. When ignition fires, it fires with advance conviction — not reactive confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ The 6-Stage Regime State Machine
CATALYST is built around a deterministic 6-stage regime cycle that every market passes through on every timeframe. Understanding the regime is the foundation of using CATALYST correctly — the dashboard, background colors, and regime flip labels all communicate exactly which stage the market is in at every bar.
Stage 0 — QUIET
The market is dormant. No significant compression is building (score below 35). Volatility is neither low nor building toward a setup. This is the baseline state — the market is between cycles. Gray background tint. No actionable context.
Stage 1 — BUILDING
Compression is beginning to develop (score between 35 and 75). One or more compression signals are present — the squeeze may be turning on, narrow range bars may be forming, volume may be beginning to dry. The coil is winding up. Orange background tint intensifies slightly. The bias vector label appears on the current coil box to indicate which direction accumulation is occurring.
Stage 2 — COILED
Maximum compression state (score 75+, full BB/KC squeeze active). The spring is fully wound. Energy is at maximum concentration. This is the highest pre-ignition alert state. Deeper orange background tint. The coil box is rendered with higher opacity. The COILED flip label appears on the chart. Dashboard shows COMPRESS at 75%+ and SQUEEZE ON. This is the state you watch most closely — ignition can occur at any bar from here.
Stage 3 — IGNITION
A single-bar flash state. The regime transitions through IGNITION on the bar where all ignition conditions are simultaneously met — compression deep enough, bias directional enough, expansion candle large enough, ATR expanding. The cyan background tint and IGNITION flip label mark this bar. The IGNITE signal label fires on this bar. This is the entry bar. Immediately transitions to TRENDING on the next bar.
Stage 4 — TRENDING
The expansion phase. Price is in directional delivery. The regime holds TRENDING until one of the exhaustion conditions fires: RSI reaching extreme levels with climax volume, a significant wick rejection candle in the trend direction, a squeeze reforming during the trend (stall), or a reversal candle closing through the 21 EMA. Yellow-green tint during bull expansion, red tint during bear expansion.
Stage 5 — EXHAUSTION
The expansion energy is spent. One of the exhaustion conditions has triggered. Purple diamond markers appear above or below price. This is the early warning that the trend leg is ending — not necessarily the trend itself, but the current momentum leg. After EXHAUSTION, the regime resets: if compression begins building again, it cycles back to BUILDING; if not, it returns to QUIET and the cycle begins again.
Why the state machine matters: Every signal in CATALYST is regime-gated. Ignition signals can only fire from the COILED state. Exhaustion warnings can only fire from the TRENDING state. This ensures signals are always contextually appropriate — you cannot get an ignition signal without prior compression, and you cannot get an exhaustion warning without a prior trend.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📉 The Compression Score Engine — Measuring the Coil
The compression score is a 0–100 composite reading that quantifies exactly how tightly the market is coiling at any given bar. It is the primary input to the regime state machine and is displayed live on the dashboard.
Six compression components and their weights:
Squeeze State (up to 30 points):
The BB/KC squeeze is the most powerful single compression signal. When Bollinger Bands are fully inside Keltner Channels, the market is at maximum volatility contraction — 30 points. If the squeeze fired on the previous bar (just released), 15 points are still awarded, capturing the residual compression energy at the moment of release.
Narrow Range Pattern — NR (up to 20 points):
The current bar's high-low range is measured against the lowest range over the lookback period (default: 7 bars). When the current bar has the narrowest range in the lookback window, 20 points are awarded. This is the NR7 pattern generalized to a configurable lookback — the classic volatility contraction signal.
NR Streak (up to 15 points):
Consecutive narrow range bars amplify the coil energy. When the NR count over the minimum coil duration reaches the threshold, 15 additional points are awarded. Multiple consecutive NR bars indicate the market has been compressing for a sustained period — a deeper, more energetic coil.
Volume Dry-Up (up to 15 points):
Current volume below the configurable fraction of its moving average (default: 65% of the 20-bar SMA) confirms institutional accumulation is occurring quietly — institutions are building positions without creating visible volume signals. 15 points awarded when volume is dry.
Volume Dry Streak (up to 10 points):
Multiple consecutive bars of volume dry-up, identical logic to the NR streak. Sustained low volume over multiple bars is a stronger coil signal than a single dry bar.
ATR Percentile Rank (up to 10 points):
The current ATR is ranked against its own history over the configurable lookback (default: 100 bars). When ATR is in the bottom 25th percentile of its historical range — meaning volatility is at a historic low for this instrument on this timeframe — 10 points are awarded. Below the 40th percentile scores 5 points. This ensures the compression is genuine historically, not just temporarily quiet in an already volatile market.
Reading the score:
0–35 — QUIET, no meaningful compression building
35–55 — BUILDING, compression developing but not yet actionable
55–74 — COILING, significant compression present
75–100 — FULLY COILED, maximum compression, squeeze active. Ignition-ready state
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧭 The Bias Vector — Who Is Accumulating During the Coil?
Compression tells you the market is coiling. The Bias Vector tells you which direction institutions are accumulating during that coil. A range of -100 (fully bearish) to +100 (fully bullish), the bias vector is a composite of five independent directional pressure readings — each measuring accumulation from a different angle.
Volume Delta (up to ±25 points):
The estimated directional volume pressure — bull volume EMA minus bear volume EMA — forms the primary bias input. When delta is positive and rising (buyers accelerating), 25 points are added. When delta is positive but not accelerating, 10 points. The inverse applies for bear delta. This is the most direct measure of whether buyers or sellers are winning the quiet accumulation battle during compression.
Close-Position Bias (up to ±20 points):
Where closes fall within each bar's high-low range, averaged over the lookback period (default: 10 bars). When the average close position is in the upper 55%+ of the range — candles are consistently closing near their highs — buyers are controlling the candle closes. ±20 points based on whether the close bias is bullish (above 0.55) or bearish (below 0.45). This is a subtle but powerful measure of who is controlling the close during the coil.
Micro Structure (up to ±20 points):
Higher highs or higher lows over the structure lookback (default: 20 bars) vote bullish. Lower lows or lower highs vote bearish. ±20 points. Micro structure during compression tells you whether the coil is forming as a higher low (bullish coil) or a lower high (bearish coil) — the internal structure of the compression box reveals directional intent.
HTF Bias (up to ±20 points):
The higher timeframe EMA alignment (default: 60-minute, 50-period EMA). When HTF close is above the HTF EMA — the macro trend is bullish — +20 points. When below, -20 points. When Require HTF Alignment is disabled, this component is neutral. The HTF bias ensures the coil's directional reading is contextualized against the macro institutional flow.
Price vs BB Basis (up to ±15 points):
Whether the current close is above or below the BB basis (Bollinger Band midline). Price above the basis during compression means the coil is forming above fair value — a mild bullish signal. Price below the basis is mildly bearish. ±15 points. This adds a relative positioning dimension to the bias.
Reading the bias vector:
+35 to +100 — bull bias. Buyers are accumulating during the coil. Long ignition is favored
-35 to -100 — bear bias. Sellers are distributing during the coil. Short ignition is favored
-34 to +34 — neutral bias. No clear directional accumulation. Ignition may fire in either direction — lower conviction
Bias Arrow:
During BUILDING and COILED regime stages, a live bias arrow label appears below (bull bias) or above (bear bias) the coil box on the current bar, showing the directional score in real time. As new bars form, the arrow updates continuously — you can watch the bias building or shifting during the coil.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 The Ignition Score — 0 to 100 Probability Gate
Every bar in the COILED regime, CATALYST computes two separate ignition scores — one for long ignition, one for short. These scores gate whether a signal fires. Only when the score meets the configured minimum threshold (default: 62) does a signal become eligible.
Long ignition score components:
Compression depth (up to 20 points) — fully coiled scores 20, isCoiling scores 10, moderate compression scores 10
Squeeze state (up to 20 points) — squeeze release scores 20 (maximum — the spring just released), squeeze still active scores 10
Bias vector alignment (up to 25 points) — bias above +50 scores 25, above +35 scores 15, below 0 deducts 15
HTF alignment (up to 15 points) — HTF bullish scores 15, disabled scores 15 (neutral)
Expansion candle quality (up to 15 points) — strong bull body above ATR threshold scores 15, any bullish close scores 8
ATR expansion (up to 5 points) — ATR expanding above its short-term average confirms the coil is releasing
Volume delta confirmation (up to 10 points) — accelerating buy delta scores 10, positive delta scores 5
The short ignition score mirrors this structure with all conditions inverted.
What the score thresholds mean in practice:
90–100 — near-perfect setup. All components aligned. Extremely rare
75–89 — elite setup. Multiple high-weight components confirmed simultaneously
62–74 (default threshold) — high-quality setup. Sufficient confirmation to fire
50–61 — moderate quality. Available if you lower the threshold, but carries more false signals
Below 50 — low-quality ignition conditions. System will not fire at any reasonable threshold setting
The live long and short scores are displayed in real time on the dashboard as IGNITE L and IGNITE S — color-coded yellow-green or red when they meet the threshold, neutral otherwise. You can watch the ignition score building toward threshold in real time during the coil phase.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ The Ignition Signal — IGNITE Entry
The IGNITE label is CATALYST's primary entry signal. It fires when all of the following conditions are simultaneously confirmed on a bar close:
Hard requirements (all must be true):
Regime is in COILED state (compression score 75+, squeeze active)
The expansion candle body meets or exceeds the configured minimum (default: 1.15× ATR) — the breakout candle is large and directional
The bias vector is aligned with the signal direction (+35 or higher for long, -35 or lower for short)
ATR is actively expanding above its short-term average — the volatility expansion has begun
Squeeze has released on this bar or was releasing on the previous bar (when Require Squeeze Release is enabled)
Ignition score meets the minimum threshold (default: 62)
Session filter is satisfied (when enabled)
Signal cooldown has elapsed since the last signal
Signal label: A large IGNITE label appears below the bar (long) or above (short) on the exact ignition bar. Yellow-green for long, red for short.
Why this is fundamentally different from a standard breakout signal: A standard breakout indicator fires when price closes above a resistance level or a band. It reacts to what has already happened. CATALYST fires on the ignition bar only after verifying that the preceding compression was deep enough (COILED regime), that the directional bias during the coil was confirmed (bias vector), that the breakout candle itself is sufficiently large (body ATR check), and that the volatility is genuinely expanding (ATR expansion). Every component addresses a specific failure mode of basic breakout trading — false breakouts, weak breakouts, counter-HTF breakouts, and low-compression breakouts are all filtered before the signal fires.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔮 The Compression Coil Box
When the compression score crosses 55 and the BUILDING regime begins, CATALYST draws a live Coil Box — an orange-tinted rectangle spanning the high-low range of the entire compression period from the first coiling bar to the current bar.
What the coil box represents: The coil box is the visual representation of the spring being wound. Every bar that the coil remains active, the box extends to the right and expands to incorporate the new bar's range. The box's height represents the total price range of the compression period — the tighter this range, the more compressed the energy.
Box opacity: The box becomes more opaque when the compression reaches the fully COILED state (score 75+, squeeze active). This visual intensity progression gives you an immediate sense of compression depth — a faint box means early-stage building, a deep orange box means maximum coil.
Box on ignition: When ignition fires, the box remains on the chart at the coil range, giving you a clear visual reference for the compression zone that preceded the move. The coil box range is also used for structural stop loss placement — the SL Beyond Coil Box Edge setting places the stop loss beyond the coil box boundary rather than a fixed ATR distance from entry.
Box cleanup: When the regime returns to QUIET (compression fully dissipated without ignition), the box is deleted. When ignition occurs, the box is retained as a reference.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Exhaustion Radar — Early Warning System
The Exhaustion Radar monitors the TRENDING regime for signs that the expansion energy is being spent. When exhaustion conditions are met, purple diamond markers appear above (bull trend exhaustion) or below (bear trend exhaustion) the bar — a warning that the current momentum leg is likely approaching its end.
Exhaustion conditions (any one is sufficient):
RSI climax with volume spike — RSI above the overbought threshold (default: 72) in a bull trend with volume exceeding the configured climax multiple (default: 2.2×). This combination of extreme RSI and high volume is the classic climax top pattern — buyers are exhausting their buying capacity simultaneously
RSI climax with volume spike (bear) — RSI below the oversold threshold (default: 28) with climax volume in a bear trend. Sellers exhausting
Wick rejection in trend direction — a bar with a rejection wick exceeding the configured minimum percentage (default: 55%) in the direction of the trend. A bull trend bar with a massive upper wick indicates aggressive selling into the highs — supply overwhelming demand at the extreme
Trend stall squeeze — when a squeeze (BB inside KC) forms during the trending phase while volume is also drying up. This indicates the expansion move has stalled into a new compression without resolution — energy is being absorbed rather than continuing
Reversal candle through 21 EMA — a strong opposing candle that closes through the 21-period EMA in the trend direction. In a bull trend, a strong bearish close through the 21 EMA indicates the trend's immediate momentum structure has been broken
How to use exhaustion signals: Exhaustion diamonds are not reversal signals. They indicate that the current momentum leg is likely complete — not that the trend has ended. Use them to take partial or full profit on trend trades, tighten trailing stops, or wait for the next CATALYST compression cycle to develop before re-entering.
━━━━━━━━━━━━━━━━━════════════════════════
🎯 Coil-Anchored Risk Guidance System
On every IGNITE signal, CATALYST draws forward-projecting risk guidance levels for the duration of the trade.
Stop Loss (SL):
When SL Beyond Coil Box Edge is enabled (default: on), the stop is placed beyond the coil box boundary — below the coil box low (long) or above the coil box high (short) — plus a small ATR buffer. The coil box represents the full compression range: if price returns into and through the opposite side of the coil box after ignition, the breakout has failed and the setup is invalidated. This gives the stop structural meaning beyond just an ATR distance. When the coil SL is less conservative than the fixed ATR SL, the system uses whichever is further from entry to ensure adequate protection.
TP1 — First Target:
2.0× ATR from the entry close (configurable). The initial partial profit target. At TP1, consider scaling out 50% of the position.
TP2 — Extended Target:
4.0× ATR from entry (configurable). The full expansion target for the remaining position — allowing the trailing stop or regime-based exit (exhaustion signal) to manage the remainder.
Level visualization: All three levels are drawn as horizontal dashed or dotted lines extending 12 bars forward from the signal bar, with price labels at the right edge showing exact levels. SL in red, TP1 in dim yellow-green, TP2 in bright yellow-green.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 14-row real-time dashboard displays every internal state of the CATALYST engine on every bar.
REGIME — current stage: QUIET / BUILDING / COILED / IGNITION / TRENDING / EXHAUSTION. Color-coded by regime type
COMPRESS — live compression score 0–100%. Orange when above 50%, deeper orange when above 75%
SQUEEZE — ON (BB inside KC, maximum coil), RELEASE (squeeze just fired — highest-quality ignition condition), or OFF
ATR RANK — current ATR percentile versus its 100-bar history. Orange when below 30th percentile (historically low volatility — coil energy building)
VOL DRY — YES when current volume is below the dry-up threshold, NO otherwise. Orange when YES
BIAS VECTOR — the composite directional accumulation score with + or - sign. Yellow-green above +35, red below -35, neutral otherwise
HTF BIAS — higher timeframe EMA direction: BULL, BEAR, or FLAT
VOL DELTA — BUYERS when bull volume dominates, SELLERS when bear volume dominates
IGNITE L — live long ignition probability score 0–100. Highlights yellow-green when at or above the minimum threshold
IGNITE S — live short ignition probability score 0–100. Highlights red when at or above threshold
COIL BARS — number of bars the current coil has been active. Orange when at or above the minimum coil duration
COIL RANGE — the high-low range of the current coil box in price terms
SESSION — ACTIVE or FILTERED based on the session filter state
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Compression Coil Box (orange) — live orange-tinted box spanning the full high-low range of the current compression period. Brightens on full coil. The core visual centerpiece of CATALYST
Regime Background Tints — subtle full-bar background colors for each regime: gray (QUIET), light orange (BUILDING), deeper orange (COILED), cyan (IGNITION), yellow-green or red (TRENDING), purple (EXHAUSTION)
IGNITE Label (below bar, yellow-green) — bull ignition signal. All conditions confirmed
IGNITE Label (above bar, red) — bear ignition signal
◆ Exhaustion Diamond (above bar, purple) — bull trend exhaustion warning
◆ Exhaustion Diamond (below bar, purple) — bear trend exhaustion warning
Bias Vector Arrow Label — appears near the coil box on the current bar during BUILDING and COILED phases, showing ▲ BIAS +xx or ▼ BIAS -xx in real time
Regime Flip Labels — small text labels marking every regime transition: BUILDING, COILED, IGNITION, TRENDING, EXHAUSTION. Color-coded by regime
SL Dashed Line (red) — stop loss guide extending 12 bars from ignition bar
TP1 Dotted Line (dim yellow-green) — first take-profit guide
TP2 Dotted Line (bright yellow-green) — extended take-profit guide
SL / TP1 / TP2 Price Labels — exact price levels labeled at the right end of each guide line
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX CATALYST — Step by Step
Step 1 — Monitor the Regime
Check the dashboard REGIME row. If it shows QUIET, nothing actionable is developing. If it shows BUILDING, a compression cycle is beginning — start paying attention
Watch COMPRESS build toward 75+. When SQUEEZE shows ON simultaneously, the market is in maximum coil state. This is your highest-alert pre-signal phase
Note the Coil Box forming and narrowing on the chart. The tighter the box, the more energy compressed inside
Step 2 — Assess the Bias During the Coil
Watch the Bias Arrow label near the coil box. Is it showing ▲ BIAS or ▼ BIAS? A strong positive bias (+50 or above) during a tight coil is the strongest possible pre-ignition setup
Check HTF BIAS on the dashboard — does it confirm the bias arrow direction? HTF alignment is worth 15 ignition score points and significantly increases the probability of a clean directional ignition
Watch VOL DELTA — are BUYERS or SELLERS winning the accumulation battle during the quiet phase?
If the Bias Vector is below ±35, the coil does not have strong directional conviction. Lower your size expectations or wait for bias to build
Step 3 — Watch the Ignition Scores Approach Threshold
As the coil deepens, watch IGNITE L and IGNITE S scores on the dashboard climbing toward the minimum threshold. When a score crosses the threshold and highlights, the system is primed — ignition can fire on the next qualifying expansion bar
The squeeze release (SQUEEZE shows RELEASE) is the most important single event in the ignition sequence. When the squeeze releases on a strong expansion candle in the bias direction, ignition fires immediately if the score is sufficient
Step 4 — Enter on the IGNITE Label
The IGNITE label marks the exact ignition bar. Enter on the close of the signal bar or the open of the following bar
The SL is placed beyond the coil box edge — below the coil low (long) or above the coil high (short). This is your structural invalidation: if price re-enters and closes through the opposite side of the coil box, the breakout has failed
TP1 at 2.0× ATR — scale out 50% here. Move the remainder to breakeven
Let TP2 or the first exhaustion diamond manage the remaining position
Step 5 — Exit on Exhaustion or Regime Shift
A purple diamond marks the exhaustion condition. Take profit on the remaining position or tighten the stop aggressively
The dashboard shows EXHAUSTION regime — the trend energy has been identified as spent
If no exhaustion fires and price continues, the system will track the regime as TRENDING — let the move run until exhaustion appears
After EXHAUSTION, the regime resets. Watch for a new compression cycle to build in the updated directional context
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Regime is QUIET and COMPRESS is below 35 — no cycle is developing. CATALYST has nothing actionable and no signal can fire. Do not force entries
Regime reaches COILED but Bias Vector is below ±35 — the coil is real but the directional accumulation is inconclusive. Ignition in this environment carries reduced directional probability. Reduce size significantly or wait for bias to develop clarity
HTF BIAS opposes the bias vector direction — a bearish HTF while the bias vector is bullish means the coil is building against the macro institutional flow. Counter-HTF ignitions have a significantly lower success rate. Wait for HTF alignment
IGNITE L and IGNITE S scores are both below threshold — the market is compressing but neither a long nor short setup has sufficient confirmation quality. No signal will fire. Wait for the scores to build
Multiple regime cycles in rapid succession without trending — BUILDING → COILED → QUIET → BUILDING cycles that never reach IGNITION indicate a market in deep chop or accumulation. Do not try to anticipate the breakout direction — wait for the cycle to complete cleanly
Session shows FILTERED — the session filter has blocked the current time window. No signals will fire
COIL BARS is below the minimum coil duration — the compression has been too brief to build meaningful energy. A coil of 2 bars has far less stored energy than a coil of 8+ bars. Prioritize setups with longer coil durations
The ideal CATALYST setup:
COMPRESS at 80+, SQUEEZE ON for multiple bars
Bias Vector at +50 or above (long) or -50 or below (short)
HTF BIAS aligned with the bias direction
VOL DELTA confirming the bias direction (BUYERS for long, SELLERS for short)
IGNITE L or S score approaching 75+
COIL BARS at 5 or more — sustained compression
Squeeze RELEASE on the ignition bar — the spring snapping
Strong body expansion candle in the bias direction
When all these conditions align, CATALYST produces its highest-conviction ignition signals — setups where the compression depth, directional accumulation, HTF alignment, volume pressure, and expansion quality are all confirming simultaneously.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🌬 6-stage regime state machine — QUIET → BUILDING → COILED → IGNITION → TRENDING → EXHAUSTION. Every bar is classified and every signal is regime-gated
📉 Multi-component compression score — BB/KC squeeze, NR patterns, NR streaks, volume dry-up, volume dry streaks, and ATR percentile rank combined into a single 0–100 score
📦 Live compression coil box — orange-tinted box tracking the full range of the compression period in real time, brightening at maximum coil depth
🧭 5-component bias vector — Volume Delta, Close-Position Bias, Micro Structure, HTF EMA alignment, and BB Basis positioning combined into a -100 to +100 directional accumulation score
⚡ Live bias arrow label — directional score displayed near the coil box on the current bar, updating in real time during BUILDING and COILED phases
🔥 Dual ignition probability scores — separate 0–100 long and short scores computed every bar with a configurable minimum threshold gate
💥 IGNITE signal — fires only from COILED state on the exact bar where compression, bias, expansion candle, and ATR all confirm simultaneously
⚠ Exhaustion radar — RSI climax volume, rejection wick, trend stall squeeze, and reversal candle conditions produce early exhaustion warnings during the TRENDING phase
📡 HTF EMA bias filter — pulls higher timeframe directional structure into both the bias vector and the ignition scoring system
🎯 Coil-anchored SL placement — stop loss placed beyond the compression box structural boundary rather than a fixed ATR distance
🎨 Regime background tints — full-bar background colors for every regime stage, providing constant visual awareness of where the market is in the cycle
🏷 Regime flip labels — small text labels at every regime transition point on the chart history
📊 14-row live dashboard — Regime, Compress, Squeeze, ATR Rank, Vol Dry, Bias Vector, HTF Bias, Vol Delta, Ignition Scores, Coil Bars, Coil Range, Session updated every bar
🔔 5 alert conditions — Ignite Long, Ignite Short, Fully Coiled, Squeeze Release, Exhaustion Warning
⚙ Fully configurable — all ATR/BB/KC parameters, NR lookback, volume dry-up threshold, ATR percentile length, HTF timeframe and EMA, delta and structure lookbacks, ignition threshold, body size filter, exhaustion RSI/volume/wick parameters, SL/TP multiples, session windows, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Volatility Engine
ATR Length — ATR calculation lookback used across the engine (default: 14)
BB Length / BB Mult — Bollinger Band parameters for squeeze detection (defaults: 20 / 2.0)
KC Length / KC Mult — Keltner Channel parameters (defaults: 20 / 1.5)
NR Pattern Lookback — bars for narrow range comparison. NR fires when current range is the narrowest in this window (default: 7)
Volume Dry-Up Length — lookback for volume moving average (default: 20)
Max Vol vs Avg (coil) — maximum volume as a fraction of average for the dry-up condition (default: 0.65)
ATR Percentile Lookback — history window for ATR percentile rank (default: 100)
Min Coil Duration (bars) — minimum consecutive bars needed for streak bonuses (default: 3)
Bias Vector
HTF Bias Timeframe — higher timeframe for EMA bias pull (default: 60-minute)
HTF EMA Length — EMA period on the higher timeframe (default: 50)
Require HTF Alignment — when on, HTF opposing direction deducts points from ignition scores
Volume Delta Length — EMA smoothing for volume delta estimation (default: 14)
Close-Position Bias Len — lookback for average close position within bar range (default: 10)
Structure Lookback — bars for micro higher high / lower low detection (default: 20)
Ignition Signals
Min Ignition Score (0–100) — threshold below which no signal fires (default: 62). 58–68 is practical range
Min Ignition Body (xATR) — expansion candle body must exceed this multiple of ATR (default: 1.15)
Require Squeeze Release — when on, ignition must occur on or after BB/KC squeeze releases
Show Ignition BUY/SELL Labels — toggle IGNITE signal labels
Show Exhaustion Warnings — toggle exhaustion diamond markers
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 6)
Exhaustion Radar
RSI Overbought / Oversold — RSI thresholds for climax exhaustion detection (defaults: 72 / 28)
Climax Volume (x avg) — volume multiple above average required for RSI climax condition (default: 2.2)
Min Rejection Wick % — minimum wick as fraction of bar range for wick rejection exhaustion (default: 0.55)
Risk Guidance
Show SL / TP Guides on Signal — toggle level lines and labels
SL Distance (xATR) — ATR-based SL floor distance (default: 1.2)
TP1 Distance (xATR) — first take-profit target distance (default: 2.0)
TP2 Distance (xATR) — extended take-profit target distance (default: 4.0)
SL Beyond Coil Box Edge — places SL at the structural coil boundary rather than fixed ATR only (default: on)
Session Filter
Enable Session Filter — toggle the session restriction
London (08:00–13:00 UTC) — toggle London session inclusion
London/NY Overlap (13:00–17:00 UTC) — toggle the highest-volume overlap session
NY Afternoon (17:00–21:00 UTC) — toggle NY afternoon session
Display
Show Compression Coil Box — toggle the live orange coil box
Regime Background Tint — toggle the full-bar regime background colors
Show Bias Vector Arrow — toggle the live bias label near the coil box
Dashboard Position — Top Right / Top Left / Top Center / Bottom Right / Bottom Left / Bottom Center
Dashboard Size — Normal / Bigger
Theme
Bull Primary / Bright / Dim — yellow-green family for all bullish elements
Bear Primary / Bright / Dim — red family for all bearish elements
Coil / Squeeze — orange for all compression and coil elements
Ignition — cyan for the ignition regime flash
Exhaustion — purple for exhaustion regime and warning diamonds
Neutral — gray for QUIET regime and neutral states
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (5 total)
Signal Alerts
CATALYST Ignite Long — all long ignition conditions confirmed. IGNITE label fired below bar
CATALYST Ignite Short — all short ignition conditions confirmed. IGNITE label fired above bar
State Alerts
CATALYST Fully Coiled — regime has entered COILED state (compression 75+, squeeze active). Ignition may be imminent — prepare
CATALYST Squeeze Release — BB has expanded outside KC on this bar. Maximum-quality ignition condition active
CATALYST Exhaustion — exhaustion conditions detected in the TRENDING regime. Trend energy fading
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 M5–H1 :
Min Ignition Score at 62 — strong quality gate while allowing frequent enough signals on intraday timeframes
HTF at 60-minute — meaningful macro context for M5–M15 trading. The squeeze and ignition on M5 confirmed by H1 EMA alignment is the core multi-timeframe framework
ATR Percentile Lookback at 100 — calibrated for intraday volatility cycles on liquid instruments
NR Lookback at 7 — captures classic NR7 patterns while remaining sensitive enough for fast-moving instruments
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce ATR Percentile Lookback to 50, reduce NR Lookback to 5, reduce Min Ignition Score to 58, shorten Cooldown to 3 bars
H1–H4 swing trading — set HTF to Daily or Weekly, increase ATR Percentile Lookback to 200–250, increase Min Ignition Score to 68–72, increase TP2 to 6.0–8.0× ATR for wider swing targets
Crypto (BTC, ETH) — increase KC Mult to 2.0–2.5 and BB Mult to 2.5 to account for wider natural volatility, increase Climax Volume threshold to 2.8–3.5 for crypto's naturally higher volume spikes
Higher signal frequency — lower Min Ignition Score to 55–58, reduce NR Lookback to 5, reduce Min Coil Duration to 2
Ultra-selective signals only — raise Min Ignition Score to 72–78, require Squeeze Release on, HTF Alignment on, increase Min Coil Duration to 5
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
💥 Volatility breakout and expansion traders — CATALYST is purpose-built for traders who want to enter at the moment of volatility ignition, not after the move has already extended significantly
⚡ Squeeze traders and NR pattern traders — the compression engine formalizes and quantifies every squeeze and narrow range pattern into a single score, eliminating subjective judgment about whether a coil is "tight enough"
🔮 Anticipatory traders who want to read the market before it moves — the bias vector and ignition score system provides pre-signal intelligence during the coil that no reactive indicator can match
📊 Multi-timeframe traders — the HTF bias integration means every CATALYST signal is contextualized against the higher timeframe institutional flow
🧠 Systematic traders — every component of the compression score, bias vector, and ignition score is quantified and configurable. There is no subjectivity in what constitutes a "good enough" coil
🎯 Risk-conscious traders — the coil-anchored stop loss is structurally meaningful — placed at the exact level that invalidates the breakout thesis
📈 Traders across all asset classes — the ATR normalization and percentile-ranked volatility detection means CATALYST works consistently on gold, forex, crypto, and indices without manual recalibration between instruments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Regime state, compression score, bias vector, and ignition scores all finalize on confirmed bars
The regime state machine is sequential — IGNITION can only be reached from COILED. This means no signal can fire without prior confirmed compression regardless of how strong the expansion candle is
The ATR percentile rank requires the configured lookback history to be available. On charts with fewer bars than the ATR Percentile Lookback setting, the rank may underperform until sufficient history accumulates. This warm-up effect resolves naturally
The bias arrow label is drawn only on the last bar and refreshes on every tick during live trading. It does not appear on historical bars — only the current bar during BUILDING and COILED regimes
The SL / TP guide lines are redrawn on every new ignition signal. Previous signal levels are deleted when a new signal fires
Maximum 500 labels, 500 lines, and 100 boxes are rendered. The coil box, regime flip labels, and SL/TP levels all count toward these limits. On very active charts with long history, the oldest labels may be removed by TradingView's rendering limits
The session filter uses UTC hours rather than exchange-specific sessions, making it instrument-agnostic across all markets globally
The indicator does not track open positions or P&L — the regime state tracks the expansion direction (bull or bear) from ignition through exhaustion, but does not connect to any broker or account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 understand that the most powerful moment to enter a market is not when everyone can see the move — it is the bar before, when the coil finally snaps. Penunjuk

Power Order Blocks [ChartPrime]🔶 OVERVIEW
Power Order Blocks is an advanced structural detection engine designed to identify high-probability supply and demand zones. Unlike standard order block indicators, this tool focuses on "Power" — the intensity of the displacement following the block's formation, combined with a live information panel, equilibrium mapping, and touch tracking built directly into each zone.
It identifies the specific candle where institutional participants likely placed large orders, marks the resulting price inefficiency, and tracks these zones in real time until they are either mitigated or invalidated.
🔶 CORE CONCEPT — THE DISPLACEMENT VALIDATOR
The foundation of a "Power" Order Block is the displacement that follows it. For a zone to be considered valid, the market must move away from it with significant force.
The script uses a Displacement Multiplier to ensure quality:
• It compares the size of the engulfing candle to the previous candle's range.
• If the breakout candle isn't large enough relative to the setup candle, the zone is ignored.
• This filters out low-conviction market noise and focuses on areas of true institutional sponsorship.
🔶 THE POWER RATING SYSTEM
Every detected block is assigned a "Power" percentage. This rating provides immediate context regarding the strength of the move that created the zone.
• Calculation: The indicator compares the current displacement candle against the largest candle observed over a 100-bar lookback .
• Meaning: A 100% Power rating indicates the strongest displacement seen in recent history, suggesting a massive imbalance between buyers and sellers.
• Visual Intensity: When Power Intensity is enabled, the fill color of each block becomes more vivid as its Power % increases. High-power zones are immediately visible at a glance — weaker zones fade into the background naturally.
This allows traders to prioritize "High Power" zones, which typically offer more significant structural support or resistance.
🔶 DYNAMIC ZONE MANAGEMENT
The indicator manages zones dynamically to keep the chart clean and relevant:
Bullish Order Blocks (Demand): Formed when a bearish candle is followed by a high-displacement bullish candle. The zone is invalidated if price closes below the bottom of the block.
Bearish Order Blocks (Supply): Formed when a bullish candle is followed by a high-displacement bearish candle. The zone is invalidated if price closes above the top of the block.
Overlapping Cleanup: If a new order block forms that significantly overlaps an existing one, the script automatically removes the older, redundant zone to prevent clutter.
Block Limit: A maximum of 10 active blocks per side are tracked at any time, ensuring chart performance remains clean.
🔶 THE INFO PANEL
Each active Order Block renders a dedicated Info Panel — a secondary box that floats at the right edge of the zone and updates in real time.
The panel displays:
• Zone Direction: "Bullish OB" or "Bearish OB"
• Power %: The relative displacement strength at the time of formation
• Touch Counter: How many times price has tapped the zone boundary without breaking it
The touch counter is particularly valuable — a zone that has been tested multiple times without breaking demonstrates strong institutional defense and may represent a higher-conviction setup.
🔶 EQUILIBRIUM LINE
When Show Equilibrium Line is enabled, a line is drawn at the exact midpoint (50% level) of each Order Block.
• This level represents the theoretical "fair value" within the zone.
• Price often reacts precisely at the equilibrium before continuing in the original direction.
• It provides a refined entry reference within a wider zone, improving risk-to-reward on entries.
🔶 RETEST SIGNALS (MITIGATION)
When Show Retest Labels is enabled, the script monitors active zones for price interaction.
• If price returns to touch the boundary of a Bullish OB without breaking it, an upward arrow ⇡ appears below the bar.
• If price returns to touch the boundary of a Bearish OB without breaking it, a downward arrow ⇣ appears above the bar.
• A minimum 10-bar cooldown between signals prevents label spam on extended zone interactions.
• Each confirmed retest also increments the Touch Counter inside the Info Panel.
🔶 VISUAL ELEMENTS
Main OB Body: A filled rectangle spanning the order block's price range, extending forward in time. Fill intensity reflects the Power % when Power Intensity is enabled.
Info Panel: A secondary box at the right edge of each zone displaying Power % and Touch Count, updated live.
Equilibrium Line: A midpoint line inside each block marking the 50% level of the zone.
Retest Arrows: Clean arrow labels (⇡ / ⇣) marking the first tap into an active zone.
Color Coding: Fully customizable colors for Bullish (Demand) and Bearish (Supply) zones.
🔶 HOW TO USE
Entry Zones: Wait for price to return to a high-power zone. The Retest Arrow confirms the touch. Consider entries near the equilibrium line for tighter stops.
Zone Prioritization: Use the Power % to filter setups. Zones rated 70%+ represent the strongest institutional imbalances and are generally more reliable.
Touch Count Context: A zone with 0 touches is fresh and untested — typically the highest probability. Zones with multiple touches may be weakening.
Trend Confirmation: In a healthy trend, the market should consistently create and respect Power Order Blocks in the direction of the trend.
Stop Loss Placement: Order blocks provide logical structural levels for stops — just below a Bullish OB bottom or above a Bearish OB top.
Confluence: Combine the Power Rating, Equilibrium Line, and Touch Count together for the highest-quality setups.
🔶 SETTINGS REFERENCE
Displacement Multiplier: Controls how aggressive the displacement filter is. Higher values require a stronger engulfing move to validate a zone.
Bullish / Bearish OB Color: Set the fill color for each zone type.
Text Color: Controls the color of text inside the Info Panel.
Show Equilibrium Line: Toggles the midpoint line inside each block.
Power Intensity: When enabled, fill transparency scales with Power % — stronger zones appear more vivid.
Show Retest Labels: Toggles the ⇡ / ⇣ arrow labels on zone interactions.
🔶 CONCLUSION
Power Order Blocks provides a systematic way to map institutional footprint on the chart. By combining strict displacement validation with a relative power rating, live info panels, equilibrium mapping, and touch tracking, it transforms raw price action into a clear and actionable map of supply and demand imbalances — allowing traders to trade alongside the strongest market moves with precision and confidence. Penunjuk

APEX Trend & Signal Engine [Viprasol]APEX Trend & Signal Engine — Regime-Aware Dual-Mode Toolkit
═══════════════════════════════════════════════════════════
THE PROBLEM IT SOLVES
═══════════════════════════════════════════════════════════
The single most expensive mistake in trading is using the wrong style for the
conditions — trend-following a sideways range (death by a thousand whipsaws), or
mean-reverting a strong trend (fighting a freight train). Most indicators apply ONE
style blindly and let you find out the hard way.
APEX reads the market REGIME first, tells you which style fits right now, and only
fires signals that match. When the market is trending it trend-follows; when it's
ranging it mean-reverts. Same tool, opposite logic, applied at the right time.
═══════════════════════════════════════════════════════════
HOW THE FOUR PILLARS WORK TOGETHER
═══════════════════════════════════════════════════════════
Every trade decision rests on four questions, and APEX answers each:
1. BIAS — long or short? A multi-factor Trend Midline (your choice of 8 MA types)
colored by a consensus of price position, slope, and directional movement.
2. REGIME — trend or range? ADX + Kaufman Efficiency Ratio classify the regime and
pick the favored mode (trend-follow vs mean-revert). This is the engine's core.
3. LOCATION — where is fair value? A premium/discount model: longs are only allowed
in discount (below equilibrium), shorts only in premium (above). Better entries,
better risk-reward.
4. SIGNAL + FILTER — the trigger, gated by regime, location, and trend-cloud
confluence, so low-quality signals are filtered out.
═══════════════════════════════════════════════════════════
SIGNALS
═══════════════════════════════════════════════════════════
• In a TRENDING regime: momentum entries in the trend direction (baseline reclaim with
rising/falling slope and directional-movement agreement).
• In a RANGING regime: mean-reversion entries when price tags an extreme band and
reverts.
• A colored dot marks a confluent signal; a gray ✕ marks a signal that LACKS confluence
(a hint to exit the opposite position rather than enter).
• Take-profit markers flag when price reaches an ATR-based target after a signal.
═══════════════════════════════════════════════════════════
FOUR OPTIONAL OVERLAYS
═══════════════════════════════════════════════════════════
• TREND MIDLINE — an MA baseline colored by multi-factor consensus (blue long / red
short / gray neutral-exhaustion), filled to price.
• ADAPTIVE ZONE — a Supertrend rendered as a dynamic support/resistance ZONE (support
beneath price in uptrends, resistance above in downtrends) rather than flip signals.
• TREND CLOUD — a modified Ichimoku Kumo (Donchian, EMA, or HMA engine) for trend
context; bullish above, bearish below.
• EXTREME ZONES — multi-band standard-deviation gradient zones marking where price is
statistically stretched and prone to revert (mean-reversion).
Each is independently toggleable so you keep the chart as clean as you like.
═══════════════════════════════════════════════════════════
5-STATE CANDLE COLORING & DASHBOARD
═══════════════════════════════════════════════════════════
Candles paint in five states from a 0-10 trend-strength score: strong buy, buy,
neutral, sell, strong sell (strong states solid, weaker states faded).
The dashboard reports, at a glance: Favored Mode (trend-follow / mean-revert), Regime
(trending/ranging + bias), Trend (increasing/decreasing), Strength (0-10), Volatility
(increasing/decreasing), Location (premium/discount), Session (Tokyo/London/NY/Void),
and the current Signal.
═══════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════
1. Leave Mode on "Auto" and read the dashboard's Favored Mode — trade with the regime.
2. Take colored signals that agree with the trend; treat gray ✕ marks as exit cues.
3. Respect Location — favor longs in discount, shorts in premium.
4. Use the Adaptive Zone / Extreme Zones as entry and target reference levels.
5. Tune Trend/Fast lengths and the ADX threshold to your market and timeframe.
═══════════════════════════════════════════════════════════
HONEST LIMITATIONS — PLEASE READ
═══════════════════════════════════════════════════════════
• No indicator predicts the future. APEX organizes context and signals; it does not
guarantee outcomes. Confirm on closed bars.
• Regime classification has a transition lag — the first bars of a new trend or range
can be mislabeled. The favored-mode readout is guidance, not gospel.
• Session hours are set in UTC and adjustable; verify they match your instrument.
• Volume-dependent and synthetic-feed instruments may read differently.
• Take-profit markers use a simple ATR target on one tracked signal — they are a
reference, not a backtest. This is a decision-support tool, not financial advice.
═══════════════════════════════════════════════════════════
CREDITS & ORIGINALITY
═══════════════════════════════════════════════════════════
This is an original toolkit built from public-domain technical-analysis methods,
implemented from their published formulas: Supertrend (Olivier Seban), Ichimoku Kinko
Hyo (Goichi Hosoda), Bollinger Bands / %B (John Bollinger), ADX/DMI (J. Welles Wilder),
Efficiency Ratio (Perry Kaufman), and the premium/discount equilibrium concept. The
regime-aware dual-mode architecture, the confluence/location gating, the strength model,
the overlays' construction, and all code are original Viprasol work. No third-party Pine
code is reused and no proprietary algorithms are included.
Penunjuk

MACD RSI Signal [XWiseTrade]MACD RSI Signal
The classic MACD settings — 12, 26, 9 — were chosen decades ago for daily stock charts, where they roughly meant "half a month, one month, and a week." Almost everyone then copies those exact numbers onto 5-minute, 15-minute and hourly charts, where they no longer correspond to anything meaningful. This indicator rebuilds the MACD/RSI combination for intraday trading, with periods anchored to how the global trading day is actually structured, and with RSI graded in zones rather than a single overbought/oversold line.
Why simple moving averages, not exponential
Most MACD implementations use exponential moving averages, which deliberately weight recent bars more heavily than older ones. That weighting is a built-in assumption — that the latest price matters more. This indicator uses simple moving averages instead: every bar in the window counts equally. The result is a less manipulated, more faithful read of raw price action, with no human assumption about which bars "should" matter more. For intraday decisions, that neutrality lets the price structure speak for itself rather than through a weighting curve.
Why the periods are 12 / 24 / 8
Read on the 1-hour scale these map to real session structure: 12 ≈ the split between the Euro/US half of the day and the rest; 24 ≈ a full intraday higher-timeframe day; 8 ≈ the length of a single major session (London, New York, Asia). The point isn't that these numbers are magic — it's that the original 12/26/9 only ever made sense as "days," and on intraday charts that meaning is lost. Anchoring to sessions restores a reason for the numbers. You can apply it to higher or lower timeframes, but the 1-hour scale is its reference point.
How the signal is graded
A signal is not a single MACD cross. It requires momentum to be persisting: the MACD histogram must be positive and expanding for a bull case (negative and expanding for a bear case) — momentum actually accelerating, not a one-bar cross that fades.
RSI then grades that momentum, using zones based on familiar ratios (0.214 / 0.382 / 0.618 / 0.786) instead of plain 30/70 — finer resolution for intraday work:
Pass (solid Bull/Bear) — RSI between 0.382 and 0.618 (38.2–61.8): healthy core, room to run.
Warning (small marker) — RSI outside that core but not extreme: momentum persists, but the move is stretched — lower quality.
Veto (no signal) — RSI beyond 0.786 or below 0.214: too extreme, the signal is rejected rather than shown.
How to use it
Add it to a chart — built for intraday, with the 1-hour scale as the reference. Solid Bull/Bear labels are momentum that passed the RSI grade. Faint bull? / bear? markers are persisting momentum that RSI flagged as stretched — treat with caution. No label means the setup was either too weak or vetoed as overextended. The MACD here is built on simple (unweighted) moving averages rather than the usual exponential ones — every period is given equal weight, a more neutral read — and every zone bound is adjustable.
What makes it different
Standard MACD+RSI scripts copy daily-era settings onto every timeframe and use RSI as a single yes/no filter. This one re-anchors the periods to real session structure for intraday use, defines a signal as persisting, expanding momentum rather than a momentary cross, lets RSI grade and veto that momentum across zones instead of a binary line, and uses unweighted moving averages so no single bar is given outsized influence.
Inputs: MACD fast/slow/signal,RSI length, Fibonacci-style zone bounds, cooldown.
These are descriptive signals for discretionary use, not buy/sell recommendations. Penunjuk

Machine Learning Adaptive DMI Signals [AlgoAlpha]🟠 OVERVIEW
The Directional Movement Index (DMI) is commonly calculated using a fixed lookback length. But market conditions change over time, and a length that works well during one period may become less effective during another.
This script builds multiple DMI models across a user-defined range of lengths and continuously evaluates their past performance. Each DMI length acts as an independent expert. As new directional flips occur, the script measures how well each expert performed and updates its internal scoring system.
The result is an adaptive DMI that automatically shifts toward lengths that have recently produced better directional signals while reducing the influence of weaker performers.
🟠 CONCEPTS
Expert DMI — A DMI calculation running at a specific lookback length within the tested range.
Directional Flip — A change in trend state when +DI crosses above -DI or when -DI crosses above +DI.
Reward Score — A performance score assigned to each completed flip based on return, move quality, pullback behavior, or win rate.
Maximum Favorable Excursion (MFE) — The largest move in the trade's favor before the next directional flip.
Maximum Adverse Excursion (MAE) — The largest move against the trade before the next directional flip.
Recency Decay — A weighting system that gradually reduces the influence of older observations so recent market behavior has greater impact.
Softmax Weighting — A probability-style weighting process that gives greater influence to higher-scoring DMI lengths when estimating the adaptive length.
🟠 FEATURES
Adaptive +DI and -DI Lines — Displays directional movement using a dynamically selected DMI length that adjusts over time.
Directional Clouds — Color-filled regions between the DI lines help visualize which side currently has directional control.
Bullish and Bearish Flip Signals — ▲ and ▼ markers appear when the Adaptive +DI and -DI lines cross.
ADX Strength Display — Strength squares at the bottom of the pane become more visible as trend strength increases and fade as strength decreases.
Information Table — Displays the active adaptive length, selected scoring mode, memory count, and current bullish or bearish trend state in a customizable table.
🟠 HOW TO USE
Watch for bullish flips when Adaptive +DI crosses above Adaptive -DI to identify potential shifts toward upward directional control.
Watch for bearish flips when Adaptive -DI crosses above Adaptive +DI to identify potential shifts toward downward directional control.
Use the ADX strength squares to gauge whether directional movement is strengthening or weakening.
Increase the tested length range when evaluating a wider variety of market conditions.
Increase Memory and Forget Old Trades values for more stable adaptation and slower length changes.
Decrease Memory or lower the decay factor when faster adaptation to recent behavior is preferred.
Experiment with the available scoring methods to determine whether return, trend quality, or consistency is more important for your analysis.
🟠 CONCLUSION
Machine Learning Adaptive DMI combines traditional DMI calculations with a performance-driven adaptive length selection process. Instead of relying on a fixed lookback period, it continuously evaluates how different DMI lengths have behaved and adjusts accordingly. This provides a dynamic view of directional strength, trend bias, and signal quality that reflects recent market behavior. Penunjuk

UT Bot + STC Conjunction Strategy Tester v4.8For GBPUSD 1H only
UT Bot + STC Conjunction Engine
Overview
The UT Bot + STC Conjunction Engine is a high-precision, institutional-grade intraday trading framework designed specifically for major currency pairs (optimized for GBPUSD). By marrying fast-reacting momentum tracking with a multi-layered liquidity and volatility filtering stack, this strategy aims to capture highly explosive value turnarounds while aggressively minimizing flat-market drawdowns.Rather than chasing price or trading blind indicator crossovers, the system requires a perfect alignment of momentum, structural value zones, volume intensity, candle geometry, and trend velocity before deploying capital.
Key Features & Architectural Core
Dual-Indicator Conjunction Core: Combines a hyper-tuned UT Bot Alerts trailing-stop engine with the Schaff Trend Cycle (STC). The system isolates absolute cyclical extremes, restricting Long entries to oversold floors and Short entries to overbought ceilings.
Dynamic R:R & Parameter Regime Scaling: The script automatically analyzes historical volatility by calculating a ratio between a fast and a slow Baseline ATR. Based on whether the market is in a High Volatility Breakout, Normal, or Low Volatility Compression regime, the system dynamically scales its Risk-to-Reward targets and technical swing lookbacks.
Volatility-Scaled Entry Offsets: To combat execution friction and protect against chasing fakeouts, entries utilize a dynamic pipette offset that scales directly with real-time market volatility.
The Institutional Guard Stack:
Candle Range Filters: Blocks executions on anomalous candles—filtering out low-liquidity drift (too small) and news-driven exhaustion spikes (too large) relative to a 50-period ATR.
Volume Intensity Filter: Uses a fast/slow volume oscillator breakdown to ensure institutional volume is expanding in favor of the momentum trigger.
Rejection Wick Filter: Analyzes counter-wick percentages to mathematically block entries pushing directly into overhead structural resistance or underlying support.
Trend Velocity Blocker: Measures the instantaneous mathematical slope of a baseline EMA window, instantly freezing execution if the micro-trend is moving too aggressively against the signal.
Static Weekly Circuit Breaker: An built-in risk management safeguard that monitors peak weekly equity. If the account experiences a pre-set maximum weekly drawdown percentage, the system trips its circuit breaker, flattens all risk, and blocks new entries until the start of the next trading week.
How To Use & Optimization GuideSession Control: The default settings are optimized for an intraday window (07:30 - 19:00 UTC). This captures the peak liquidity segments of both the London Open and New York morning drives while stepping aside during low-volume roll-overs.Risk Specification: Input your exact preferred risk percentage per trade (e.g., $1.0\%$). The strategy automatically calculates your structural stop-loss position based on dynamic swing highs/lows and adjusts your exact contract/lot sizing to keep cash risk perfectly constant.Trade Management: The system features a built-in Breakeven Trigger. Once a position hits a profit milestone equivalent to twice your initial structural risk, the stop-loss automatically moves to your exact execution entry price to lock in a completely risk-free ride.
Disclaimer: Past performance does not guarantee future results. This script is intended strictly for educational and backtesting purposes. Always conduct comprehensive forward-testing on a demo environment before committing live capital to any quantitative strategy. Strategi

TJR v4 StrategyHere's a short publish description:
TJR PRO — Sweep → BOS→ FVG
An ICT-style strategy built on a single model: price raids liquidity, shifts market structure, then returns to the fair value gap for entry.
The model:
Sweep — a liquidity pool gets raided (PDH/PDL, PWH/PWL, Asia/London/NY session highs & lows, EQH/EQL)
MSS — market structure shifts in the opposite direction (displacement break)
FVG — price retraces into the resulting fair value gap (entry at the edge or 50% / consequent encroachment)
Filters & confluence: ADX chop filter, two-sided raid cooldown, manual news blackout, HTF bias (EMA), SMT divergence, midnight-open alignment, killzone timing — combined into an adjustable confluence score.
Risk: 1% risk-per-trade sizing (or fixed contracts), automatic stop beyond the sweep, target cascade to the nearest unswept pool with a fallback R:R.
Adaptive profiles for scalping (1–5m) and intraday (15m–1H). Includes a live info panel and on-chart trade boxes.
Educational tool — not financial advice. Backtest results do not guarantee future performance.
Strategi

Strong Reversal Signals | ProjectSyndicateStrong Reversal Signals automatically identifies high-probability, non-repainting reversal setups formed after liquidity grabs, then ranks every signal 0–10 with a star strength score so you can instantly see the strongest trades. It calculates adaptive take-profit and stop-loss zones based on Average Daily Range (ADR), after each sweep, and presents a complete statistical breakdown — including win rate by strength tier — on a non-intrusive dashboard to provide a quantifiable, rankable edge.
⭐ Star Strength Ranking (0–10) — every signal is scored across five independently-tested factors (trend context, rejection-wick depth, volatility regime, mean proximity, and sweep depth) and labeled with 1–4 stars. The ranking was validated symbol-out across multiple GBP datasets, so the stars genuinely separate win rate rather than just decorating the chart.
🧠 NRP Liquidity-Grab Reversal Engine — uses a non-repainting pivot/HTF/session engine to detect liquidity sweeps, ensuring signals are stable and never repaint.
🎯 ADR-Adaptive TP/SL Zones — automatically calculates and plots uniform-width TP1, TP2, and SL zones as a percentage of the 10-day ADR, so the strategy dynamically adapts to any asset's volatility. Every historic signal keeps its full zone set on the chart.
🎨 Clean Green/Maroon Theme — BUY Reversal labels are green and SELL Reversal labels are maroon, each carrying its star rank, with fully opaque labels anchored clear of the candles for instant, unobstructed visual confirmation.
📊 Win-Rate-by-Strength Dashboard — a complete statistical overview: real-time ADR10, total trades, wins/losses, total R, expectancy, TP2 hits, the last 10 outcomes, and a dedicated Win Rate By Strength table showing the live win rate and sample size for each star tier (★ through ★★★★).
✅ Strength-Gated Display & Trading — a single "Minimum Stars To Plot" input lets you hide weaker setups and focus only on the strongest, while the dashboard keeps tracking every tier in the background.
🔔 Star-Ranked Alerts — get a single, detailed alert per signal including direction, star rank and strength tier (ELITE/STRONG/MODERATE/WEAK), symbol, timeframe, entry, SL, TP1, and TP2 — formatted for automated trading. A dedicated "Alert Minimum Stars" setting lets you fire alerts on strong setups only.
🔧 Fully Customizable — control everything from liquidity source , pivot length, and the five strength weights to TP/SL percentages, zone width and height, label and dashboard sizes, colors, and the star thresholds for plotting and alerts.
🎯 Why this algo is unique: Standard reversal and ZigZag indicators repaint and offer subjective signals with no statistical backing — and crucially, they treat every signal as equal. This algorithm provides an objective, non-repainting signal engine and ranks each setup by measured strength, with the ranking validated out-of-sample so the strongest signals demonstrably win more often. It builds a complete, quantifiable framework around each reversal with adaptive ADR risk management and a dashboard that proves performance per strength tier on the chart you are trading.
🚀 Apply to Gold (XAUUSD), Forex, Crypto, and Indices on any M5/M10/M15/M30/H1. The ADR-based zones and strength engine adapt from M5 scalping to H4 swing trading.
🎯 How to use this? Watch the Win-Rate-by-Strength table to see which tiers perform best on your asset/timeframe, then prioritize ★★★★ setups (or set "Minimum Stars To Plot" to 4). Adjust the TP/SL percentages to your risk tolerance, and favor signals that align with the higher-timeframe trend.
⚠️ IMPORTANT NOTICE: This indicator identifies statistically-backed, strength-ranked reversal signals. The published win rates are historical, measured on specific GBP M10 data and a fixed target geometry — past performance does not guarantee future results, and figures will vary by symbol, timeframe, and settings. The system also wins small per trade relative to its stop (high win rate, modest reward-to-risk), so position sizing matters. It should NOT be used as a standalone entry signal. Always combine it with your own strategy, price action analysis, and risk management. Penunjuk

MACD Divergence Suite [invincible3]MACD Divergence Suite
Overview
MACD Divergence Suite is an advanced MACD-based momentum and trend indicator designed to provide a clearer view of market direction, momentum strength, divergence, and multi-timeframe confirmation.
This indicator expands the traditional MACD by adding configurable moving average types, normalized MACD values, gradient cloud visualization, SMA-based candle coloring, divergence labels, signal arrows, and a compact multi-timeframe dashboard.
Configurable MACD Calculation
The indicator allows full customization of the MACD calculation. Users can choose the price source and select different moving average types for the fast line, slow line, and signal line.
Supported moving average types include:
• EMA
• SMA
• DEMA
• TEMA
• WMA
• VWMA
• HMA
• RMA
This makes the indicator flexible for different trading styles, assets, and timeframes.
Normalized MACD
The MACD values are normalized to a fixed scale, making momentum easier to compare across different markets and timeframes. This helps reduce the visual inconsistency that can happen when using raw MACD values on assets with very different price ranges.
Gradient MACD Cloud
A layered gradient cloud is plotted between the MACD line and the signal line. The cloud changes color based on bullish or bearish momentum and becomes visually stronger when the MACD spread increases.
This helps traders quickly identify momentum expansion, compression, and possible trend shifts.
Trend-Colored MACD Line
The main MACD line uses trend-sensitive coloring based on the selected bullish and bearish colors. Strong bullish movement appears with stronger bullish color, while strong bearish movement appears with stronger bearish color.
The signal line remains gray to keep the chart clean and easy to read.
Oscillator Bars
The oscillator bars show normalized MACD histogram strength. Bar colors use a gradient effect based on momentum strength, helping traders visually detect increasing or weakening momentum.
SMA Candle Coloring
The indicator includes SMA-based candle coloring on the main chart. Candles are colored bullish when price is above the selected SMA and bearish when price is below the selected SMA.
This provides quick trend confirmation directly on the price chart.
Divergence Detection
The indicator detects bullish and bearish divergence using the normalized MACD oscillator. Divergence lines and labels can appear on both the MACD pane and the price chart.
Bullish divergence highlights possible upside reversal areas, while bearish divergence highlights possible downside reversal areas.
Signal Arrows
MACD crossover signals are shown with arrows. The signals can be filtered using normalized MACD levels, helping reduce weak signals in neutral zones.
Arrow distance can also be adjusted so chart signals appear cleaner and do not overlap candles.
Multi-Timeframe Dashboard
A compact multi-timeframe dashboard summarizes market conditions across multiple timeframes.
The dashboard includes:
• Normalized MACD value
• MACD signal direction
• Histogram state
• Recent divergence status
• SMA-based trend condition
The trend row shows whether price is above or below the selected SMA, giving a simple Bull/Bear trend filter across timeframes.
Key Features
• Configurable MACD moving average types
• Adjustable fast, slow, and signal lengths
• Selectable price source
• Normalized MACD scale
• Gradient MACD cloud
• Trend-colored MACD line
• Gray signal line for cleaner visibility
• Strength-based oscillator bars
• SMA-based candle coloring
• Bullish and bearish divergence detection
• Divergence labels on MACD pane and price chart
• Multi-timeframe dashboard
• Optional normalized MACD signal filtering
• Adjustable signal arrow distance
• Custom bullish and bearish color presets
How to Use
Use the MACD line, signal line, and cloud to read momentum direction. A bullish cloud suggests positive momentum, while a bearish cloud suggests negative momentum.
Use the oscillator bars to confirm whether momentum is increasing or weakening.
Use divergence labels to identify potential reversal areas.
Use the SMA candle coloring and dashboard trend row as a trend filter. Bullish signals are generally stronger when price is above the SMA, while bearish signals are generally stronger when price is below the SMA.
Best Used For
This indicator is useful for:
• Trend-following analysis
• Momentum confirmation
• Multi-timeframe market structure
• Divergence-based reversal spotting
• Signal filtering
• Visual MACD analysis
Disclaimer
This indicator is intended for technical analysis and educational use only. It should not be used as financial advice. Always combine signals with proper risk management and additional market analysis.
Penunjuk

Support and Resistance Retest Breakout Signals [AlgoAlpha]🟠 OVERVIEW
This script identifies support and resistance zones using pairs of swing highs and swing lows that occur within a volatility-adjusted price tolerance. Instead of drawing levels from a single pivot, it waits for two matching swings to confirm a zone, helping filter out isolated highs and lows that may have little significance.
Each zone contains a buy/sell volume balance estimate calculated from lower timeframe data. This provides additional context about the activity that formed the zone and helps visualize whether buying or selling pressure was more dominant during its creation.
The script also tracks how price interacts with existing zones after they form. When price fully breaks through a zone and later retests it, bullish or bearish retest signals are generated based on the direction of the breakout.
🟠 CONCEPTS
Swing Matching — Two swing highs or two swing lows must occur within a volatility-adjusted tolerance before a resistance or support zone is created.
Volatility-Adjusted Tolerance — The script uses the standard deviation of price over a lookback period to determine how close swing points must be to qualify as the same zone.
Support and Resistance Zones — Zones are built from the full price structure around matched swing points rather than from a single horizontal price level.
Volume Balance — Lower timeframe buying and selling volume is aggregated between the two swings that formed the zone to estimate directional participation.
Breakout Retest Logic — Price must first move completely beyond a zone, then close through it, and finally revisit the zone before a retest signal is confirmed.
🟠 FEATURES
Support and Resistance Zones — Highlights confirmed support and resistance areas formed from recurring swing lows and swing highs.
Volume Balance Display — Shows buy and sell volume balance bars inside each zone for visual participation analysis.
Retest Signals — Displays signals when price breaks above a zone and successfully retests it.
🟠 HOW TO USE
Watch for newly formed support and resistance zones to identify areas where price has repeatedly reacted.
Compare the buy/sell balance bars inside each zone to understand the volume profile that formed the level.
Look for bullish retest signals after price breaks above a resistance zone and returns to test it from above.
Look for bearish retest signals after price breaks below a support zone and returns to test it from below.
Use larger Time Horizon values to focus on major market structure and smaller values to detect more frequent zones.
Enable overlap prevention when you want fewer but more distinct zones on the chart.
Use alerts to monitor new zones and confirmed retest events without continuously watching the chart.
🟠 CONCLUSION
Support and Resistance Retest Breakout Signals combines volatility-adjusted zone detection, lower timeframe volume balance analysis, and breakout retest confirmation into a single workflow. It identifies areas where price has repeatedly reacted, measures the participation behind those areas, and tracks whether breakouts successfully hold during retests. This gives traders a structured view of support, resistance, and post-breakout behavior. Penunjuk
