Indicador

SNIPERS CANDLES# Snipers Candles
Snipers Candles is a PVSRA-style candle indicator designed to help traders quickly identify notable volume activity directly on their charts.
The indicator changes candle colours based on the relationship between price movement and volume, making it easier to spot potential accumulation, distribution, momentum, and areas where market participation is increasing.
## Features
• PVSRA-style candle colouring
• Highlights increased volume activity
• Works on all markets and timeframes
• Clean and lightweight design
• Suitable for Forex, Indices, Commodities and Crypto
• Easy to combine with support/resistance, session analysis and market structure
## How I Use It
I use Snipers Candles as part of my overall trading framework alongside session highs and lows, liquidity levels, market structure, and price action confirmation.
The indicator is not intended to generate buy or sell signals on its own. Instead, it helps provide additional context by highlighting areas where volume may be influencing price movement.
## Disclaimer
This indicator is provided free of charge for educational purposes. It should not be considered financial advice. Always perform your own analysis and manage risk appropriately when trading financial markets.
Created by Market sniper HQ
Trade Like A Sniper Not Like The Crowd Indicador

FVG Profiles [TradingIQ]Hello Traders!
🔹 FVG Profiles
FVG Profiles is a fair value gap analysis tool designed to go beyond simply drawing FVG boxes on the chart.
Instead of treating every fair value gap the same, this indicator evaluates each FVG using:
gap size
volume behind the gap
time-of-day context
remaining unfilled volume
active FVG clustering
bullish vs bearish FVG dominance
master histogram structure
local maxima gap zones
It focuses on answering a deeper question:
Where are the most important active imbalance zones on the chart?
And more importantly:
Which gaps still have meaningful volume left behind them?
🔹 What the indicator shows
🔸 Bullish & Bearish Fair Value Gaps
The indicator detects both bullish and bearish fair value gaps directly on the chart.
A bullish FVG is detected when price leaves an upside imbalance.
A bearish FVG is detected when price leaves a downside imbalance.
These gaps are then tracked as active zones until they are mitigated, expired, or fully consumed by later price action.
This allows you to see:
where bullish imbalances formed
where bearish imbalances formed
which FVGs are still active
which FVGs have been partially filled
which FVGs have been fully mitigated
🔸 Time-of-Day Filtering
One of the most important parts of this indicator is that it does not only ask:
“Did a fair value gap form?”
It also asks:
“Was this fair value gap meaningful compared to what normally happens at this time of day?”
The script tracks rolling time-of-day statistics for both:
volume
gap height
This helps compare the current FVG against historical activity from the same time of day.
The goal is to avoid treating normal market noise the same as statistically meaningful imbalance.
🔸 Gap Strictness & Volume Strictness
The indicator includes strictness filters for both gap size and volume.
These filters use z-score style thresholds to determine whether a new FVG is significant enough to display.
Available strictness levels include:
None
Low
Medium
High
Extreme
Higher strictness means fewer gaps will qualify.
Lower strictness means more gaps will be shown.
This allows you to choose whether you want a broader view of market imbalance or only the most statistically significant FVGs.
🔸 Remaining FVG Volume
Each detected FVG begins with an initial volume value.
As future candles trade back into the FVG zone, the script estimates how much of that gap volume has been consumed.
This allows each FVG to behave more like a living zone instead of a static box.
The indicator tracks:
initial FVG volume
remaining FVG volume
partial mitigation
full mitigation
bullish remaining volume
bearish remaining volume
As price overlaps the FVG, the remaining volume is reduced proportionally.
This helps show whether a gap is still meaningful or whether it has already been mostly consumed.
🔸 FVG Box Visualization
Active fair value gaps are displayed directly on the chart.
The FVG boxes update as the gap is mitigated.
When volume remains inside the zone, the box continues to show the active imbalance area.
When the FVG is fully mitigated or expires, it is removed from the chart.
Optional volume text can also be displayed inside the FVG box.
This helps you quickly see:
how much volume remains in the gap
which gaps are still active
which zones are being consumed
where price is interacting with imbalance
🔸 Master FVG Histogram
The Master Histogram is the main profile-style visualization.
Instead of only looking at individual FVGs, the indicator aggregates all active FVG zones into a single histogram.
This histogram shows where active bullish and bearish FVG volume is clustered across price.
It helps answer:
Where is active imbalance volume concentrated right now?
The histogram is drawn to the right of price and can be customized with:
number of bins
histogram offset
maximum width
KDE smoothing bandwidth
transparency
bullish colors
bearish colors
🔸 Bullish vs Bearish FVG Dominance
The Master Histogram separates bullish and bearish FVG volume.
Each price bin is colored based on whether bullish or bearish FVG volume is dominant at that level.
This allows you to quickly identify:
bullish imbalance clusters
bearish imbalance clusters
zones where one side dominates
areas where active FVG volume is concentrated
Instead of asking only:
“Where is the nearest fair value gap?”
you can ask:
“Where are active FVGs clustering across the chart?”
🔸 KDE Smoothing
The histogram includes optional smoothing using an Epanechnikov Kernel Density Estimation model.
This helps reduce noisy, blocky histogram behavior and creates a smoother profile of active FVG concentration.
Higher bandwidth creates a smoother histogram.
Lower bandwidth keeps the histogram closer to the raw FVG volume distribution.
This is useful when you want the histogram to behave more like a profile instead of a fragmented set of isolated bins.
🔸 Gap Zones / Local Maxima
The indicator can also detect local maxima inside the Master Histogram.
These are price areas where active FVG volume is locally concentrated compared to nearby bins.
When enabled, the indicator projects these levels left across the chart as Gap Zone lines.
This helps highlight:
major active imbalance clusters
high-concentration FVG zones
potential reaction areas
levels where multiple active gaps may overlap
The Gap Zone Percentile setting controls how selective these lines are.
A higher percentile shows fewer, more significant zones.
A lower percentile shows more potential gap zones.
🔹 How to read it
Each FVG box represents an active imbalance.
The Master Histogram shows where active FVG volume is concentrated across all currently tracked gaps.
The Gap Zone lines highlight local peaks in the active FVG volume profile.
Together, these views help shift your thinking from:
“There is a fair value gap here.”
to:
“This is where active imbalance volume is still concentrated.”
🔹 Example interpretations
large bullish FVG + high remaining volume → active upside imbalance still present
bearish FVG cluster above price → potential overhead imbalance zone
histogram peak near current price → price is trading into concentrated active gap volume
gap zone line aligns with structure → possible high-interest reaction area
FVG box fading or disappearing → gap has been consumed, mitigated, or expired
many active gaps clustered together → imbalance zone may be more important than a single isolated FVG
🔹 Why this indicator is useful
FVG Profiles gives you a structured way to analyze fair value gaps as dynamic volume zones.
It helps you see:
which FVGs are still active
which gaps have meaningful volume behind them
where FVG volume is clustering
whether bullish or bearish imbalance dominates a zone
how price is consuming active gaps over time
where local maxima gap zones appear
Instead of only drawing static FVG boxes, this tool attempts to quantify and profile the active imbalance still remaining in the market.
🔹 Best use cases
tracking active fair value gaps
finding clustered imbalance zones
filtering out insignificant gaps
studying FVG mitigation
identifying potential reaction levels
combining FVG analysis with market structure
enhancing liquidity, imbalance, or price-action models
🔹 Inputs you can customize
Master Profile Bins
Histogram Right Offset
Histogram Max Width
KDE Smoothing Bandwidth
Max FVGs
Max FVG Age
Gap Strictness
Volume Strictness
Time-of-Day Memory Length
Show FVG Boxes
Show Master Histogram
Show Gap Zones
Gap Zone Percentile
Show FVG Volume Text
Master Alpha
bullish and bearish histogram colors
gap zone color
🔹 Important note
This script uses volume, gap size, and time-of-day statistics to evaluate fair value gaps.
This means:
FVG significance depends on the selected strictness settings
time-of-day averages depend on the available chart history
volume behavior can vary between symbols and sessions
the Master Histogram only represents currently active tracked FVGs
gap zones are analytical reference levels, not predictive signals
This indicator is not a trading system by itself.
It is a framework for analyzing where active fair value gap volume remains and how those imbalances cluster across price.
Closing Notes
FVG Profiles is built to turn fair value gaps from static boxes into a more complete imbalance profile.
It helps you see not only where gaps formed, but where active FVG volume still remains.
As always, thank you TradingView! Indicador

DTC AIO [US] DTC AIO is an all-in-one dashboard for US equities that consolidates earnings, relative strength, volatility, and technical structure into a single overlay — built to speed up the "story of the stock" scan without stacking a dozen separate indicators on the chart.
Earnings Table
Displays quarterly or annual EPS/PAT and Sales with YoY% and QoQ% change, in a MarketSmith-style 5-column layout. Includes optional gross margin and ROE rows, an "avoid N/A" mode, and IBD-style # flagging for YoY comparisons off a negative prior-year base.
Relative Strength
IBD-style RS Line plotted against a configurable benchmark (defaults to SPY), with an RS Rating label (percentile rank vs. benchmark over 1 year)
"Panic RS" markers flag days where the stock is holding above its EMA while the benchmark/panic index is below its own EMA — a quick outperformance-under-stress signal
Moving Averages
Four fully configurable MAs (SMA/EMA/WMA), independent length/color/width per line.
Volatility & Volume
Average Daily Range % (ADR)
Relative volume vs. its historical average
"Burst score" — counts how many days over a configurable lookback (3M/6M/1Y/3Y) closed up 5%, 10%, or 17%+, a proxy for volatility regime / momentum bursts
Patterns & Price Action
Inside bar highlighting
Pocket pivot detection (volume-confirmed up days)
Lowest-volume-day marker over a configurable lookback
Anchored VWAP from the all-time high
High/Low pivot point labels with optional % change
Dashboard
A compact stats panel covering market cap, float, float %, average dollar volume, 52-week high/low distance, up/down volume ratio, and more — positioned in any corner.
Peer Comparison
Auto-detects the stock's industry (or sector, as fallback) from a built-in US industry map and displays a sortable peer table (1M%, 3M%, RS, RVol) with the current symbol pinned at top — no manual watchlist required.
Other
Weekly tight closes, a watermark with ticker/timeframe/day-change%, and full control over table position, size, and corner placement throughout.
All tables and colors auto-adapt to your chart's light/dark theme.
For educational and informational purposes only. Not financial advice. Indicador

DTC FX Plus A killzone-focused dashboard for forex trading — tracks the three major killzones (New York/London/Tokyo, fully renameable and retimeable), highlights abnormal volume during those windows, and keeps the key reference levels traders actually use in view at all times.
Sessions
Three independently configurable killzone windows (name, time range, color) with live-updating range boxes drawn only while each is active
A transparent session status table showing ACTIVE/OFFLINE for each, based on their real global trading hours (not just your custom local windows)
Volume
Bull/bear volume spike detection, scoped to whichever sessions you choose, with two severity tiers (base and extreme) — colors the candles directly so spikes are visible without a separate pane
Key levels
PDH/PDL and PWH/PWL (previous day/week high-low), extending left across the whole chart as permanent reference lines
Daily open marker, live daily candle overlay (a synthetic daily candle drawn on the intraday chart with dotted OHLC lines), and daily divider labels
Style
3 configurable moving averages (SMA/EMA/VWMA, adjustable length/color/width)
Auto light/dark theme detection, a clean watermark, all rendering transparently so it doesn't clutter the price chart Indicador

Event Probability Engine [Quantum Algo]Event Probability Engine
====================================================
🔶 OVERVIEW
Event Probability Engine is a statistical probability indicator that answers one question at the close of every bar: based on the measurable conditions active right now, what is the historical probability that price closes higher one, three, and five days from today? Instead of subjective pattern reading, the script builds and maintains a live rolling database of forward returns conditioned on eighteen observable market events — day-of-week seasonality, oversold and overbought readings, volume spikes, streaks, range position, volatility regime, pivot touches, and an optional lunar control — then pools the currently active events into a single composite probability, displayed as a TODAY headline, a full per-event statistics table, and a shaded forecast cone projected on the chart.
It is designed for the daily timeframe. On other timeframes, the one, three, and five day horizons become one, three, and five bars.
🔶 WHAT IS AN EVENT STUDY?
An event study measures what a market historically did after a defined, observable condition occurred — for example, what happened over the next five days every time the Relative Strength Index closed oversold, or every Monday, or every time volume spiked two standard deviations above normal. This indicator runs eighteen such studies continuously, in real time, on the chart's own data, and keeps every study honest with the statistical safeguards described below.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. A live event database in Pine. Each of the eighteen events maintains its own rolling, capped sample of forward returns at three horizons, tagged with the market regime at the moment the event fired — a self-updating event-study framework, not a fixed backtest.
2. Shrinkage estimation. Every win rate is pulled toward fifty percent by a configurable number of pseudo-samples. An event with fifteen samples cannot display an extreme probability, because fifteen samples cannot justify one.
3. Overlap correction. State-based events (for example, an oversold reading persisting for a week) generate autocorrelated, overlapping samples that inflate apparent sample size. The effective sample size is deflated by the horizon length before any confidence calculation.
4. Wilson score bounds. Next to each five-day win rate, the table shows the Wilson confidence lower bound computed on the corrected sample size — the number an event must clear before its edge deserves trust, not its raw point estimate.
5. Regime conditioning with fallback. When enough samples exist in the current regime (bull or bear, defined by the two-hundred period exponential moving average), statistics are computed on regime-matched samples only, marked ® in the table. A bear-market Thursday is not assumed to behave like a bull-market Thursday.
6. Quality-weighted log-odds pooling. Active events are combined by weighted log-odds — a method related to Bayesian evidence combination — rather than naive win-rate averaging, so one strong, well-sampled edge is not diluted by three weak ones.
7. A built-in falsification control. Lunar phase events are included deliberately so the engine can audit a popular claim empirically: if full and new moons carry no edge, their quality scores sit near zero and they contribute nothing to the composite. A probability framework should be able to demonstrate which inputs fail, not only which appear to work.
🔶 HOW IT WORKS
Event detection: On every bar close the script evaluates all eighteen conditions — Monday through Friday, adaptive or fixed oversold and overbought thresholds, volume z-score spikes, up and down streaks, range-low and range-high position, volatility expansion and compression by percentile rank, confirmed pivot support and resistance touches within an Average True Range distance, and the optional lunar events.
Database recording: Whenever an event was active one, three, or five bars ago, the realized forward return is stored in that event's arrays, first-in-first-out at a configurable cap, together with the regime tag from the moment the event fired.
Per-event statistics: The table reports, for every event, the shrinkage-adjusted win rate at each horizon, the Wilson lower bound, sample count, average forward return, profit factor, a zero-to-one-hundred quality score blending edge magnitude, sample sufficiency, and recent consistency, and the resulting directional bias.
Composite probability: Active events passing the minimum-sample filter are pooled by quality-weighted log-odds into the TODAY headline (next-day probability of an up close with a visual meter), the one, three, and five day composite row with expected returns and a strength grade, and a projected forecast path with a shaded plus-and-minus one standard deviation cone drawn from the current close.
Chart layer: Optional regime background tint, the regime line, live pivot support and resistance rails with prices, and historical event markers on the candles so past occurrences of every event can be reviewed directly on the chart.
🔶 HOW TO USE IT
1. Apply it to a daily chart of any liquid symbol — cryptocurrency, stocks, indices, forex, gold, futures. Let it load its history; sample counts grow with available bars.
2. Read the TODAY headline first: the next-day probability, the meter, and the expected one-day return.
3. Scan the table for the highlighted rows — those events are active right now. Judge each by its Wilson lower bound and quality score, not the raw win rate.
4. Use the composite row and forecast cone as context: STRONG requires both a meaningful probability distance from fifty percent and high average quality.
5. Treat readings near fifty percent as exactly what they are: weak evidence. This engine is intentionally built to display small honest numbers rather than large misleading ones.
6. Combine with your own analysis — the engine measures conditional history; it does not know tomorrow's news.
🔶 SETTINGS
- Database: sample cap per event, minimum samples for composite inclusion, minimum regime-matched samples, shrinkage strength.
- Events: oscillator length and thresholds (fixed or adaptive percentile), volume z-score, streak length, range lookback, pivot lookback and touch distance, lunar events on or off.
- Statistics: Wilson z-score (default 1.645, a ninety percent one-sided bound).
- Display: dashboard position and five text sizes, forecast cone, regime tint, regime line, pivot rails, candle markers.
🔶 ALERTS
- Composite Bias Change — fires once per bar close whenever the five-day composite bias flips state, with the current one-day and five-day probabilities in the message.
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? Statistics are recorded and evaluated on closed bars, and pivot events use confirmed pivots with their standard confirmation lag. The dashboard and forecast update on the live bar by design, as a dashboard should.
Why do most probabilities sit near fifty percent? Because genuine conditional edges in daily data are small, and the shrinkage and overlap corrections are built to say so. Extreme displayed probabilities on thin samples are the signature of a dishonest tool.
What does the ® mark mean? That event currently has enough regime-matched samples, so its statistics are computed only from the current bull or bear regime rather than the full history.
Why are moon phases in a statistics tool? As a falsification control. The engine should be able to show which inputs carry no edge — and the user can watch it do exactly that.
Can I use it intraday? Yes, but the horizons become bars instead of days, and day-of-week events lose their meaning. The design intent is the daily timeframe.
🔶 CREDITS
This script stands on standard, publicly documented statistical methods, gratefully credited: the Wilson score interval by Edwin B. Wilson (1927), Laplace-style shrinkage estimation, and the event-study methodology long established in quantitative finance. Their combination into a live, regime-conditional, overlap-corrected event database with quality-weighted log-odds composite pooling, implemented entirely in Pine Script with capped arrays and user-defined types, is original work — no third-party or open-source script code was reused.
🔶 LIMITATIONS
Probabilities derived from historical conditioning are estimates, not guarantees, and conditional edges in daily data are typically small. Sample databases need history to mature; young charts produce thin, heavily shrunk statistics by design. Day-of-week events assume a five-day session calendar. Regime conditioning depends on the two-hundred period regime definition. This is a research and confluence tool, not a standalone trading system.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past statistical behavior does not assure future results. Trading involves substantial risk. Always do your own research and manage risk independently. Indicador

JSS - SMC / ICT Time-Fibs & LiquidityAn all-in-one institutional toolkit designed to trade the New York Session using Time-Based Standard Deviations, Smart Money Concepts (SMC), and algorithmic liquidity targets.
Instead of drawing random Fibonacci retracements, this indicator traps the opening volatility of the market and mathematically projects exactly where the algorithms will exhaust.
Core Features :
The Time-Box Fibs : Automatically maps the Overnight Macro Range (22:00–11:00) and the New York Open Micro Range (15:00–16:00).
Institutional Liquidity Lines : Automatically draws your essential daily, weekly, and monthly HTF midpoints (PDH, PDL, PD50, PW50, PM50, and True Daily Open).
Dynamic FVG & IFVG Scanner : Highlights Fair Value Gaps with dashed equilibrium lines. When an FVG is closed through, it transforms into an Inverted FVG. To keep your chart perfectly clean, the engine tracks all gaps in the background but only highlights the exact IFVG closest to live price. Indicador

[ A L P H A X ] RESONANCE - Triple-RSI StackAlphaX RESONANCE — RSI Harmonic Engine: Triple-RSI Stack, Adaptive Exhaustion Zones, RSI Coil Release, Pivot Divergence Reversals & Five-Phase Market Classification
AlphaX RESONANCE is a professional-grade momentum and mean-reversion system built on a fundamentally different RSI architecture from any conventional oscillator overlay. Where standard RSI indicators use a single period and static overbought/oversold levels, RESONANCE runs three RSI instances simultaneously — a fast Pulse RSI, a medium Core RSI, and a slow Anchor RSI — each measuring a different temporal dimension of momentum, and combines them into a unified harmonic stack that classifies the current market phase, scores directional conviction, detects RSI bandwidth compression (the RSI equivalent of a volatility coil), and fires precision entry signals across four distinct setup types. The adaptive exhaustion zones replace fixed 70/30 thresholds with percentile-ranked dynamic levels calibrated to the current instrument's own RSI distribution — so the system's definition of "overbought" evolves with actual market behavior rather than staying fixed at an arbitrary number. The result is a system that reads momentum the way it actually behaves — in layers, in phases, and in cycles — rather than as a single oscillating line. Designed for traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎵 The Harmonic Philosophy — Three RSI Periods, One Unified Picture
The core problem with a single-period RSI is temporal ambiguity. A 14-period RSI reading of 65 could mean the market is in a healthy trend with room to run, or a short-term overbought stretch about to snap back — the same number carries completely different meanings depending on whether the underlying trend is strong or weak. A fast RSI alone is noisy and prone to false signals. A slow RSI alone is too lagged to be actionable for entries.
RESONANCE solves this by running all three simultaneously and treating their relationship as the signal — not any single RSI value in isolation.
The three RSI layers:
Pulse RSI (default: 7 periods) — the fastest layer. Reacts immediately to price movements. Used for timing — detecting the exact bar of a snapback exit from an exhaustion zone, the crossing of the harmonic midline, and the moment a coil releases. The Pulse RSI is the trigger layer
Core RSI (default: 14 periods) — the standard intermediate layer. Used for divergence detection, slope measurement, and bandwidth compression. The Core RSI is the evidence layer — it confirms that the Pulse RSI signal has structural backing from a wider momentum view
Anchor RSI (default: 28 periods) — the slowest, most stable layer. Used for market phase classification. When the Anchor RSI is above 58 and rising, the market is in MARKUP. Below 42 and falling, MARKDOWN. The Anchor RSI is the context layer — it tells you the macro momentum environment within which all other signals must be interpreted
The harmonic stack:
RESONANCE defines a true harmonic alignment when all three RSI layers are stacked on the same side of the midline with aligned slopes — Pulse above 50, Core above 48, Anchor above 46 (with tolerance buffers to avoid false collapses on minor retracements). When all three are stacked and sloping in the same direction, the market has broad-based momentum conviction across fast, medium, and slow timeframes simultaneously. This triple-stack condition is the backbone of the HARMONIC BREAK setup and is the highest-weight component in the Resonance Score.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Five-Phase Market Classification — The Harmonic Dashboard
Using the Anchor RSI as the primary reference and the Core RSI slope as a secondary differentiator, RESONANCE classifies the market into one of five phases on every bar. The current phase is displayed prominently on the dashboard as the HARMONIC row and determines which setup types are most appropriate to trade.
MARKUP:
Anchor RSI at or above 58 with a positive slope — the slow momentum layer confirms a sustained upward bias. The macro momentum environment is bullish. This is the primary background condition for HARMONIC BREAK long setups and SNAPBACK long entries that occur as the Pulse RSI dips to the adaptive oversold zone and recovers.
MARKDOWN:
Anchor RSI at or below 42 with a negative slope — macro momentum is bearish. Primary background for HARMONIC BREAK shorts and SNAPBACK short entries.
DISTRIB (Distribution):
Anchor RSI is above 52 (mildly bullish macro) but Core RSI is below the Anchor and its slope is negative — the intermediate momentum layer is diverging downward against the still-elevated Anchor. This is the distribution phase: the long-term bias has not yet shifted, but the medium-term momentum is beginning to roll over. A warning sign for bulls and an early-watch condition for bear setups.
ACCUM (Accumulation):
Anchor RSI is below 48 but Core RSI is above the Anchor and its slope is positive — intermediate momentum is recovering against a still-depressed Anchor. This is the accumulation phase: the macro bias has not yet turned bullish but buying pressure is building. An early-watch condition for bull setups.
COIL:
The RSI bandwidth (highest Core RSI minus lowest Core RSI over the coil lookback) has compressed below the average bandwidth by the configured multiplier. The market is in a momentum squeeze — all three RSI layers are converging toward neutral and the directional energy is compressing. This phase precedes the COIL RELEASE setup and is displayed with a purple tint to distinguish it from the directional phases.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Adaptive Exhaustion Zones — Dynamic Overbought/Oversold
The standard RSI uses fixed overbought (70) and oversold (30) levels. These thresholds are problematic because every instrument has a different RSI distribution — a strongly trending equity might spend months above 70 and rarely touch 30, while a mean-reverting commodity might hit 70 and snap back immediately. Fixed levels produce the wrong trigger points for most instruments most of the time.
RESONANCE replaces fixed thresholds with adaptive exhaustion zones computed from the Core RSI's own historical percentile distribution:
Dynamic Overbought (dynOb):
The 82nd percentile of Core RSI readings over the adaptive zone lookback period (default: 100 bars). This means the overbought threshold is set at the level that Core RSI has exceeded only 18% of the time historically. When the Pulse RSI crosses above this level and then crosses back below it, the system detects a genuine exhaustion exit — not just a touch of an arbitrary 70 threshold, but an exit from a genuinely extreme reading for this specific instrument at this specific time.
Dynamic Oversold (dynOs):
The 18th percentile of Core RSI readings — the level that Core RSI has been below only 18% of the time. The oversold exit is a Pulse RSI crossover back above this level.
Self-calibrating behavior: During strongly trending markets, the adaptive thresholds shift upward (dynOb moves above 70, dynOs moves above 30) reflecting the fact that RSI stays elevated in trends. During ranging markets, the thresholds move toward 70/30 or tighter. The system always uses the statistically appropriate threshold for the current regime, automatically.
Dashboard display: The current dynamic oversold/overbought pair is displayed live on the dashboard as the ZONES row — e.g., "22 / 78" — updating continuously as new bars accumulate.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ RSI Coil Engine — Momentum Compression Detection
The RSI Coil Engine translates the volatility compression concept — so central to CATALYST, VECTOR, and PRISM — into the RSI domain. Instead of measuring price volatility compression, it measures RSI bandwidth compression: how much the Core RSI is oscillating relative to its recent average oscillation.
Coil detection:
On every bar, the system computes:
`RSI Bandwidth = Highest Core RSI over coilLen − Lowest Core RSI over coilLen`
This is then compared to the average bandwidth over the same period. When current bandwidth falls below `average × coilMult` (default: 0.72), the Core RSI is oscillating in a significantly tighter range than usual — all three RSI layers are converging. The inCoil boolean activates, the phase displays as COIL, and the dashboard COIL BW row shows "COMPRESSED."
Coil release detection:
A coil release is the transition from compressed (inCoil was true on the prior bar) to decompressed (inCoil is false on the current bar), accompanied by a Pulse RSI move of at least the configured minimum (default: 2.5 RSI points) in a single bar. This rapid Pulse RSI expansion is the momentum equivalent of a volatility breakout — the RSI bandwidth spring is releasing directional energy.
What the RSI coil captures: When all three RSI layers converge toward neutral with declining bandwidth, institutional participants are in a standoff — neither buyers nor sellers are winning the momentum battle. The coil release is the moment that standoff resolves, and the direction of the Pulse RSI's first large move after the release is the signal of who won. The COIL RELEASE setup capitalizes on this first-mover momentum advantage.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Four Setup Types — The Resonance Playbook
RESONANCE fires signals through four distinct setup types, each exploiting a different momentum pattern detected by the triple-RSI harmonic system. All four can be enabled simultaneously and the highest-priority qualifying setup is selected for each signal bar.
Setup priority order (when multiple qualify simultaneously):
COIL RELEASE → DIVERGENCE REVERSAL → HARMONIC BREAK → SNAPBACK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup A — SNAPBACK (Adaptive OB/OS Exit)
The mean-reversion setup. Fires when the Pulse RSI exits the adaptive exhaustion zone with Core RSI confirmation.
Long conditions:
Pulse RSI crosses above the dynamic oversold level (dynOs) — exiting the adaptive oversold zone
Core RSI is rising on the current bar (rsiCore > rsiCore ) — intermediate momentum is recovering
Anchor RSI is within 8 points of the midline on the bullish side (anchor > midLine − 8) — the macro context is not severely bearish
A bullish rejection candle is present (close above open, close above prior close)
Why SNAPBACK is the timing-precision setup: The combination of the adaptive oversold exit (not fixed 30) and Core RSI confirmation means the signal only fires when the oversold reading is genuine by historical standards AND the intermediate momentum has already begun recovering. The Anchor RSI tolerance prevents SNAPBACK longs from firing in deeply bearish macro environments where mean-reversion is likely to fail.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup B — HARMONIC BREAK (50-Line Cascade)
The momentum-continuation setup. Fires when the Pulse RSI crosses the harmonic midline (default: 50) with all three RSI layers stacked in the same direction.
Long conditions:
Pulse RSI crosses above the harmonic midline from below
stackBull is true — all three RSIs are above their respective midline thresholds (Pulse > 50, Core > 48, Anchor > 46)
slopeBull is true — all three RSI slopes over 3 bars are positive (Pulse slope > 0, Core slope > 0, Anchor slope ≥ 0)
Why the triple-stack midline cross is significant: A single RSI crossing 50 is noise. When the Pulse RSI crosses 50 simultaneously with Core RSI already above 48 and Anchor RSI above 46 — all three slopes positive — it means the fast, intermediate, and slow momentum layers are all accelerating upward at the same moment. This is genuine broad-based momentum conviction, not a temporary oscillation. The cascade quality reflects institutional commitment across multiple momentum timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup C — DIVERGENCE REVERSAL (Pivot-Based)
The reversal setup using Core RSI pivot divergence. Fires when price makes a new extreme but Core RSI does not confirm it, within the adaptive exhaustion zone context.
Long divergence conditions:
A confirmed price pivot low is below the prior confirmed pivot low — price is making a lower low
The Core RSI at the same pivot low bar is above the Core RSI at the prior pivot low — momentum is making a higher low despite price's lower low
Core RSI at the divergence low is within 8 points of the dynamic oversold level — the divergence is occurring in a genuinely oversold context, not at neutral RSI
A bullish rejection candle confirms on or after the divergence bar
Pulse RSI is rising on the current bar
Current close is above the divergence low — price has recovered off the pivot
Divergence recency window:
Divergence is tracked with a live validity window — the divergence remains active for a configurable number of bars (default: divLen × 2). If no confirming rejection candle appears within this window, the divergence expires. This prevents acting on stale divergence signals that occurred many bars ago.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup D — COIL RELEASE (RSI Bandwidth Explosion)
The momentum breakout setup fired by RSI bandwidth decompression. The highest-priority setup in the selection hierarchy.
Long conditions:
coilRelease is true — the Core RSI was compressed on the prior bar and the bandwidth expanded this bar with a minimum Pulse RSI move
Pulse RSI is above the dynamic oversold level — the release is occurring on the bullish side of the exhaustion zone
slopeBull is true — all three RSI slopes are positive, confirming the release is directionally bullish
A bullish candle is present (close above open)
Why COIL RELEASE is the highest-priority setup: RSI bandwidth compression is the most reliable pre-breakout indicator within the RSI framework. When all three RSI layers have converged to the same neutral zone and then the bandwidth suddenly expands with a directional Pulse RSI move, the momentum suppression has lifted and the underlying institutional order flow has revealed its direction. This is the RSI equivalent of CATALYST's squeeze release — and like the squeeze release, the first bar of the release carries the highest momentum intensity of the entire move.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The Resonance Score — 10-Point Conviction Rating
Every bar, regardless of whether a signal fires, RESONANCE computes a directional conviction score from 0 to 10. This score is displayed live on the dashboard, shown on signal labels when Show Setup Tag is enabled, and used as the minimum gate for all signals — setups below the minimum score threshold (default: 5) are blocked regardless of their setup type conditions.
Score components:
RSI Stack Alignment (up to 2 points):
Full triple-stack (stackBull or stackBear — all three RSIs stacked) scores 2 points. Partial alignment (Pulse and Core both above midline but Anchor lagging) scores 1 point. No alignment scores 0. This is the highest-weight component — genuine triple-stack alignment is rare and carries the most institutional significance.
RSI Slope Agreement (up to 2 points):
All three RSI slopes positive (slopeBull) or all negative (slopeBear) scores 2 points. Pulse and Core slopes aligned (but Anchor flat or lagging) scores 1 point. No slope agreement scores 0. Momentum acceleration across multiple timeframes — not just direction but rate of change — is the key measure of this component.
RSI Hierarchy Alignment (1 point):
For bull: Pulse RSI above Core RSI and Core RSI approximately above Anchor RSI (within 3 points). For bear: Pulse below Core and Core below Anchor within tolerance. This checks that the RSI layers are in the correct relative order — the faster layer leading the slower, which is the natural configuration during genuine trending momentum.
HTF Bias (up to 2 points):
Higher timeframe EMA aligned with the signal direction scores 2 points. When HTF is disabled in settings, 1 neutral point is always awarded. When HTF is enabled and opposes the signal, 0 points.
Volume Expansion (1 point):
Current bar volume meets or exceeds the configured volume threshold.
Non-Chop Market (1 point):
Choppiness Index is below the configured threshold. Also enforced as a hard gate.
EMA Filter (1 point, optional):
Price is on the correct side of the configurable EMA. Off by default.
Grade thresholds:
A (8–10) — elite resonance. Triple-stack, slope agreement, HTF aligned, volume confirmed. The highest-conviction signal the system produces
B (6–7) — strong resonance. Most components confirmed
C (minimum to 5) — acceptable resonance. Passes the gate with partial confirmation
Signal accent colors: Grade A signals render in the brightest yellow-green (bull) or red (bear). Grade B in slightly dimmer versions. Grade C in transparent-tinted versions. The signal triangle's color communicates quality at a glance without reading the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Candle Tinting and Phase Background
RESONANCE includes two optional chart coloring systems that provide continuous visual context even between signals.
Candle Tinting (showBarTint):
When enabled (default: on), candles are tinted yellow-green at 78% transparency during stackBull conditions and red at 78% transparency during stackBear conditions. During neutral periods (no full stack), candles retain their default color. This creates a continuous visual momentum ribbon directly on the price chart — you can see at a glance how long a triple-stack condition has been sustained, when it begins, and when it collapses.
Phase Background (showPhaseBg):
When enabled (default: off), a very subtle full-bar background color reflects the current harmonic phase — purple for COIL, faint yellow-green for MARKUP/ACCUM, faint red for MARKDOWN/DISTRIB. Off by default to preserve chart cleanliness, but valuable when studying phase transitions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 14-row real-time dashboard displays the complete state of the harmonic RSI engine.
PHASE
HARMONIC — current market phase: MARKUP, MARKDOWN, ACCUM, DISTRIB, COIL, or NEUTRAL. Color-coded — purple for COIL, yellow-green for bullish phases, red for bearish phases
SETUP — the current or most recent setup with grade: e.g., "COIL REL ", "SNAPBACK ", "DIV REV ", or "ARM LONG " when approaching a trigger. ARM LONG / ARM SHORT appear when a setup condition is developing but the full signal has not yet fired
RSI STACK
PULSE — the live 7-period RSI value, color-coded yellow-green above the midline and red below
CORE — the live 14-period RSI value with the same color coding
ANCHOR — the live 28-period RSI value — the macro momentum reference
ZONES — the current dynamic oversold / overbought pair (e.g., "22 / 78"), displayed in orange. These are the adaptive exhaustion thresholds that the SNAPBACK setup watches
QUALITY
RESONANCE — the live directional conviction score out of 10. Yellow-green when at or above the minimum threshold, neutral otherwise
HTF BIAS — ▲ BULL, ▼ BEAR, or — FLAT from the higher timeframe EMA structure
CHOP — live Choppiness Index value. Orange when above the stand-aside threshold (the hard gate condition)
COIL BW — the current RSI bandwidth state: "COMPRESSED · xx.x" (purple) when in coil, "OPEN · xx.x" otherwise. When an active trade plan exists, the current TP1 level is appended to this row for quick reference
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
▲ Triangle (below bar) — bull entry signal. Size and color reflect the Resonance Grade — brightest yellow-green for Grade A, dimmer for B, transparent-tinted for C. COIL RELEASE and DIVERGENCE signals render in purple and orange accents respectively to distinguish them visually from SNAPBACK and HARMONIC signals
▼ Triangle (above bar) — bear entry signal with matching grade-based coloring
Setup Tag Label (optional) — when Show Setup Tag is enabled, a small label appears below (bull) or above (bear) the signal showing the setup abbreviation and grade (e.g., "COIL REL A"). Off by default for chart cleanliness
Candle Tinting — yellow-green at 78% transparency during stackBull, red during stackBear. Continuous momentum ribbon effect on the price chart
Phase Background (optional, off by default) — subtle full-bar tint for COIL (purple), MARKUP/ACCUM (faint yellow-green), MARKDOWN/DISTRIB (faint red)
Entry Line (dashed) — the entry close level, extending guideExtend bars forward when Show SL + TP1 + TP2 is enabled
SL Line (red dashed) — ATR-based stop loss level, extending forward
TP1 Line (lime dotted) — first take profit at 1.8× ATR from entry
TP2 Line (bright yellow-green dashed, width 2) — second take profit at 3.2× ATR from entry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX RESONANCE — Step by Step
Step 1 — Read the Phase and Stack
Check the HARMONIC row on the dashboard. MARKUP or MARKDOWN with a confirmed triple-stack (candles tinted yellow-green or red) is the ideal background condition for HARMONIC BREAK and SNAPBACK entries
Check COIL BW — COMPRESSED means RSI bandwidth is in squeeze mode. Prepare for a COIL RELEASE signal on the upcoming bars
Check ZONES — how far is current price/RSI from the adaptive exhaustion levels? When the CORE RSI is approaching or inside the dynamic zone, a SNAPBACK is potentially developing
Check RESONANCE score. If it is already at or above the minimum before a signal fires, the conditions are favorable. Watch for the triggering setup condition to develop
Step 2 — Identify the Setup Developing
SETUP shows ARM LONG or ARM SHORT when a setup condition is partially met but the full signal has not fired. This is your preparation window — note the entry price, calculate SL and TP positions
COIL BW showing COMPRESSED → watch for the next bar's release. If SETUP shows ARM LONG during a coil, a COIL RELEASE long may fire on the next expansion bar
HARMONIC row switching from ACCUM to MARKUP → the Anchor RSI has crossed 58 and is rising. HARMONIC BREAK long conditions may soon be met as the Pulse RSI approaches the midline from below
Step 3 — Enter on the Triangle Signal
A triangle signal with Grade A coloring (brightest yellow-green or red) is the highest-conviction entry. Enter on the close of the signal bar or the next bar's open
Check which setup fired on the dashboard SETUP row. COIL REL is the premium setup. DIV REV is a high-quality reversal. HARMONIC is a premium continuation. SNAPBACK at minimum score warrants reduced size
Enable Show SL + TP1 + TP2 to see the ATR-based guide levels projected forward from the signal bar
Step 4 — Manage with RSI Context
During a long trade, monitor the PULSE RSI value. When it approaches the dynamic overbought zone (dynOb), partial profit at TP1 becomes prudent — momentum may be approaching exhaustion
If the phase transitions from MARKUP to DISTRIB during an open long trade (Anchor RSI still high but Core RSI rolling over), tighten the stop
If the candle tint disappears (triple-stack collapses), the momentum conviction has weakened — move stop to breakeven or take profit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
CHOP is orange on the dashboard — the hard gate is active. Extreme chop blocks all signals. RSI oscillates rapidly in choppy conditions and the triple-stack alignments are transient rather than structural
Phase shows NEUTRAL — none of the five phase conditions have been met. The Anchor RSI is in the middle zone (48–52) without a clear slope. Momentum conviction is absent at the macro level
RESONANCE score is exactly at minimum (5/10) — marginal confluence. In neutral or transitional market conditions, minimum-score signals fail at a significantly higher rate. Require 6+ before committing full size
COIL BW is COMPRESSED but no directional RSI slope is present — a coil without slope agreement means RSI has converged but without directional bias. The COIL RELEASE signal requires slopeBull or slopeBear to fire, but if the slopes are flat during the coil, the release direction is unpredictable — wait for a slope to develop before sizing up
HTF Bias opposes the stack direction — a bull triple-stack against a bearish HTF is a counter-trend momentum entry. These work but carry higher reversal risk. Reduce position size or require a Grade A score
SETUP shows ARM LONG but Anchor RSI is in severely bearish territory (below 35) — approaching a SNAPBACK long trigger against a deeply bearish Anchor is a mean-reversion trade against significant macro momentum. The Anchor RSI tolerance condition blocks the signal below midLine − 8, but values near that boundary are still high-risk
The ideal RESONANCE setup:
Phase MARKUP (bull) or MARKDOWN (bear) sustained for 5+ bars
Full triple-stack with positive slopes on all three RSIs
COIL BW just releasing from COMPRESSED state (COIL RELEASE setup) OR Pulse RSI crossing the midline with stack and slope confirmed (HARMONIC BREAK)
HTF aligned with stack direction
Volume above average on the signal bar
RESONANCE score at 8–10 (Grade A)
Chop Index well below threshold
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🎵 Triple-RSI harmonic stack — Pulse (7), Core (14), and Anchor (28) RSIs operating simultaneously, each measuring a different temporal dimension of momentum
📐 Adaptive exhaustion zones — dynamic overbought and oversold thresholds computed from the Core RSI's own percentile distribution over the configurable lookback, replacing fixed 70/30 levels with statistically calibrated thresholds
⚡ RSI Coil Engine — bandwidth compression detection triggering when Core RSI oscillation falls below average × multiplier, with directional coil release detection on bandwidth expansion
📊 Five-phase market classification — MARKUP, MARKDOWN, ACCUM, DISTRIB, COIL — derived from the Anchor RSI level and slope, providing macro momentum context for every signal
🏷 Four setup types — SNAPBACK (adaptive OB/OS exit), HARMONIC BREAK (triple-stack midline cascade), DIVERGENCE REVERSAL (pivot-based Core RSI divergence), COIL RELEASE (RSI bandwidth explosion)
🧠 10-point Resonance Score — RSI Stack (2pts), Slope Agreement (2pts), Hierarchy Alignment (1pt), HTF Bias (2pts), Volume (1pt), Non-Chop (1pt), EMA Filter (1pt, optional)
🎨 Grade-coded signal colors — Grade A in full brightness, B in standard, C in transparent-tinted. COIL signals in purple, DIV signals in orange accent — visual quality differentiation on every triangle
🌈 Candle tinting — bars colored yellow-green during stackBull and red during stackBear, creating a continuous momentum ribbon on the price chart
🔮 ARM LONG / ARM SHORT awareness — dashboard SETUP row shows developing (partially-triggered) conditions before the full signal fires, providing advance preparation
📡 Pivot-based RSI divergence — structural pivot comparisons with live validity window, more robust than slope-based divergence detection
📊 14-row live dashboard — Phase, Setup with grade, all three RSI values, adaptive zones, Resonance Score, HTF Bias, Chop, and Coil bandwidth updated on every bar
🔔 2 alert conditions — RESONANCE Bullish Setup and RESONANCE Bearish Setup
⚙ Fully configurable — all three RSI periods, zone lookback and percentiles, harmonic midline, coil compression multiplier, coil release minimum, all four setup enables, divergence pivot length, cooldown, Resonance minimum, HTF timeframe and EMAs, volume filter, chop gate, optional EMA filter, SL/TP ATR multiples, guide extension, phase background, candle tinting, setup tags, dashboard size and position, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
RSI Harmonic Stack
Pulse RSI Length — the fastest RSI layer for snapback timing and coil release triggering (default: 7)
Core RSI Length — the intermediate layer for divergence detection and bandwidth measurement (default: 14)
Anchor RSI Length — the slowest layer for phase classification and macro context (default: 28)
Adaptive Zone Lookback — bars used to compute the Core RSI percentile distribution for the dynamic exhaustion zones (default: 100)
Exhaustion Percentile High — percentile level defining the dynamic overbought threshold (default: 82)
Exhaustion Percentile Low — percentile level defining the dynamic oversold threshold (default: 18)
Harmonic Midline — the RSI equilibrium level used as the HARMONIC BREAK trigger and phase divider (default: 50)
RSI Coil Engine
Coil Lookback — bars used to compute RSI bandwidth and its average (default: 20)
Coil Compression Mult — bandwidth must fall below average × this multiplier to activate the compressed state (default: 0.72)
Coil Release Min RSI Move — minimum single-bar Pulse RSI movement required to register a release (default: 2.5 RSI points)
Live Setups
Snapback (adaptive OB/OS exit) — toggle the adaptive exhaustion zone exit setup
Harmonic Break (50-line cascade) — toggle the triple-stack midline crossover setup
Divergence Reversal — toggle the pivot-based Core RSI divergence setup
Coil Release — toggle the RSI bandwidth decompression setup
Divergence Pivot Length — bars each side for RSI and price pivot confirmation (default: 5)
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 6)
Resonance Gate
Min Resonance Score (of 10) — minimum score to fire any signal (default: 5)
Hard HTF Alignment — when on, counter-HTF signals are fully blocked
HTF Trend Bias / HTF Timeframe / HTF Fast / HTF Slow EMA — higher timeframe parameters (defaults: on / 60-minute / 21 / 55)
Volume Confirm / Volume vs Avg / Volume Avg — volume expansion layer parameters (defaults: on / 1.1× / 20 bars)
Block Extreme Chop / Choppiness Length / Chop Block Above — chop gate parameters (defaults: on / 14 / 62.0)
EMA Price Filter / EMA Length — optional price EMA directional filter (default: off / 21)
Entry / Exit Guides
Show SL + TP1 + TP2 — toggle the guide line system (default: off)
ATR Length — ATR calculation lookback (default: 14)
SL (xATR) — stop loss distance from entry in ATR multiples (default: 1.2)
TP1 (xATR) — first take profit distance (default: 1.8)
TP2 (xATR) — second take profit distance (default: 3.2)
Guide Extend (bars) — how many bars forward guide lines project (default: 30)
Display
Show Entry Markers — toggle signal triangle shapes
Subtle Phase Background — toggle the harmonic phase background tinting (default: off)
Phase Background Opacity — background transparency when enabled (default: 96)
Tint Candles by Bias — toggle yellow-green/red candle tinting during triple-stack conditions (default: on)
Show Setup Tag (A/B/C) — toggle setup name and grade label on signal bars (default: off)
Show Dashboard — toggle the full dashboard
Dashboard Text Size — Standard / Small
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Resonance Up — yellow-green for bullish signals, tinting, and stack indicators
Bull Signal — bright yellow-green for Grade A bull signal triangles
Bear / Resonance Down — red for bearish signals and stack indicators
Bear Signal — bright red for Grade A bear signals
Coil / Harmonic Accent — purple for COIL phase, RSI coil markers, and COIL RELEASE signals
Snapback Accent — orange for SNAPBACK signals, divergence accents, and ZONES dashboard row
Stop Line / TP1 Line / TP2 Line — individual guide line colors
Neutral — gray for neutral states and inactive dashboard rows
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (2 total)
RESONANCE Bullish Setup — all long conditions confirmed. Pulse RSI trigger, Resonance Score above minimum, chop gate clear, HTF alignment met
RESONANCE Bearish Setup — all short conditions confirmed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M5–H1 :
Triple RSI at 7/14/28 — the 2× doubling ratio creates clean harmonic separation between the three layers. Each layer is exactly twice as slow as the prior one, producing independent but harmonically related readings
Adaptive zone lookback at 100 bars — approximately 8 hours on M5, sufficient to calibrate the percentile distribution to current intraday volatility conditions
Coil multiplier at 0.72 — requires RSI bandwidth to fall below 72% of its average to declare compression. Tight enough to catch genuine coils without excessive false compressions
Resonance minimum at 5 — balanced between frequency and quality. Raise to 6–7 for higher conviction filtering
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce RSI periods to 5/9/18, reduce Adaptive Zone Lookback to 60, reduce Cooldown to 3, reduce Guide Extend to 15, reduce Coil Release Min to 1.5
H4–Daily swing trading — increase RSI periods to 9/21/42, increase Zone Lookback to 200, increase TP2 to 5.0× ATR, raise Min Resonance to 6
Crypto (BTC, ETH) — increase Adaptive Zone Percentile High to 85 and Low to 15 for the wider RSI distribution of crypto. Increase Coil Release Min to 3.0 for the larger single-bar RSI moves
Indices (NAS100, US30) — use EMA Price Filter with a 50-period EMA, increase Min Resonance to 6, restrict via session filter to cash market hours
More signals — lower Min Resonance to 4, reduce Cooldown to 3, enable all four setups, widen adaptive zone percentiles (75/25)
Ultra-selective only — raise Min Resonance to 7–8, enable Hard HTF Alignment, enable EMA Price Filter, require Grade A minimum (increase minResonance to 8), disable SNAPBACK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
📊 Momentum and RSI traders who want more than a single oscillator — RESONANCE is the definitive multi-period RSI implementation in the AlphaX suite. Three periods, five phases, four setups, and a 10-point scoring system replace the single-line RSI with a complete momentum intelligence framework
🎵 Traders who understand that momentum has layers — the 7/14/28 harmonic stack separates fast momentum (entry timing), intermediate momentum (structural backing), and slow momentum (macro context) into three distinct readings that must align before the highest-quality signals fire
📐 Traders who struggle with fixed RSI overbought/oversold levels — the adaptive exhaustion zones calibrate to the actual RSI distribution of the current instrument at the current time, producing thresholds that are statistically meaningful rather than arbitrary
⚡ Volatility coil traders who want the RSI-domain equivalent — the RSI Coil Engine applies the compression-and-release concept from CATALYST to the momentum domain, detecting RSI bandwidth squeezes that precede explosive directional moves
🔀 Mean-reversion and trend-following traders simultaneously — SNAPBACK entries are mean-reversion (adaptive OB/OS exits). HARMONIC BREAK entries are trend continuation (triple-stack midline). Both are available within the same system, automatically selected based on which fires first
🥇 Gold and forex intraday traders — the 7/14/28 RSI stack with adaptive zones is particularly effective on XAUUSD and major forex pairs where the RSI distribution shifts significantly between trending and ranging sessions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. All RSI computations, stack alignments, divergence detections, and confluence scoring finalize on confirmed bars
The adaptive exhaustion zones require the full Adaptive Zone Lookback period to calibrate. On charts with fewer bars than the lookback setting, the dynamic thresholds may not reflect accurate percentile distributions. Allow at least the full lookback period (default: 100 bars) to accumulate before treating the SNAPBACK setup as fully calibrated
The RSI Coil Engine's bandwidth average also requires the Coil Lookback period to stabilize. On fresh chart loads, the COMPRESSED state may trigger briefly before the average has fully computed — this resolves naturally within the coil lookback period
The divergence validity window (divLen × 2 bars after detection) means divergence signals can fire up to 10 bars (default divLen 5 × 2) after the actual pivot low or high. The confirming candle requirement prevents stale divergences from generating signals without fresh price confirmation
The candle tinting applies the stackBull/stackBear condition which uses a ±2 to ±4 tolerance buffer around the midline for Core and Anchor RSIs. This prevents the tinting from flickering on and off as Core or Anchor RSIs oscillate near the midline. The tint represents sustained broad stack alignment, not momentary
Guide lines (SL, TP1, TP2) are only drawn on the last bar and are redrawn whenever a new signal fires. They reflect the most recent active trade plan
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 momentum is not a single number — it is a harmonic relationship between fast energy, intermediate conviction, and slow institutional commitment. Indicador

[ 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. Indicador

Seasonality: Forex Indices [invincible3]Seasonality: Forex Index
Seasonality: Forex Index is a visual seasonality dashboard designed to help traders analyze historical yearly patterns across major currency indexes.
The indicator displays compact 365-day seasonal mini charts directly on the price chart. Each currency index is shown in its own separate panel, allowing traders to quickly compare seasonal strength, weakness, turning points, and recurring calendar-based tendencies throughout the year.
Included forex indexes:
• Australian Dollar
• Canadian Dollar
• Swiss Franc
• Dollar Index
• Euro
• British Pound
• Japanese Yen
Each currency includes two seasonal curves:
Blue Line — All Years Average
Shows the long-term historical seasonal tendency for the selected currency index.
Yellow Line — Weighted Average
Shows a weighted seasonal curve designed to give more importance to recent seasonal behavior while still preserving the broader historical pattern.
The dashboard is fully customizable. Users can enable or disable individual currency indexes, choose whether to display the All Years curve, the Weighted Average curve, or both, and adjust the widget width, distance from candles, column spacing, panel height, row gap, and dashboard placement.
Key Features:
• Seasonality dashboard for major forex indexes
• Includes AUD, CAD, CHF, DXY, EUR, GBP and JPY
• 365-day calendar-based seasonal curves
• All Years average and Weighted Average comparison
• Separate mini chart for each currency index
• Monthly grid lines and month labels
• Adjustable dashboard size, spacing, and placement
• Right-side dashboard placement option
• Auto-theme color support
• Manual customization for line colors, grid, background, and text
• Clean visual panels for quick seasonal comparison
This indicator is useful for identifying periods where major currencies have historically shown stronger or weaker seasonal tendencies. It can help traders add seasonal context to forex pairs, dollar strength analysis, macro bias, trend structure, and technical setups.
The seasonality curves are intended as a relative historical guide, not exact price forecasts. This indicator does not generate direct buy or sell signals. Seasonality should be used as a supporting research tool together with price action, trend analysis, macro fundamentals, confirmation, and proper risk management.
Indicador

[ 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. Indicador

[ A L P H A X ] RELAY - Pattern Relay EngineAlphaX RELAY — Pattern Relay Engine: Formation → Armed → Fired Lifecycle System, Pre-Breakout Detection, Completion Scoring, Volume Coil Confirmation & Real-Time Phase Intelligence
AlphaX RELAY is a professional-grade chart pattern anticipation system built around a fundamentally different concept from every other pattern indicator — including its companion AlphaX FORGE. Where FORGE detects patterns after breakout confirmation and fires entry signals on completed formations, RELAY tracks patterns throughout their entire development lifecycle , scoring their completion percentage in real time and alerting you before the breakout occurs. The RELAY framework divides every pattern's life into three sequential phases — FORMING, ARMED, and FIRED — and updates the phase designation on every bar as price evolves within the formation. When a pattern enters the ARMED zone (price approaching the neckline or boundary within ATR tolerance), RELAY alerts you to prepare. When the breakout fires, the full entry framework activates with computed entry, stop, TP1, and TP2 levels alongside a JSON alert. The result is a system that gives you advance warning of high-probability breakouts rather than reactive confirmation — designed for traders who want to be positioned before the crowd, across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 The RELAY Philosophy — Anticipation Over Confirmation
Every significant chart pattern begins forming bars or hours before the breakout. A Double Top starts when the second peak forms near the first — at that moment, a skilled technical trader begins watching the neckline. A Head & Shoulders is identifiable from the moment the right shoulder begins forming — before price has reached the neckline. A Bull Flag is established from the moment the pole terminates and consolidation begins.
Most pattern indicators wait until the breakout is confirmed — at which point the pattern is already complete, the first wave of breakout traders has already entered, and the entry price is often significantly beyond the pattern boundary. RELAY inverts this model. By continuously scanning for pattern geometries as they form , scoring their completion, and communicating their phase state in real time, RELAY gives traders the ability to:
Identify patterns well before breakout — watching them develop in real time on the chart
Receive an ARMED alert when price approaches the trigger level — preparing limit orders or monitoring for the candle close
Enter on the FIRED event with a pre-planned trade, not a reactive chase
Track completion percentage continuously — knowing whether a formation is 65% complete or 95% complete changes the urgency of preparation
This anticipatory framework is the core intellectual contribution of RELAY to the AlphaX suite, and it is what distinguishes it from FORGE — two systems covering the same pattern types from opposite temporal perspectives.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 The Three-Phase Lifecycle — FORMING → ARMED → FIRED
Every pattern in RELAY exists in exactly one of three states at any moment. The phase is computed on every bar and displayed prominently on both the chart label and the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 1 — FORMING (Purple)
The pattern geometry has been confirmed — the pivots are in the correct structural relationship and the formation is identifiable. However, price has not yet approached the neckline or boundary level closely enough to be considered imminently actionable.
What FORMING means: The pattern exists and is valid. Completion percentage is typically 60–80% in this phase. The formation box is drawn on the chart in purple. The neckline or boundary is plotted as a solid purple line. The dashboard shows the pattern name, FORMING phase, and the current completion percentage.
How to use FORMING: Plan your trade. Note the neckline level. Calculate where your entry, stop, and targets will be if the pattern fires. Set a price alert at the ARMED zone boundary so you are notified when price begins approaching the trigger level. Do not enter yet.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 2 — ARMED (Orange)
Price has approached the neckline or boundary to within the configurable ATR tolerance (default: 0.35× ATR). The pattern is in its final stage of formation before the breakout. The trigger is imminent.
What ARMED means: Price is close enough to the neckline that the next 1–5 bars will likely determine whether the pattern fires or fails. Completion percentage typically reaches 85–100% in this phase. The formation box and neckline shift to orange. The dashboard phase row turns orange. An ARMED alert fires.
How to use ARMED: This is your active preparation signal. If you are trading with limit orders, now is the time to place a limit order at the neckline level. If you prefer market orders on breakout, watch the chart closely for the closing candle confirmation. Review the confluence score — if it is at or above the minimum, the ARMED setup is worth your full attention.
ARMED alert: Separate alert conditions fire for ARMED Long and ARMED Short, allowing you to set up targeted notifications for the direction you want to trade. The ARMED alert is the pre-breakout awareness signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 3 — FIRED (Yellow-Green / Red)
Price has closed beyond the neckline or boundary by more than the configured break margin (default: 0.6× ATR). The pattern has completed and the entry framework activates. Completion is 100%.
What FIRED means: The breakout is confirmed by bar close. The formation box and neckline shift to the directional color — yellow-green for bull patterns, red for bear patterns. Entry, SL, TP1, and TP2 lines are drawn on the chart extending 40 bars forward. All four levels are labeled with exact prices. The TP2 label also shows the computed R:R. A FIRED alert fires with a full JSON payload.
How to use FIRED: Enter on the next bar's open at or near the entry level shown on the chart. Place the stop at the SL level. Scale out 50% (default) at TP1. Let the remainder run to TP2 or trail with a stop.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Formation Completion Scoring — The Pattern Health Metric
The completion percentage is a pattern-specific quantitative score that measures how far along the formation has progressed toward its breakout. Unlike a simple binary detection, the completion score gives you continuous awareness of pattern health.
How completion is computed:
Each pattern type starts with a base completion score that reflects the geometric confirmation of the core structure:
Double Top / Bottom base: 70% — the two-pivot structure is confirmed
Head & Shoulders / Inv H&S base: 65% — the three-pivot structure with neckline is confirmed
Triangles base: 60–75% — converging trendlines with sufficient base height
Flags / Pennants base: 62% — pole plus parallel or converging consolidation confirmed
Wedges base: 58–78% — converging wedge with correct slope relationship
Additional completion points are awarded for:
+15 points — price is on the correct side of the neckline (below the neckline for Double Tops, above for Double Bottoms)
+15–20 points — price is within the ARMED zone (within ATR tolerance of the neckline or boundary)
Maximum possible completion before breakout is 100%. FIRED state also shows 100% on the dashboard.
Minimum formation threshold: Patterns below the configured minimum completion percentage (default: 55%) are not displayed. This prevents very early, nascent patterns with insufficient structural confirmation from cluttering the chart. Raising this threshold (e.g., to 70%) shows only well-developed formations where the pattern geometry is fully confirmed and price is approaching the trigger.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Pattern Detection — Five Formation Types
RELAY continuously scans for five pattern families in real time, computing their phase and completion on every bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Double Top / Double Bottom
Two pivot highs at approximately the same level separated by a pullback low (Double Top), or two pivot lows at approximately the same level separated by a recovery high (Double Bottom). The neckline is the intervening low (Double Top) or high (Double Bottom).
Phase transitions:
FORMING — geometry confirmed, price not yet near neckline
ARMED — price within 0.35× ATR of the neckline
FIRED — price closes below neckline by 0.6× ATR (Double Top) or above by 0.6× ATR (Double Bottom)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Head & Shoulders / Inverted H&S
Three-peak structure with a dominant central peak (head) flanked by two lower peaks (shoulders) at approximately equal heights, connected by a potentially sloped neckline through the two intervening lows. The Inverted H&S is the mirror pattern with a dominant central trough.
The neckline for H&S patterns is computed as a projected line through the two neckline pivot points, evaluated at the current bar — producing a dynamically sloped neckline that accurately reflects the true pattern boundary at any point in time.
Phase transitions follow the same ATR-based FORMING → ARMED → FIRED logic, with the ARMED zone assessed against the sloped neckline projection.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Triangles — Ascending, Descending, Symmetrical
Converging trendlines formed by a falling or flat upper trendline and a rising or flat lower trendline. The three variants are distinguished by slope:
Ascending Triangle — upper trendline near flat, lower trendline rising. Bull breakout expected
Descending Triangle — lower trendline near flat, upper trendline falling. Bear breakout expected
Symmetrical Triangle — both trendlines converging, neither flat. Can break either direction; RELAY tracks the direction of the actual breakout
The ARMED zone is computed relative to the projected upper (bull) or lower (bear) trendline at the current bar. Completion receives a bonus for larger triangle base heights (more than 2× ATR adds 15 points vs 5 points for smaller bases).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Flags and Pennants
A sharp pole move followed by a consolidation with parallel downward-sloping trendlines (Bull Flag / Pennant) or parallel upward-sloping trendlines (Bear Flag / Pennant). The pole size must be at least 2.5× ATR to qualify as a genuine pole rather than normal price movement.
The upper trendline for Bull Flags and the lower trendline for Bear Flags are the breakout boundaries. The ARMED zone is assessed against the projected trendline level at the current bar. The target is the breakout level plus the full pole distance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Rising and Falling Wedges
Converging patterns where both trendlines slope in the same direction but the lower trendline has a more extreme slope than the upper (Rising Wedge — bearish) or the upper trendline has a more extreme slope than the lower (Falling Wedge — bullish). The slope relationship distinguishes wedges from flags (which are parallel) and triangles (where lines converge to a point rather than widening).
Completion bonus is proportional to the wedge width in ATR multiples — wider wedges with more price range between the trendlines score higher completion. The target is the high of the wedge origin (Falling Wedge) or the low (Rising Wedge) — the structural measurement move.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏅 The 10-Point Quality Scoring System
Every active pattern is scored through a 10-point confluence system. Only patterns meeting the minimum score threshold (default: 5) are displayed, and the quality-ranked selection algorithm picks the highest-scoring pattern when multiple formations are active simultaneously.
Score components:
Formation Completion (up to 2 points):
Completion at 85% or above scores 2 points. Completion above the configured minimum scores 1 point. This ensures well-developed patterns score higher than nascent formations.
HTF Bias Alignment (up to 2 points):
Bull pattern with bull HTF, or bear pattern with bear HTF, scores 2 points. When HTF is disabled, 1 neutral point is awarded. Counter-HTF patterns score 0. The HTF filter can be set as a hard block on FIRED patterns — preventing counter-HTF breakout alerts even if the pattern is technically valid.
Non-Chop Market (1 point):
Choppiness Index below the threshold. Also enforced as a hard gate — extreme chop blocks all patterns from displaying.
Pattern Phase (up to 2 points):
FIRED scores 2 points, ARMED scores 1 point, FORMING scores 0. This weighting ensures that more advanced phases naturally score higher in the quality ranking — a FIRED pattern will nearly always outscore a FORMING pattern in the selection algorithm.
Volume Coil Before Break (1 point):
Current volume is below the configured fraction of the volume moving average (default: 0.85×). A drying volume condition approaching the neckline is the classic pre-breakout behavior — the market is consolidating on declining interest before the explosive release. This layer rewards patterns where this institutional behavior is present.
R:R at Minimum (1 point):
The computed R:R between entry and TP2 meets or exceeds the minimum (default: 1.5). Ensures only patterns with adequate measured moves relative to their stop are displayed.
Pattern Size (1 point):
The pattern height or target distance meets or exceeds 1.5× ATR. Filters micro-patterns with trivial measured moves.
Selection algorithm:
When multiple patterns qualify simultaneously, RELAY uses a composite ranking that combines the confluence score, completion percentage (weighted at 0.05 per percent), and phase bonus (FIRED: +3, ARMED: +2, FORMING: +0). This ensures that a FIRED pattern with good confluence almost always outranks a FORMING pattern, while also rewarding high-completion ARMED patterns over low-completion FORMING patterns of equal confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Formation Box and Neckline Visualization
Every active pattern is rendered with two core visual elements:
Formation Box:
A rectangle spanning the pattern's horizontal range (from the start bar to the current bar) and vertical range (from the neckline to the opposite extreme of the pattern — the tops for bear patterns, the bottoms for bull patterns). The box color reflects the current phase: purple for FORMING, orange for ARMED, yellow-green or red for FIRED. The fill opacity is moderate (88%) — present enough to identify the pattern zone without obscuring price action behind it.
Neckline / Boundary:
A solid line at the critical breakout level, extending 20 bars beyond the current bar. For patterns with flat necklines (Double Tops, Rectangles), this is a horizontal line. For Head & Shoulders with sloped necklines, the line reflects the slope. The neckline color matches the phase color — shifting through purple, orange, and the directional color as the phase advances.
Phase Label:
A label at the right edge of the formation showing the pattern name, current phase, and completion percentage. Positioned above price for bear patterns, below for bull patterns. The label color matches the phase.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 13-row real-time dashboard displays the complete state of the current highest-scoring pattern.
RELAY STATE
Pattern — the name of the current pattern: Double Top, Head & Shoulders, Asc Triangle, Bull Flag, Falling Wedge, etc. Color-coded yellow-green for bull, red for bear
Phase — FORMING (purple), ARMED (orange), or FIRED (yellow-green/red). The most critical single row in the entire dashboard
Formation — the live completion percentage. Orange when below 80%, yellow-green when above 80%
Neckline — the exact price of the current neckline or boundary level in real time
LEVELS (FIRED)
Entry — the computed entry price (current bar's open at FIRED). Shows — when pattern is still FORMING or ARMED
TP1 / TP2 — both take-profit targets displayed as a price pair
Stop — the computed stop loss level
QUALITY
Confluence — the pattern's score out of 10. Yellow-green when at or above the minimum threshold
HTF · Chop — HTF bias (▲ BULL, ▼ BEAR, FLAT) and live Choppiness Index displayed on a single row. Orange CI indicates the chop gate is near or active
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Formation Box (FORMING — purple) — the developing pattern's price range from start to current bar, purple-tinted
Formation Box (ARMED — orange) — box shifts to orange when price enters the ARMED zone. This color change on the chart is itself an alert
Formation Box (FIRED — yellow-green / red) — pattern complete, box color reflects direction
Neckline Line (solid, phase color) — the critical breakout level extending 20 bars forward
Phase Label — pattern name, phase text, and completion percentage. Positioned at the right edge of the formation
Entry Line (yellow-green dashed) — FIRED phase only, with "ENTRY x.xxxx" label
SL Line (red dashed) — FIRED phase only, with "SL x.xxxx" label
TP1 Line (lime dotted) — FIRED phase only, with "TP1 x.xxxx" label
TP2 Line (bright yellow-green dashed, width 2) — FIRED phase only, with "TP2 x.xxxx · R:R x.xx" label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 JSON Alert System
RELAY fires a structured JSON alert on every FIRED event, delivering complete trade parameters to webhook receivers.
FIRED JSON structure: Indicador

Indicador

ICT Fractal SMT Divergence Engine [v6]
ENGLISH
🔥 ICT Fractal SMT Divergence & Auto-Triad Engine is a professional, high-precision TradingView indicator designed for Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodology.
🎯 PURPOSE & CONCEPT
In institutional trading, SMT (Smart Money Technique) Divergence measures inter-market relative strength across correlated asset groups (Triads). When one asset in a triad sweeps liquidity by creating a new extreme ( Lower Low or Higher High ), while a correlated asset fails to sweep that extreme ( Higher Low or Lower High ), it reveals institutional accumulation/distribution and an imminent high-probability market reversal.
This indicator calculates SMT divergences strictly between confirmed Bill Williams / ICT Fractals , ensuring pixel-perfect visual precision on the chart with zero Y-axis displacement.
🧠 SMART AUTO-DETECT TRIAD ENGINE
The indicator automatically recognizes your current chart ticker and instantly pairs it with its exact correlated triad assets:
Crypto : Opening BTCUSDT.P, ETHUSDT.P, or any Altcoin automatically pairs BTCUSDT.P, ETHUSDT.P, and CRYPTOCAP:TOTAL3.
Forex : Opening EURUSD or GBPUSD automatically pairs the counterpart FX pair and DXY (with automatic inverse Dollar Index correlation).
Precious Metals : Opening XAUUSD (Gold) pairs XAGUSD (Silver) and PLATINUM. Opening XAGUSD pairs XAUUSD and PLATINUM.
US Stock Indices : Automatically correlates ES1! (S&P 500), NQ1! (Nasdaq), and YM1! (Dow Jones).
📖 HOW TO TRADE / USAGE RULES
Bullish SMT Setup (Long Bias) :
- Main asset breaks prior Fractal Low (Lower Low / Liquidity Sweep).
- Correlated triad asset holds its low (Higher Low).
- Execution: Look for bullish Market Structure Shift (MSS) or Fair Value Gap (FVG) entry.
Bearish SMT Setup (Short Bias) :
- Main asset breaks prior Fractal High (Higher High / Liquidity Sweep).
- Correlated triad asset holds its high (Lower High).
- Execution: Look for bearish Market Structure Shift (MSS) or Fair Value Gap (FVG) entry.
⚙️ COMPREHENSIVE SETTINGS & INPUTS EXPLANATION
Triad Preset Mode : Select between Auto Detect (Smart Triad), specific market presets, or Custom / Manual Tickers.
Asset 2 / Asset 3 Ticker (Custom) : Manual input for custom correlated assets when in Custom Mode.
Invert Asset 2 / Invert Asset 3 : Toggle for inversely correlated symbols (e.g., DXY vs EURUSD).
Fractal Length (Left/Right Bars) : Defines the fractal shoulder size (Default: 2 = classic 5-candle ICT Fractal).
Comparison Mode : Choose between Regular (High/Low wicks) or Hidden SMT (Close body prices).
Min / Max Distance (Bars) : Controls minimum and maximum bar separation between compared fractals.
Compare with Asset 2 / Compare with Asset 3 : Toggle individual asset divergence verification.
Visual Styling & HUD Dashboard : Customize colors, line thickness, label sizes, background glow, and dashboard HUD position.
Disclaimer: Trading financial markets involves substantial risk of loss. This indicator is designed for educational and analytical purposes to support SMC/ICT trading methodologies.
================================================================================
РУССКАЯ ВЕРСИЯ
🔥 ICT Fractal SMT Divergence & Auto-Triad Engine — это профессиональный высокоточный индикатор для трейдеров, торгующих по концепциям Smart Money Concepts (SMC / ICT) .
🎯 ПРЕДНАЗНАЧЕНИЕ И КОНЦЕПЦИЯ
В институциональном трейдинге SMT (Smart Money Technique) Дивергенция измеряет относительную силу между коррелирующими группами активов (Триадами). Когда один актив из триады обновляет ключевой ценовой уровень ( Lower Low или Higher High ), совершая снятие ликвидности (Liquidity Sweep) , а второй актив из триады отказывается обновлять свой экстремум (формируя Higher Low или Lower High ), это открывает институциональный след крупного игрока и указывает на скорый разворот рынка.
Индикатор строит дивергенции строго между подтвержденными фракталами Билла Вильямса / ICT , обеспечивая идеальную визуальную точность на графике без смещения меток по ценовой оси.
🧠 УМНЫЙ АВТО-ДЕТЕКТОР ТРИАД (SMART AUTO-DETECT)
Индикатор автоматически определяет открытый актив и мгновенно связывает его с правильной триадой:
Криптовалюта : При открытии BTCUSDT.P, ETHUSDT.P или любого альткоина автоматически подтягиваются коррелирующие активы: BTCUSDT.P, ETHUSDT.P и CRYPTOCAP:TOTAL3.
Валютные пары (Forex) : При открытии EURUSD или GBPUSD подтягивается парный валютный актив и DXY (с автоматической инверсией индекса доллара).
Драгоценные металлы : При открытии XAUUSD (Золото) автоматически подтягивается XAGUSD (Серебро) и PLATINUM. При открытии XAGUSD — XAUUSD и PLATINUM.
Фондовые индексы США : Автоматическое сравнение триады фьючерсов ES1! (S&P 500), NQ1! (Nasdaq) и YM1! (Dow Jones).
📖 РУКОВОДСТВО ПО ТОРГОВЛЕ И СИГНАЛЫ
Bullish SMT (Бычий SMT / Покупки) :
- Основной актив обновил предыдущий фрактальный лой (Lower Low / снял ликвидность).
- Коррелирующий актив из триады удержал лой (Higher Low).
- Вход в сделку: Ищите слом структуры (MSS / CHoCH) или имбаланс (FVG) на младшем таймфрейме для входа в лонг.
Bearish SMT (Медвежий SMT / Продажи) :
- Основной актив обновил предыдущий фрактальный хай (Higher High / снял ликвидность).
- Коррелирующий актив из триады удержал хай (Lower High).
- Вход в сделку: Ищите слом структуры (MSS / CHoCH) или имбаланс (FVG) на младшем таймфрейме для входа в шорт.
⚙️ ПОДРОБНЫЙ РАЗБОР ВСЕХ НАСТРОЕК
Triad Preset Mode : Выбор между Auto Detect (умное авто-определение), готовыми пресетами рынков или режимом Custom (ручной ввод).
Asset 2 / Asset 3 Ticker (Custom) : Поля для ручного ввода тикеров при включенном режиме Custom.
Invert Asset 2 / Invert Asset 3 : Включение инверсии для обратно коррелирующих активов (например, DXY против EURUSD).
Fractal Length (Left/Right Bars) : Размер плеча фрактала (по умолчанию 2 — классический 5-свечной фрактал ICT).
Comparison Mode : Режим сравнения: Regular SMT (сравнение по фитилям High/Low) или Hidden SMT (по закрытию тел Close).
Min / Max Distance (Bars) : Минимальное и максимальное расстояние в барах между сравниваемыми фракталами.
Compare with Asset 2 / Compare with Asset 3 : Включение/выключение проверки дивергенции по отдельным активам.
Visual Style & HUD Dashboard : Настройка цветов (Bull/Bear SMT), толщины линий, размера меток, подсветки фона и позиции таблицы на экране.
Отказ от ответственности: Торговля на финансовых рынках несет высокий риск. Данный индикатор создан для аналитических целей и поддержки решений по SMC / ICT концепциям. Indicador

NSE/BSE Key Support & Resistance | MTF Pro-3.1Advanced pivot-based Support & Resistance with multi-timeframe confluence, strength scoring, volume-confirmed breaks, and adaptive zone visuals — built specifically for Indian stock market (NSE/BSE).
Overview
Most S&R indicators draw every pivot as an equal horizontal line and extend it infinitely to the right — creating cluttered, unreadable charts. This indicator solves that by scoring every level based on how strongly price rejected it , merging overlapping levels from different timeframes into a single confluence zone, and only showing the levels that actually matter.
Built and tuned specifically for NSE and BSE stocks, indices (Nifty 50, Bank Nifty, Sensex), and F&O instruments.
Key Features
🔷 Multi-Timeframe Support (4 TFs)
Enable up to 4 independent timeframes simultaneously. Each timeframe's pivots are detected separately and tagged in the label — , , , . You choose which timeframes to activate.
🔷 Cross-TF Confluence Merge
When two different timeframes produce a pivot at nearly the same price (within ATR proximity), they automatically merge into a single stronger zone instead of drawing two overlapping boxes. The label shows both sources — — and the level receives a confluence strength bonus. These merged zones are your highest-priority trade levels.
🔷 Advanced Strength Scoring
Every level carries a live strength score (★) that accumulates over time. Each touch is scored individually based on:
Wick size relative to candle range (how strongly price rejected)
Distance of close from the level (how convincingly price pulled back)
Whether volume was above average on that candle
Whether a strong body / engulfing candle formed
A barely touching wick scores ~0.5. A high-volume hammer rejection scores ~5–6. The score drives both zone opacity and zone width — strong levels appear bold and wide, weak levels fade visually.
🔷 Volume-Based Break Filter
A level is only invalidated when price closes beyond it and volume meets a configurable threshold (default: 1× average volume). Low-volume spikes through a level are ignored as false breakouts — the zone remains valid. Break alerts include the volume ratio so you know the conviction behind the move.
🔷 Adaptive Zone Visuals
No right extension — zones terminate at the current bar (valid) or the break bar (broken). No infinite lines cluttering the right side of your chart.
Opacity scales with strength — strongest levels are most visible, weakest levels are nearly transparent.
Zone width scales with strength — high-confidence zones are wider, giving a visual sense of the price area's importance.
🔷 Clean Labels
Each label shows the full picture at a glance:
21450.00 ★6.5 ×3
Timeframe source | Price | Strength score | Touch count
Settings Guide
SettingWhat it doesPivot LengthBars each side to confirm a pivot. Higher = fewer, stronger levelsMin StrengthHide levels below this score. Raise to show only confirmed levelsATR Merge DistanceHow close two levels must be to merge into oneInvalidationClose-based (reliable) or Wick-based (faster) break detectionVolume Break FilterRequire above-average volume to confirm a breakoutMin Volume MultiplierHow many times average volume needed to confirm a breakMax Active LevelsCap total zones shown on chartStrength → Zone OpacityToggle adaptive opacity based on strength score
How to Use
Bounce trades — price enters a green (support) zone → wait for a rejection candle with volume → enter above the rejection candle high, SL below zone bottom.
Rejection trades — price enters a red (resistance) zone → wait for a bearish candle with volume → enter below candle low, SL above zone top.
Breakout trades — price closes beyond a zone with high volume (break alert fires) → wait for pullback to the broken level → trade in the direction of the break.
Highest priority setups — zones tagged or with ★ score above 5 and multiple touches. These are the levels institutional money respects.
Alerts
The indicator fires alert() calls for:
Break confirmed — includes ticker, price, and volume ratio
Retest — includes ticker, price, and touch quality score
Set alert condition to "Any alert() function call" in TradingView's alert dialog.
Notes
Designed and tested on NSE/BSE equities and F&O stocks
Works on any timeframe from 1 minute to Weekly
All calculations are original — pivot detection, strength engine, confluence merge, and volume filter are built from scratch in Pine Script v6 Indicador

Fix PIPS - 4 Sessions - FRA / LDN / NY / ASIA4 Sessions draws High/Low range boxes for the four major market sessions — Frankfurt, London, New York and Tokyo.
HOW IT WORKS
Each session is a translucent box that tracks the session's running High/Low as it develops. Session hours are defined in each market's home timezone (Europe/Berlin, Europe/London, America/New_York, Asia/Tokyo), so the boxes always land in the right place regardless of your chart's timezone, and DST transitions in every region are handled automatically — nothing to adjust twice a year.
DEFAULT HOURS (exchange hours, editable)
• Frankfurt — 08:00–09:00 (Xetra open, the hour before London)
• London — 08:00–16:30
• New York — 09:30–16:00 (NYSE)
• Tokyo — 09:00–15:00 (TSE)
SETTINGS
One row per session: enable toggle, color (set fill opacity right in the color picker) and hours. Weekdays only — no weekend boxes on 24/7 markets like crypto. Works on intraday timeframes. Optional on-chart info note with a UA/EN/RU language switch.
ALERTS
Alert conditions fire on each session open (Frankfurt, London, New York, Asia). Indicador

Indicador

Indicador

Risk & Position-Size Calculator : Futures/Prop | Falcon AIStop blowing accounts to oversized positions. This free tool tells you EXACTLY
how many contracts to trade so a stop-out only costs the dollars you decided to
risk — on any futures symbol (MNQ, MES, NQ, ES, MGC, CL and more). It auto-detects
each contract's point value, so the math is always right.
It shows:
• Position size (contracts) for your account + risk %
• Your real $ risk, $/point, and 2R / 3R targets
• Prop-firm guardrails: how many losing trades until you breach your daily-loss
limit or trailing drawdown
• Prior-day high/low for context
Set your account size, risk %, and stop (manual or ATR-based) — it does the rest.
Built by Falcon AI. Educational tool only — not financial advice. Indicador

[ A L P H A X ] PRISM - Adaptive Dual-Kernel Flow EngineAlphaX PRISM — Adaptive Dual-Kernel Flow Engine: Nadaraya-Watson Kernel Regression, Residual Band System, Pivot Divergence Detection, Z-Score Fade & 4-Setup Regime-Gated Confluence Engine
AlphaX PRISM is a professional-grade adaptive trend and mean-reversion system built on a mathematically distinct foundation from every other indicator in the AlphaX suite. Where VECTOR uses an Efficiency Ratio and Choppiness Index to classify regimes and a KAMA line as the trend reference, PRISM applies non-parametric kernel regression — specifically a Nadaraya-Watson weighted estimate — to compute a statistically optimal smooth estimate of the price process itself. The result is not a moving average in the traditional sense. It is a regression estimate that weights each historical price observation by its distance from the present using a configurable kernel function, producing a slow kernel (primary trend estimate) and a fast kernel (momentum layer) whose spread creates a real-time directional bias measure fundamentally different from EMA crossover systems. Residual bands built from the standard deviation of price minus the kernel estimate — not from the kernel itself — provide statistically grounded dynamic envelopes that scale with actual price noise rather than arbitrary ATR multiples. Four regime-gated setup types — Trend Flow Break, Kernel Pullback, Z-Score Fade, and Pivot Divergence Reversal — fire through a 7-layer confluence engine that checks both kernel-specific signals and macro filter alignment simultaneously. Designed for traders who want institutional-grade statistical price modeling applied to practical signal generation across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Kernel Engine — Nadaraya-Watson Regression
The foundational difference between PRISM and every other AlphaX indicator is the core price estimate. All other systems use variants of exponential or adaptive moving averages — weighted sums of past prices with exponentially decaying weights. PRISM uses a Nadaraya-Watson kernel estimator — a non-parametric regression technique that estimates the true underlying price process at any point as a kernel-weighted average of all observations in the lookback window.
What kernel regression actually does:
Standard moving averages assign weights by time elapsed — more recent bars get more weight, older bars get less, following an exponential decay curve. The NW estimator assigns weights by position — how many bars ago a price occurred relative to the current bar — using a smooth, symmetric kernel function. This produces an estimate that minimizes the squared distance between the estimate and all observed prices, weighted by position.
Why this produces a superior trend estimate: A kernel regression estimate adapts its response to the local density of price observations rather than following a fixed mathematical formula. In fast-moving price environments with large bar movements, the kernel naturally places more emphasis on nearby bars. In slow, thin environments, older observations carry more proportional weight. The result is an estimate that is simultaneously smoother than an EMA of the same effective period and more structurally faithful to the underlying price movement.
Three kernel types available:
Gaussian (default):
Uses the normal distribution probability density function as the weight function. Weights decay as a bell curve — bars near the center of the lookback carry the most weight, tailing off smoothly toward zero at the edges. The Gaussian kernel produces the smoothest estimate and is optimal for normally distributed price noise. It never fully zeroes out any observation in the window.
Epanechnikov:
A parabolic weight function — (1 - (i/h)²) — that reaches exactly zero at the bandwidth boundary. More computationally efficient than Gaussian and optimal in a mean-squared-error sense under certain assumptions. Produces a slightly sharper response to local price movements than Gaussian.
Tricube:
The weight function used in LOESS regression — (1 - |i/h|³)³. A smooth, zero-bounded kernel that falls off more steeply than Gaussian near the boundary, producing an estimate that is highly responsive to recent prices while cleanly ignoring anything beyond the bandwidth boundary.
The kernel type is selectable from settings. For most instruments and timeframes, Gaussian is recommended for its smoothness. Epanechnikov or Tricube may be preferable when faster response to recent price action is desired.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Adaptive Bandwidth — Scaling With Volatility
The bandwidth parameter h controls the effective "window width" of the kernel — how many observations contribute meaningfully to each estimate. Larger h = smoother, slower response. Smaller h = more reactive, noisier.
The fixed bandwidth problem: A bandwidth calibrated for a low-volatility environment is too reactive during high-volatility periods, producing noisy, whipsawing estimates. A bandwidth calibrated for high-volatility is too slow during quiet periods, lagging price movements significantly.
PRISM's adaptive bandwidth solution:
When Adaptive Bandwidth is enabled (default: on), the effective bandwidth is scaled by the current ATR's percentile rank relative to its own history over the configured lookback (default: 100 bars). The scaling formula produces:
Low ATR percentile (quiet market) — bandwidth scales down toward the Adaptive Min Scale (default: 0.80). The kernel becomes more responsive, tracking the slower price movement more closely
High ATR percentile (volatile market) — bandwidth scales up toward the Adaptive Max Scale (default: 1.25). The kernel becomes smoother, filtering out the larger noise inherent in high-volatility conditions
Bandwidth shift alert: When the effective bandwidth changes by 12% or more from the previous bar, a bandwidth shift event is detected and flagged on the dashboard. This indicates a significant volatility regime transition — the adaptive system is meaningfully adjusting its estimate parameters, which is itself information about the market's current character.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Dual-Kernel Architecture — Slow and Fast Estimates
PRISM runs two kernel estimates simultaneously, each with a different effective bandwidth:
Slow Kernel (Primary Estimate):
The primary trend estimate computed at the full adaptive bandwidth. This is the principal signal line — the statistically optimal estimate of the underlying price trend. The residual bands are built relative to the slow kernel. The pullback setup watches price return to the slow kernel. The slow kernel is plotted as a purple line in Bands and Line visual modes.
Fast Kernel (Momentum Layer):
A second kernel estimate computed at a fraction of the slow kernel's bandwidth (default: 0.55× the slow bandwidth). This produces a more reactive estimate that leads the slow kernel during momentum shifts. The fast kernel's proximity to or divergence from the slow kernel creates the Kernel Spread — the primary directional bias indicator in PRISM.
Kernel Spread:
`Kernel Spread = Fast Kernel − Slow Kernel`
When positive and growing (spreadBull): the fast kernel is above the slow kernel and the gap is widening — upward momentum is accelerating.
When negative and falling (spreadBear): the fast kernel is below and the gap is widening downward — bearish momentum is accelerating.
When near zero: the two estimates have converged — no directional momentum bias is present.
The spread is displayed on the dashboard with a + or - sign and colored by its directional state. It is a prerequisite for Setups A and B — trend-following entries only fire when the spread confirms the signal direction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Residual Bands — Statistically Grounded Envelopes
The residual bands in PRISM are fundamentally different from standard Bollinger Bands or ATR bands. They are built from the residuals — the differences between actual price and the slow kernel estimate — not from the price series itself.
Residual = Close − Slow Kernel
The standard deviation of these residuals over the band lookback period (default: 24 bars) gives sigma — the statistically appropriate measure of how much price typically deviates from the kernel estimate. The bands are then:
Upper Band = Slow Kernel + (Band Multiplier × σ)
Lower Band = Slow Kernel − (Band Multiplier × σ)
Why residual-based bands are superior: Bollinger Bands are built from the standard deviation of price itself — which includes both the trend component and the noise component. In a strongly trending market, most of the "deviation" in Bollinger Bands is actually trend — the bands widen dramatically and the upper/lower band crossings lose their mean-reversion significance. PRISM's residual bands remove the trend component first and only measure the standard deviation of the remaining noise. This means the bands genuinely represent deviation from the estimated price trend, not deviation from a lagging average.
Z-Score:
The current residual divided by sigma: `Z-Score = Residual / σ`. A Z-Score of +1.35 means price is currently 1.35 standard deviations above the kernel estimate — more than one standard deviation above expected. This is the metric that gates Setup C (Z-Score Fade) — a configurable minimum Z-Score is required before a mean-reversion fade signal can fire.
σ Width:
The current sigma value is displayed on the dashboard — a real-time measure of the current price noise level relative to the kernel estimate. Rising sigma indicates price is deviating increasingly from the kernel trend, falling sigma indicates price is tightening around the kernel.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Regime Classification — Two-Metric System
PRISM uses two independent measurements to determine the current regime, augmented by the kernel spread itself.
Efficiency Ratio (ER):
Identical to the VECTOR implementation — net directional price change divided by total path traveled over the lookback period. High ER = efficient directional movement = trending. Low ER = inefficient oscillation = choppy or ranging.
Choppiness Index (CI):
The logarithmic measure of how efficiently the period's ATR sum is packed into the high-low range. Above the configured threshold (default: 61.0) = stand aside (CHOP regime), blocking all signals.
Kernel Spread as regime filter:
For PRISM's Trend regime classification, the kernel spread must also exceed a minimum threshold (0.15× sigma) to distinguish genuine momentum bias from flat spread near zero. This prevents Trend regime classification when the two kernels have converged — a state that typically precedes a direction change rather than a trend continuation.
Four regimes:
CHOP (0) — CI above threshold. All signals blocked. Dashboard: ⛔ CHOP
TREND BULL (1) — not chop, ER above trend minimum, kernel spread positive and above minimum. Dashboard: ▲ TREND BULL
TREND BEAR (2) — not chop, ER above minimum, kernel spread negative and below minimum. Dashboard: ▼ TREND BEAR
BALANCE (3) — not chop, ER or spread conditions for trend not met. Dashboard: ◆ BALANCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔀 Pivot Divergence Detection — Price vs Kernel
PRISM implements a pivot-based divergence system that is significantly more robust than the slope comparison divergence used in most oscillator-based indicators.
The pivot divergence method:
Standard divergence detection compares current price slope to current oscillator slope — a noisy, easily-fooled method that produces many false signals. PRISM instead identifies confirmed price pivots (using a configurable pivot length, default: 5 bars) and compares the price level at each new pivot to the slow kernel value at the same pivot bar.
Bullish pivot divergence:
Price forms a new pivot low lower than the previous pivot low — a genuine lower low in price
The slow kernel at the current pivot low bar is higher than it was at the previous pivot low — the kernel estimate is making a higher low while price makes a lower low
Price is currently near or below the lower residual band (within 1σ) — confirming the divergence is occurring at a structurally meaningful oversold level
Bearish pivot divergence:
Price forms a new pivot high higher than the previous pivot high — a genuine higher high in price
The slow kernel at the current pivot high bar is lower than at the previous pivot high — kernel making a lower high while price makes a higher high
Price is near or above the upper residual band
Why kernel-based divergence is more reliable than oscillator divergence: The slow kernel is a statistically optimal estimate of the price trend. When price makes a new extreme but the kernel's trend estimate does not confirm that extreme — actually reversing direction relative to the prior swing — it indicates that the underlying price process, stripped of noise, is already diverging from the price surface. This is a stronger divergence signal than any oscillator comparison because the kernel literally measures the same thing as price, just without noise.
Divergence cooldown: A minimum cooldown between consecutive divergence detections (default: 8 bars) prevents the same divergence condition from generating multiple signals during a prolonged extreme.
Divergence markers: Semi-transparent diamond shapes appear below (bull) or above (bear) bars where divergence is detected but a full entry signal has not fired. These allow you to track divergence conditions developing on the chart even before the complete signal conditions are met.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Four Regime-Gated Setup Types
PRISM implements four distinct entry setups, each gated to the appropriate regime state and designed to exploit a different market condition detected by the kernel system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup A — Flow Break (Trend regime only)
A trend-following breakout entry that fires when price crosses through the residual band with kernel momentum confirmation.
Long conditions:
Regime is Trend Bull (regime == 1)
Price closes above the upper residual band — a statistically significant positive deviation from the kernel trend
Kernel spread is positive and accelerating (spreadBull) — fast kernel is above slow and the gap is widening, confirming the momentum behind the break
A qualifying bull rejection candle (close > open, lower wick above 52% of range) is present
The rationale: A close above the upper residual band in a Trend Bull regime means price has moved more than one standard deviation above the kernel trend estimate with directional kernel momentum behind it. This is not a mean-reversion setup — in a trending regime, upper band closes are continuation signals, not exhaustion signals. The kernel spread confirmation ensures the break has genuine momentum backing rather than being a noise spike into the band.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup B — Kernel Pullback (Trend regime only)
The primary pullback entry — price retracing to the slow kernel with momentum still intact.
Long conditions:
Regime is Trend Bull
Price touches the slow kernel from above — the low of the bar reaches within 0.25× ATR of the kernel line
Price closes above the kernel — confirming the touch was a rejection, not a breakdown through the kernel
Kernel spread is still positive and accelerating — the underlying momentum has not reversed despite the pullback
A qualifying bull rejection candle confirms
The rationale: In a trend regime, the slow kernel is the trend's statistical backbone — the optimal estimate of where the underlying price process is. A pullback to the kernel during a trend is the equivalent of pulling back to the trend's center — the lowest-risk continuation entry with the widest statistical support. The spread confirmation ensures the trend's momentum is intact at the time of the touch.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup C — Z-Score Fade (Balance regime only)
A statistically informed mean-reversion entry using the residual Z-Score to identify genuine band extremes.
Short fade conditions:
Regime is Balance (regime == 3)
Z-Score is above the configured minimum (default: 1.35) — price is more than 1.35 standard deviations above the kernel estimate, a statistically elevated extension
A qualifying bear rejection candle confirms the rejection at the extreme
Why the Z-Score threshold is the key gate: Any band touch could trigger a naive fade signal. The Z-Score requirement ensures only genuine statistical extremes are faded — points where price has deviated far enough from the kernel estimate that mean-reversion is statistically probable. The 1.35σ threshold balances frequency and quality — above this level, approximately 82% of normal distribution probability mass is below the current price, making continuation significantly less likely than reversion.
Balance-only gating: In a Trend regime, upper band touches in a bull trend are continuation signals, not exhaustion (as Setup A exploits). Setup C is therefore hard-gated to Balance regime only — mean-reversion entries are only valid when the market is genuinely ranging, not when a trend is carrying price to the band.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup D — Divergence Reversal (Balance or opposing Trend regime)
The highest-conviction reversal entry, combining the pivot divergence signal with a band extreme and rejection candle.
Long conditions:
A qualifying bullish pivot divergence has been detected (price lower low, kernel higher low, near lower band)
A qualifying bull rejection candle confirms on the divergence bar
Regime is Balance OR Trend Bear (regime == 3 or regime == 2) — the setup is intended for counter-trend reversals, not trend continuation
Why divergence setups fire in opposing trend or balance regimes: A bullish divergence at the lower band during a Trend Bear regime is a potential trend exhaustion and reversal signal. In Balance, it is a standard oscillation reversal. Both contexts are appropriate for a divergence-based entry. A bullish divergence during Trend Bull would be anomalous — if the kernel is making higher lows while price makes lower lows in a bull trend, the trend is likely still intact and the divergence is noise rather than reversal signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 7-Layer Confluence Engine
Every signal across all four setup types is scored through the same 7-layer system. The default minimum is 5 of 7.
Layer 1 — Regime and Kernel Spread Direction (1 point):
Awards 1 point when either the regime confirms the signal direction (Trend Bull for longs, Trend Bear for shorts) or the kernel spread is directionally aligned. This layer is satisfied by either condition, making it achievable even in Balance regime when the spread is directional.
Layer 2 — Z-Score and Spread Positioning (1 point):
Awards 1 point when the residual Z-Score is positive (price above kernel) for longs, or negative for shorts; or when the kernel spread is directionally positive or negative respectively. Confirms the price is on the structurally correct side of the kernel estimate.
Layer 3 — HTF Bias (1 point):
Higher timeframe EMA alignment agrees with the signal direction. The macro institutional flow confirmation layer.
Layer 4 — Volume Expansion (1 point):
Current bar volume exceeds the volume moving average by the configured minimum multiplier (default: 1.05×). Confirms genuine participation on the signal bar.
Layer 5 — Rejection Candle (1 point):
A qualifying bull or bear rejection candle — bullish close with lower wick exceeding 52% of range, or bearish close with upper wick exceeding 52%. The candle quality confirmation that price genuinely rejected at the relevant level.
Layer 6 — Non-Chop Regime (1 point):
Market is not in Chop regime. Also enforced as a hard gate — no signal fires in Chop regardless of score.
Layer 7 — Setup Type Active (1 point):
Any of the four enabled setup types has fired on the current bar. Both a scoring layer and a hard prerequisite — at least one setup type must qualify for a signal to exist.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 16-row real-time dashboard displays the complete internal state across four sections.
KERNEL
Regime — current regime: ⛔ CHOP, ▲ TREND BULL, ▼ TREND BEAR, or ◆ BALANCE
Kernel Type — the active kernel function: Gaussian, Epanechnikov, or Tricube
Bandwidth h — the current effective slow kernel bandwidth with "adap" suffix when adaptive scaling is active. Orange when a bandwidth shift event has been detected
Flow Spread — the current Fast Kernel minus Slow Kernel spread value with + or - sign. Yellow-green when spreadBull, red when spreadBear
BANDS
Z-Score — the current residual Z-Score. Orange when above the fade minimum threshold, indicating a statistically stretched condition
σ Width — the current sigma value in price terms — the standard deviation of residuals, displayed as a price distance
Divergence — ▲ BULL DIV or ▼ BEAR DIV when a pivot divergence is currently active, — otherwise
FILTERS
HTF Bias — ▲ BULL, ▼ BEAR, or — FLAT
Chop Index — live Choppiness Index value. Orange when in the stand-aside zone
CONFLUENCE
Bull Score — live 0–7 score. Background highlights yellow-green when threshold met and not in chop
Bear Score — live 0–7 score. Background highlights red when threshold met and not in chop
Live confluence label: During non-chop regimes, a small B x/7 · S x/7 label appears near the slow kernel line on the current bar, updating in real time.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System — Three Visual Modes
PRISM provides three visual modes selectable from settings, allowing you to optimize the chart display for your preferred analysis style.
Bands Mode (default):
Shows both the slow kernel line and the upper/lower residual bands as a channel around the kernel. The band fill creates a purple-tinted envelope. Setup A and C reference levels are immediately visible. Best for band-aware trading and Z-Score fade entries.
Line Mode:
Shows only the slow kernel line without bands. Clean, minimal display for traders who prefer to use the kernel line purely as a trend reference and support/resistance level for pullback entries.
Flow Mode:
Shows both the fast and slow kernel lines simultaneously without the residual bands. The spread between the two lines is directly visible on the chart — the gap between cyan (fast) and purple (slow) is the visual representation of the Flow Spread. Best for traders who want to monitor momentum through the kernel spread rather than band positioning.
Additional visuals:
Slow Kernel Line (purple) — the primary trend estimate, primary reference for Setup B pullbacks
Fast Kernel Line (cyan, Flow Mode only) — the momentum layer, its position relative to the slow kernel shows the current spread
Upper/Lower Residual Bands — statistically computed envelopes around the kernel. Setup A crossovers and Setup C fade levels
Band Fill (purple tint) — semi-transparent fill between bands when enabled
▲ Triangle (below bar) — long signal. All conditions confirmed
▼ Triangle (above bar) — short signal
◆ Diamond (semi-transparent, below/above) — divergence detected but full signal not yet confirmed. Pre-signal awareness
SL Guide (red dotted circles) — stop loss below the lower band or bar low minimum, plus ATR buffer
TP Guide (yellow-green dotted circles) — dynamic R-multiple target
Bar coloring (optional, off by default) — bars colored by kernel bias direction when enabled
Live confluence label — B x/7 · S x/7 near the slow kernel on the current bar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX PRISM — Step by Step
Step 1 — Check Regime and Kernel State
Dashboard Regime row is the first check. ⛔ CHOP means no trades. ▲ TREND BULL or ▼ TREND BEAR means Setup A and B are available. ◆ BALANCE means Setup C and D are available
Check Flow Spread — is it confirming the regime direction? In Trend Bull, the spread should be positive and yellow-green. A Trend Bull regime with a flat or negative spread is a weakening trend that may be transitioning to Balance
Note the Z-Score — is it near or beyond the fade threshold? A Z-Score above +1.35 in Balance regime means Setup C short fade conditions are approaching. Below -1.35 means Setup C long fade is approaching
Check Divergence row — if it shows ▲ BULL DIV or ▼ BEAR DIV, a reversal setup is potentially developing. Watch for the rejection candle confirmation
Step 2 — Identify the Active Setup Type
Trend Bull: watch for price to reach the slow kernel line from above (Setup B) or close above the upper band with spread confirmation (Setup A)
Balance: watch Z-Score. When it reaches ±1.35 and the rejection candle fires, Setup C is the play
Any regime where divergence is active: Setup D — the rejection candle at the band extreme is the trigger
Step 3 — Enter on the PRISM Signal
A ▲ triangle confirms the full confluence stack is met. The SL guide is below the lower band and bar low minimum — the structural invalidation level
The TP guide is at the R-multiple target. For Setup A trend breaks, consider extending the target toward previous swing highs if the trend is strongly established
For Setup D divergence entries, the target is typically the kernel line itself (the mean) — the Z-Score fading back toward zero is the natural first target
Step 4 — Manage with Kernel State
During a Trend regime trade, watch the Flow Spread on the dashboard. When the spread begins narrowing (converging toward zero), trend momentum is fading — begin preparing to exit
A bandwidth shift (Bandwidth h shows orange) during a trade means volatility is changing significantly. Reassess the trade's context — the kernel is recalibrating
If regime transitions to Chop during an open trade, close immediately — the market character no longer supports the setup's thesis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Regime shows ⛔ CHOP — the Choppiness Index has crossed the stand-aside threshold. All signals are blocked. This is the most important dashboard reading in PRISM
Bandwidth h shows orange (bandwidth shift) — the adaptive bandwidth is shifting significantly, indicating a volatility regime transition. The kernel is recalibrating and its estimates may be temporarily less reliable
Flow Spread is near zero in either direction — when the fast and slow kernels have converged, there is no directional momentum bias. Setup A and B require a spreading kernel; a flat spread means the market has no directional commitment at the kernel level
Z-Score is between -1.0 and +1.0 in Balance regime — price is near the kernel estimate, well within one standard deviation. Setup C fade signals require statistical stretch beyond 1.35σ — entering fades too close to the kernel means the edge from Z-Score mean reversion is absent
Divergence markers appear but no rejection candle forms for multiple bars — a divergence without a confirming candle is a warning, not a signal. Do not enter on the divergence alone; wait for the full Setup D conditions including the rejection candle and minimum confluence score
Regime alternates rapidly between Trend Bull and Balance or Balance and Chop — unstable regime cycling indicates a transitional market where neither trending nor ranging playbooks have sustained applicability. Reduce size or wait for a clear, sustained regime
The ideal PRISM setup:
Trend regime sustained for 10+ bars with consistent spread direction
Flow Spread positive and growing (Trend Bull) — the momentum is actively building
HTF Bias aligned with regime direction
Price retracing cleanly to the slow kernel (Setup B) — touch within 0.25× ATR with a qualifying rejection pin bar
Volume above average, confirming institutional participation at the kernel level
Confluence score at 6/7 or 7/7
Z-Score near zero at the pullback bar — confirming the pullback reached the statistical center, not an overextended entry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Nadaraya-Watson kernel regression — non-parametric weighted estimate of the underlying price process using Gaussian, Epanechnikov, or Tricube kernel functions
⚙ Adaptive bandwidth scaling — effective bandwidth scales by ATR percentile rank, tightening in quiet markets and widening in volatile conditions
⚡ Dual-kernel architecture — slow kernel (primary trend estimate) and fast kernel (momentum layer) whose spread creates a real-time directional bias measure
📊 Residual-based bands — bands computed from the standard deviation of price-minus-kernel residuals, not from price itself. Statistically superior to ATR or price-deviation bands
📉 Z-Score display — live residual Z-Score showing how many standard deviations price has deviated from the kernel estimate, gating the mean-reversion fade setup
🔀 Pivot-based divergence detection — price pivot extremes compared to kernel estimate at same bar, more robust than oscillator slope divergence
◆ Divergence pre-signal markers — semi-transparent diamonds show developing divergence conditions before the full signal fires
🏷 Four regime-gated setup types — Setup A (Flow Break, trend only), Setup B (Kernel Pullback, trend only), Setup C (Z-Score Fade, balance only), Setup D (Divergence Reversal, balance or opposing trend)
📡 Bandwidth shift detection — alerts when adaptive bandwidth changes by 12%+ in a single bar, signaling a volatility regime transition
🎨 Three visual modes — Bands (channel display), Line (clean kernel only), Flow (dual-kernel spread visualization)
📊 Optional bar coloring — bars colored by kernel bias direction, off by default for chart cleanliness
🧠 7-layer confluence engine — Regime/Spread, Z-Score/Positioning, HTF Bias, Volume, Rejection Candle, Non-Chop, and Setup Type scored every bar
📊 16-row live dashboard — Regime, Kernel Type, Bandwidth h, Flow Spread, Z-Score, σ Width, Divergence, HTF Bias, Chop Index, and Confluence scores updated in real time
🔔 6 alert conditions — long/short entry, chop warning, bull/bear divergence, bandwidth shift
⚙ Fully configurable — kernel type, lookback window, base bandwidth, adaptive scaling range, output EMA smoothing, fast kernel bandwidth multiplier, residual band multiplier and lookback, Z-Score fade minimum, ER and CI regime thresholds, divergence pivot length and cooldown, all four setup enables, HTF timeframe and EMAs, volume filter, session, SL/TP parameters, visual mode, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Kernel Engine
Kernel Type — Gaussian / Epanechnikov / Tricube. The weight function applied in the NW estimate
Lookback Window — the number of historical bars included in the kernel estimate (default: 40)
Base Bandwidth (h) — the base bandwidth parameter controlling effective kernel width (default: 6.0)
Adaptive Bandwidth (ATR percentile) — when on, scales h by ATR percentile rank (default: on)
ATR Length — lookback for the ATR calculation used in adaptive scaling (default: 14)
ATR Percentile Lookback — history window for ATR percentile rank (default: 100)
Adaptive Min Scale — minimum bandwidth multiplier in quiet markets (default: 0.80)
Adaptive Max Scale — maximum bandwidth multiplier in volatile markets (default: 1.25)
Output EMA Smooth — post-kernel EMA smoothing applied to both kernel outputs (default: 2)
Fast Kernel h Mult — bandwidth multiplier for the fast kernel relative to the slow (default: 0.55)
Residual Bands
Band Multiplier (σ) — number of residual standard deviations for the band boundaries (default: 1.0)
Residual σ Lookback — bars used to compute the residual standard deviation (default: 24)
Z-Score Min for Range Fade — minimum absolute Z-Score required for Setup C to fire (default: 1.35)
Regime & Divergence
Efficiency Ratio Length — ER lookback (default: 10)
ER Min (Trend) — minimum ER for trend classification (default: 0.32)
Choppiness Length — CI lookback (default: 14)
Chop — Stand Aside Above — CI threshold (default: 61.0)
Enable Pivot Divergence — toggle the divergence detection system
Divergence Pivot Length — bars on each side for pivot confirmation (default: 5)
Divergence Cooldown (bars) — minimum bars between divergence detections (default: 8)
Entries & Confluence
Setup A · Flow Break (trend) — toggle the trend band crossover setup
Setup B · Kernel Pullback — toggle the kernel touch pullback setup
Setup C · Z-Score Fade (balance) — toggle the balance mean-reversion setup
Setup D · Divergence Reversal — toggle the pivot divergence entry
Min Confluence Layers (of 7) — minimum score to fire a signal (default: 5)
Show Entry Signals — toggle signal triangles
Show Confluence Label — toggle the live B/S score label near the kernel line
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 6)
Filters
HTF Trend Filter / HTF Timeframe / HTF Fast / HTF Slow EMA — higher timeframe bias parameters (defaults: on / 60-minute / 21 / 55)
Volume Confirm / Min Volume vs Avg / Volume Avg Length — volume expansion gate (defaults: on / 1.05 / 20)
Session Filter / Active Session — trading hours restriction (default: off)
Exit Guidance
Show SL / TP Guides — toggle stop and target circles
SL Distance (xATR) — ATR buffer beyond the lower band and bar low minimum (default: 1.0)
TP Reward (R) — take profit as risk × R multiple (default: 2.5)
Display
Visual Mode — Bands / Line / Flow. Selects which kernel components are rendered
Fill Residual Bands — toggle the purple band fill between upper and lower bands
Color Bars by Bias — toggle optional bar coloring by kernel spread direction (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 bandwidth shift warnings
Kernel Line — purple for the slow kernel line and neutral band elements
Fast Kernel — cyan for the fast kernel line in Flow mode
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 (6 total)
Entry Alerts
PRISM Long — all conditions confirmed. Long signal fired across any of the four setup types
PRISM Short — all conditions confirmed. Short signal fired
State Alerts
PRISM Chop Warning — market has entered the Chop regime. All signals blocked — stand aside
PRISM Bull Divergence — bullish pivot divergence confirmed at the lower band. Setup D long conditions developing — watch for rejection candle
PRISM Bear Divergence — bearish pivot divergence confirmed at the upper band
PRISM Bandwidth Shift — adaptive bandwidth shifted 12%+ in one bar. Volatility regime transition in progress
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 :
Gaussian kernel — smoothest estimate, optimal for the normally-distributed noise of gold and forex price action
Lookback at 40 — sufficient history for a meaningful kernel estimate on intraday timeframes without excessive lag
Base bandwidth at 6.0 with adaptive scaling — allows the kernel to breathe with gold's characteristic alternation between tight ranges and explosive moves
Band Multiplier at 1.0σ — one standard deviation bands are sensitive to genuine residual extremes without requiring extreme extension
Z-Score minimum at 1.35 — approximately 82nd percentile of normal distribution — a meaningful but not excessive statistical stretch requirement
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Lookback to 25–30, reduce Base Bandwidth to 4.0–5.0, reduce Output EMA Smooth to 1, reduce Cooldown to 3, reduce TP to 2.0R
H4–Daily swing trading — increase Lookback to 60–80, increase Base Bandwidth to 8.0–12.0, increase ATR Percentile Lookback to 200, increase TP to 3.5–5.0R
Crypto (BTC, ETH) — increase Adaptive Max Scale to 1.40–1.50 for the wider volatility swings, consider Epanechnikov kernel for faster response to crypto's sharper price movements
Indices (NAS100, US30) — increase Z-Score minimum to 1.5–1.8 (indices can sustain higher Z-scores in trends before reverting), use session filter for cash market hours
More signals — lower Min Confluence to 4, reduce Z-Score minimum to 1.1, increase Base Bandwidth to produce wider bands that are touched more frequently
Fewer, highest-quality signals — raise Min Confluence to 6–7, increase Z-Score minimum to 1.6, reduce Fast Kernel multiplier to 0.45 for a slower fast kernel that only diverges from slow in strong trends
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🔬 Mathematically sophisticated traders — PRISM exposes the full statistical machinery of non-parametric kernel regression to traders who want more than a moving average but something grounded in rigorous statistical theory
📊 Band-based traders who struggle with Bollinger Bands — residual-based bands solve the core Bollinger Band problem: bands that widen dramatically in trends due to trend variance rather than noise variance. PRISM's bands measure only the noise
🎯 Divergence traders — the pivot-based kernel divergence system is the most robust divergence implementation in the AlphaX suite, comparing structural price pivots to the kernel's trend estimate rather than oscillator slopes
🧭 Regime-aware traders — like VECTOR, PRISM classifies the current market regime and selects the appropriate playbook automatically. Four distinct setup types cover trending, balanced, and reversal conditions
📈 Adaptive system traders — the adaptive bandwidth scaling means PRISM truly adapts to the current volatility environment without manual recalibration
🥇 Gold and forex intraday traders — the Gaussian kernel with adaptive scaling is particularly well-suited to gold's volatility patterns, and the default settings are calibrated for XAUUSD intraday conditions
🔀 Traders who use mean-reversion and trend-following simultaneously — PRISM's four setups cover both directions: momentum breaks and pullbacks in trends, fades and divergence reversals in balance. One indicator, complete market coverage across regimes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Kernel estimates, regime classification, divergence detection, and confluence scoring all finalize on confirmed bars
The kernel regression calculation requires all bars within the lookback window to produce its estimate. On charts with fewer bars than the Lookback Window setting, the kernel estimate may be imprecise during the warm-up period. Allow the chart to accumulate at least the full lookback period (default: 40 bars) before treating signals as reliable
Adaptive bandwidth scaling uses ATR percentile rank, which itself requires the ATR Percentile Lookback period to calibrate. On fresh chart loads, the adaptive scale may not reflect the full historical context until sufficient bars have accumulated
The divergence system compares to the most recently confirmed pivot high or low. On timeframes where pivots form infrequently (H4+), the prior pivot reference may be many bars old and the divergence comparison less temporally relevant. Reduce the divergence pivot length on higher timeframes for more frequent reference points
The bandwidth shift alert fires when the bandwidth changes by 12%+ between consecutive bars. On very fast timeframes with high ATR volatility, this threshold may be crossed frequently — increase the threshold or disable the bandwidth shift alert if this becomes excessive noise
Maximum 500 labels and 500 lines are rendered. The divergence markers and confluence labels count toward these 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 believe that the best price estimate is not an average of the past — it is a statistically optimal reconstruction of the price process itself. Indicador

[ 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. Indicador

[ A L P H A X ] MERIDIAN - Session Intelligence EngineAlphaX MERIDIAN — Session Intelligence Engine: Multi-Session Range Tracking, Prior Session Break & Retest, Opening Range Breakout, Meridian Bounce & 7-Layer Confluence Scoring
AlphaX MERIDIAN is a professional-grade session-based trading system built around the foundational truth that institutional price delivery is not random across the clock — it is organized by session. The Asian session defines the overnight range. London breaks it. New York confirms the direction or reverses it. Every major intraday move originates from one of three specific events: a break and retest of the prior session's high or low, a breakout of the opening range, or a pullback to the session's meridian equilibrium level. MERIDIAN detects all three in real time across all three global trading sessions, scores every potential entry through a 7-layer confluence engine, and fires signals only when session bias, VWAP positioning, HTF alignment, volume, and setup quality all confirm simultaneously. The result is a system that puts every trade in its correct session context — not just where price is, but which session it is in , what the prior session established , and where the institutional session bias currently sits . Designed for active traders across forex, gold, indices, and crypto on M1 through H1 timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 The Session Framework — Why Sessions Define Institutional Flow
Every liquid market is driven by three geographically separated groups of institutional participants operating in overlapping but distinct time windows: Asian banks and sovereign funds, European institutional desks and London market makers, and American institutional desks and New York banks. Each group has a characteristic trading behavior that shapes price during their active window.
Asian Session — The Range Builder:
During Asian hours, liquidity is thinner and price tends to consolidate or range within a defined high-low channel. The Asian session range represents the overnight consolidation — the zone where price equilibrates before the European open. The extremes of the Asian range are the first liquidity pools that London will target.
London Session — The Trend Initiator:
London is the world's most liquid trading session. European institutional desks frequently break the Asian range in the first hours of the London open — hunting the liquidity sitting above and below the overnight extremes before establishing the day's primary directional trend. The London opening range (the first N minutes of the session) frequently establishes the high or low of the day.
New York Session — The Confirmer or Reverser:
New York either confirms the London trend with continuation, or reverses the late-London move in the early New York hours. The London/NY overlap (typically 13:00–17:00 UTC) is the highest-volume period of the day and frequently produces the largest directional moves.
MERIDIAN is built around this three-session cycle. The prior session's high, low, and meridian are the key reference levels. The opening range of London or NY is the breakout reference. The session VWAP and meridian divide the current session into institutional premium (above) and discount (below). Every signal is evaluated in the context of which session it occurred in and what the prior session established.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏱ Session Tracking Engine
MERIDIAN runs a fully independent session tracking system for all three global sessions simultaneously, configurable to any timezone.
Session detection:
Each session is defined by a configurable start and end hour in the selected timezone (default: UTC). The session engine detects the active session on every bar and correctly handles overnight sessions (sessions that span midnight). When no configured session is active, the system enters an OFF state and session-based calculations pause.
Session-by-session OHLC tracking:
From the first bar of each session, MERIDIAN tracks the rolling high, low, and open of the session in real time. Every new bar within the session extends these values — the session high and low expand with price, and the session meridian recalculates continuously as the range develops.
Session transition logic:
When a session changes, the completed session's high, low, and meridian are stored as the prior session reference. These prior session values persist until the next completed session overwrites them — giving you continuous access to the most recently completed session's key levels at all times.
Session VWAP (Volume Weighted Average Price):
A true session-anchored VWAP is computed from the first bar of each session — cumulative volume-weighted price divided by cumulative volume since the session open. This produces the purest possible VWAP calculation anchored to the correct institutional reference point: the session's opening bar.
Session Meridian (Equilibrium):
The midpoint of the current session's high-low range — (session high + session low) / 2. This level is the MERIDIAN line, plotted as a purple dotted line on the chart. It represents the current session's equilibrium — above is institutional premium, below is institutional discount, relative to where the session has traded.
Current session box:
The full range of the active session is visualized as a lightly tinted box extending from the session start bar to the current bar. Asian session boxes are gray, London boxes yellow-green tinted, and New York boxes red-tinted — providing immediate visual session identification across the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 Prior Session Levels — The Institutional Reference Grid
The most important reference levels in intraday trading are the extremes established by the prior session. These are not arbitrary horizontal lines — they represent the boundaries of the range where an entire session's worth of institutional activity occurred. Breaking these levels is how one session's institutional participants establish control over the next session's price delivery.
Prior Session High (red dashed):
The highest price reached during the most recently completed session. This is the sell-side resistance level — the level above which bears were unable to sustain prices in the prior session. A close above this level in the current session is a significant break of prior institutional resistance.
Prior Session Low (yellow-green dashed):
The lowest price of the prior session. This is the buy-side support level — where buyers successfully defended price in the prior session. A close below this level represents a break of prior institutional support.
Prior Session Meridian (purple dotted):
The midpoint of the prior session's range. This level frequently acts as a magnet — price is drawn to the prior session's 50% level on pullbacks, retracements, and continuation moves. It represents the most-traded price zone of the prior session in range-position terms.
All three prior session levels are plotted as forward-extending lines covering the relevant history window. The prior session name (ASIAN / LONDON / NEW YORK) is displayed on the dashboard so you always know which session's levels you are referencing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Opening Range — The First N Minutes
The Opening Range (ORB) is one of the most consistently respected intraday reference structures across all liquid markets. It represents the range established in the first configurable number of minutes of the London or New York session (default: 30 minutes). Once the opening range is set, breakouts above and below its boundaries frequently produce the day's strongest directional moves.
How the opening range is built:
From the first bar of each London or New York session, MERIDIAN accumulates the highest high and lowest low across all bars that fall within the opening range time window. Once a bar falls outside the ORB time window, the range is locked — the ORB high and ORB low are fixed for the remainder of the session.
ORB visualization:
The completed opening range is rendered as an orange-tinted box on the chart, spanning from the first ORB bar to the last ORB bar. This box remains on the chart as a reference level for the session.
Dashboard ORB status:
The dashboard displays the ORB status as FORMING (while the range is still building) or SET (once locked), along with the exact ORB high and low prices. This gives you advance notice before the ORB is complete — you can watch it forming in real time and prepare for the Setup B breakout signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Session Bias — VWAP and Meridian Positioning
MERIDIAN defines the current session's directional bias through two independent price positioning checks that together create a clear institutional bias reading.
VWAP bias:
Price above the session VWAP indicates institutional net-buying for the session — the volume-weighted average of all transactions favors the bull side. Price below indicates net-selling. The VWAP bias is updated on every bar as new volume flows in.
Meridian bias:
Price above the session meridian (the session range midpoint) means price is in the upper, premium half of the session range. Price below is in the discount half.
Combined session bias:
sessBull — price is both above VWAP and above the session meridian. Both the volume-weighted and range-position measures confirm bullish institutional bias
sessBear — price is both below VWAP and below the session meridian. Both measures confirm bearish institutional bias
This combined bias is the most important single dashboard reading in MERIDIAN. A bullish session bias means the institutional context favors long entries. A bearish session bias favors shorts. Entries against the combined session bias carry the highest failure rate of any MERIDIAN setup.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Three Setup Types — A, B, and C
MERIDIAN fires signals through three distinct setup configurations, each representing a different institutional entry scenario anchored to session-based reference levels. All three can be enabled simultaneously.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup A — Prior Session Break & Retest
The most institutionally significant setup type. Fires when:
The current session's price closes above the prior session high (long) or below the prior session low (short) — the structural break of the prior session's boundary
Within 30 bars of the break, price pulls back to within ATR tolerance of the broken level
A qualifying rejection candle forms at the retest — confirming the broken level has flipped from resistance to support (long) or support to resistance (short)
Why prior session break and retest is the highest-quality setup: When London breaks the Asian high and then retests it, the break has been confirmed as a genuine institutional breakout rather than a wick spike. The retest at the prior session level provides the optimal entry price — buying exactly at the prior resistance that has now become support, with the stop below the level and the continuation target above. This is the institutional "break, retest, continue" sequence that produces the cleanest risk/reward in session-based trading.
Break detection markers: Small semi-transparent circles appear above (prior high break) or below (prior low break) the bar that closes through the prior session boundary — alerting you that a pending retest setup is now active. The system tracks the pending retest for up to 30 bars. If no qualifying retest occurs within that window, the pending state expires.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup B — Opening Range Breakout
The high-momentum setup type. Fires when:
The opening range has been fully set (ORB locked after the opening range period has elapsed)
Price closes above the ORB high (long) or below the ORB low (short) — the first close-based break of the opening range boundary
The close is on the correct side of the prior bar's close relative to the ORB level — confirming the break is not a wick through and back
A qualifying bull or bear rejection candle (minimum 50% wick ratio) confirms the breakout bar's directional commitment
Why the ORB breakout is a high-conviction institutional signal: The opening range represents the indecision of the first N minutes of a session — the market testing price levels before committing to a direction. The first body close beyond the ORB boundary is the signal that the indecision has resolved and institutional order flow has committed to a direction. The rejection candle requirement ensures the break was not passive drift but a genuine directional conviction bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup C — Meridian Bounce
The continuation and trend-following setup type. Fires when:
The session bias is fully established (sessBull for long, sessBear for short)
Price pulls back to within ATR tolerance of the session meridian (the session range midpoint)
A qualifying rejection candle forms — confirming the meridian held and price is rejecting back in the bias direction
Why the meridian bounce is a reliable continuation entry: In a trending session where price is above VWAP and above the session midpoint (sessBull), the meridian represents the natural pullback target — the highest-volume price zone within the session's lower half. Institutional buyers who missed the initial move use meridian pullbacks to add to positions. The rejection at the meridian in a sessBull environment is the continuation entry that offers the tightest stop (just below the meridian) with the continuation toward the session high as the target.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 7-Layer Confluence Engine
Every potential entry across all three setup types is scored through the same 7-layer confluence engine. The minimum default is 5 of 7.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — Session Bias (Combined)
Awards 1 point when the combined session bias (sessBull for long, sessBear for short) agrees with the signal direction. This requires both VWAP positioning and meridian positioning to be aligned — the strongest single session-level directional indicator available.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — VWAP Positioning
Awards 1 point when price is on the correct side of the session VWAP — above for longs, below for shorts. The VWAP layer is available independently from the combined session bias layer. On bars where price is above VWAP but below the meridian (or vice versa), the session bias may not score but the VWAP layer still contributes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — HTF Bias
Awards 1 point when the higher timeframe EMA structure (default: 60-minute, 21/55 EMA pair) agrees with the signal direction. Ensures the session-level setup is aligned with the macro institutional flow. A session setup against the HTF trend carries the highest failure rate of any setup type.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — Trading Session Enabled
Awards 1 point when the current session is one of the configured tradeable sessions (London and NY on by default, Asian off by default). This layer enforces session selectivity — preventing signals from firing during sessions you have chosen not to trade. If the Asian session is disabled for trading, Asian session signals are blocked at this layer regardless of how strong the other confluences are.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — Volume Expansion
Awards 1 point when the current bar's volume exceeds the volume moving average by the configured minimum multiplier (default: 1.1×). Confirms that the rejection candle or breakout bar has genuine institutional participation behind it — not a low-volume drift through a reference level.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 6 — Rejection Candle Quality
Awards 1 point when a qualifying bull or bear rejection candle is present. Bull rejection requires a bullish close with the close-to-low distance exceeding 50% of the bar range. Bear rejection requires a bearish close with the high-to-close distance exceeding 50%. This layer ensures the reference level produced a visible, decisive price rejection — not a passive touch.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 7 — Setup Type Trigger
Awards 1 point when any of the three enabled setup types fires on the current bar — a prior session retest (Setup A), an ORB breakout (Setup B), or a meridian bounce (Setup C). This layer is both a confluence score contributor and a hard prerequisite — no signal can fire without at least one setup type triggering.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕯 Rejection Candle Confirmation
All three setup types require a qualifying rejection candle for a signal to fire. Two candle types qualify:
Bull rejection: A bullish close (close above open) where the distance from close to bar low exceeds 50% of the total bar range. The bar closed in its upper half — buyers dominated and rejected the level being tested.
Bear rejection: A bearish close where the distance from bar high to close exceeds 50% of the total range. The bar closed in its lower half — sellers dominated the rejection.
The same 50% wick threshold applies across all three setup types, ensuring every MERIDIAN signal has a consistent, minimum candle quality standard regardless of which session event triggered it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Session-Anchored Stop Loss Placement
MERIDIAN places the stop loss at the most conservative of several session-based reference levels, plus an ATR buffer.
For bull signals: The stop is placed at the minimum of the current bar's low, the prior session high (the retested level), the ORB low (if applicable), and the session meridian — whichever is lowest — minus the configured ATR buffer (default: 1.0× ATR). This ensures the stop is beyond the level that would structurally invalidate the signal.
For bear signals: The stop is at the maximum of the current bar's high, the prior session low, the ORB high, and the session meridian, plus the ATR buffer.
Dynamic TP target: The take profit is computed as `risk × R multiple` (default: 2.5R) from the entry close — adapting to the actual stop distance rather than using a fixed ATR projection. On entries where the session reference stop is very close to entry, this naturally produces a tighter target; on wider stops, the target scales accordingly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 16-row real-time dashboard displays the complete internal state across five sections.
SESSION
Active — the currently active session: ASIAN, LONDON, NEW YORK, or OFF
VWAP Bias — ▲ ABOVE or ▼ BELOW, showing whether price is above or below the session VWAP. Color-coded yellow-green and red
Meridian — the exact price of the current session's equilibrium midpoint (session high + low / 2), color-coded purple
PRIOR SESSION
Prior Sess — which session completed most recently: ASIAN, LONDON, or NEW YORK
Prior Hi / Lo — the exact high and low of the prior session displayed as a price pair. These are the Setup A reference levels
OPENING RANGE
ORB Status — FORMING (still within the ORB time window) or SET (locked, breakout mode active). Orange when SET
ORB Hi / Lo — the exact opening range high and low prices once the range is locked
FILTERS
HTF Bias — higher timeframe EMA alignment: ▲ BULL, ▼ BEAR, or — FLAT
CONFLUENCE
Bull Score — live 0–7 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 active sessions, a small label near the session box displays B x/7 · S x/7 in real time, updated every bar — identical to ANCHOR, PIVOT, and the other systems in the AlphaX suite.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Current Session Box — a lightly tinted box covering the full range of the active session from its first bar to the current bar. Gray for Asian, yellow-green tinted for London, red tinted for New York
Session VWAP (cyan) — the volume-weighted average price anchored to the session start, plotted as a solid cyan line. The most important intraday reference for institutional fair value
Session Meridian (purple dots) — the session range midpoint (50% of the current session's high-low range), continuously updated
Prior Session High (red dashed) — the completed prior session's high. Setup A reference level for long setups
Prior Session Low (yellow-green dashed) — the prior session's low. Setup A reference level for short setups
Prior Session Meridian (purple dotted) — the midpoint of the prior session's range
Opening Range Box (orange tinted) — the locked ORB from the session start to the end of the opening range period. Setup B reference box
● Break markers (semi-transparent circles) — appear above the bar (prior high break) or below (prior low break) at the moment of the structural break, signaling a pending retest opportunity
▲ Triangle (below bar, yellow-green) — long signal. All conditions confirmed across any of the three setup types
▼ Triangle (above bar, red) — short signal
Live confluence label — B x/7 · S x/7 near the current session range on the last bar
SL Guide (red dotted circles) — session-anchored stop loss reference level
TP Guide (yellow-green dotted circles) — dynamically computed reward target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX MERIDIAN — Step by Step
Step 1 — Begin Each Session with a Reference Review
At the start of each London or NY session, check the dashboard for Prior Hi / Lo — these are your key Setup A reference levels for the session
Note the ORB Status — during the first 30 minutes of London or NY, watch the ORB forming. The ORB Hi / Lo will be your Setup B breakout reference once SET
Check HTF Bias — does the higher timeframe trend favor longs or shorts? This is the filter that determines which direction's signals you prioritize
Step 2 — Monitor Session Bias Development
As the session opens and develops, watch the VWAP Bias and Meridian rows on the dashboard. When both show ▲ ABOVE, the session bias is fully bullish — prioritize long setups. Both ▼ BELOW = prioritize shorts
Watch the live B/S score label near the session box. When the bull or bear score approaches the threshold, a signal may be imminent
Step 3 — Enter on the MERIDIAN Signal
A ▲ triangle below the bar confirms one of the three setup types has fired with sufficient confluence
Read the signal context: did price just retest the prior session high? Break the ORB? Bounce from the session meridian? The setup type determines which level your stop references
The SL and TP guides appear as dotted circles. The SL is the session-anchored structural stop. The TP is the R-multiple target
Setup A retests are the highest-quality entries — the prior session level has been validated as the new support/resistance. Setup B ORB breaks are highest-momentum. Setup C meridian bounces are best in strongly trending sessions
Step 4 — Manage Within the Session Context
Watch the session VWAP as the trade develops — price returning to VWAP during a long trade is a warning sign that session bias may be weakening
If the session meridian switches sides (price moves from above to below the session midpoint), the session bias has flipped. Consider tightening the stop or taking partial profit
Session transitions are exits: if London closes while you are in a trade, the session reference levels will update to New York levels on the NY open. Reassess the position in the context of the new session
Step 5 — End of Session Reset
At session end, the current session's high, low, and meridian become the prior session reference for the next session
The ORB resets for the new session's opening
Review the completed session's range and meridian before the next session opens — these become your Setup A reference levels going forward
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Session shows OFF — no active session is being tracked. All signals are blocked and session reference levels may be stale
Session bias is split — VWAP and Meridian disagree — price above VWAP but below the session meridian (or vice versa) means the session has no clear institutional direction. The combined session bias layer will not score, reducing confluence quality
HTF Bias opposes the session bias — a bullish session bias against a bearish HTF means the current session is moving counter to the macro trend. These setups carry significantly higher reversal risk
ORB Status shows FORMING — the opening range has not been locked. No Setup B signals can fire. Do not anticipate the ORB breakout before the range is set
Prior Hi / Lo shows — on the dashboard — no completed prior session data is available. Setup A setups cannot fire. This occurs at the start of the first session after the chart loads
Confluence score is at minimum threshold exactly — when the score is at exactly the minimum and one or two filters are failing, the setup is borderline. Reduce position size or wait for a higher-quality signal
Multiple setup types firing simultaneously in the same direction — this is usually a positive signal, but verify the session context. If the ORB breakout, prior session retest, and meridian bounce are all triggering at the same time in the same bar, one of them is likely being triggered by coincidental price overlap rather than genuine session mechanics
The ideal MERIDIAN setup:
London or NY session active with tradeSessOk confirmed
HTF Bias and Session Bias both aligned in the same direction
Prior session high or low recently broken (Setup A pending) OR ORB locked and ready for Setup B
Price returning to the reference level with VWAP and Meridian both on the correct side
Strong rejection candle with volume above average
Confluence score at 6/7 or 7/7
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🌐 Three-session tracking engine — Asian, London, and New York sessions tracked simultaneously with configurable start/end hours and timezone support
📊 Session-anchored VWAP — true cumulative VWAP computed from the first bar of each session, providing the most accurate institutional fair value reference per session
📍 Prior session levels — high, low, and meridian of the most recently completed session maintained and displayed as dashed reference lines
📦 Opening Range Box — first N minutes of London/NY captured as an orange ORB box with live FORMING / SET status. Breakout reference for Setup B
⚖ Session Meridian (Equilibrium) — the session range midpoint plotted as a purple dotted line, the equilibrium level for Setup C bounces and the combined session bias divider
🏷 Three setup types — Setup A (Prior Session Break & Retest), Setup B (Opening Range Breakout), Setup C (Meridian Bounce) — all configurable independently
🔮 Pending retest tracking — 30-bar retest window after every prior session break, with break circle markers at the moment of the structural break
🧠 7-layer confluence engine — Session Bias, VWAP Position, HTF Bias, Trading Session Gate, Volume Expansion, Rejection Candle, and Setup Type Trigger scored independently every bar
📊 Live confluence label near the session box — B x/7 · S x/7 updating in real time on the current bar
🎯 Session-anchored stop loss — stop placed at the most conservative of multiple session reference levels, not a fixed ATR distance
💹 Dynamic R-multiple TP target — computed as risk × R multiple, adapting to the actual stop distance
📡 HTF EMA bias filter — dual-condition higher timeframe alignment (EMA crossover + price confirmation)
⏱ Session trading filter — independently enable or disable signal firing for each of the three sessions
🎨 Session-coded color system — session box tints differentiate Asian (gray), London (yellow-green), and New York (red) at a glance
📊 16-row live dashboard — Session, Prior Session, Opening Range, Filters, and Confluence sections updated in real time
🔔 6 alert conditions — long/short entry, prior high/low break, ORB long/short breakout
⚙ Fully configurable — all session hours, timezone, ORB duration, setup type enables, confluence minimum, HTF timeframe and EMAs, volume filter, session trading gates, SL buffer, R-multiple target, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Session Engine
Session Timezone — UTC / America/New_York / Europe/London / Asia/Tokyo. Set to your preferred reference timezone
Track Asian Session — toggle Asian session tracking on or off
Asian Start / End (hour) — hour boundaries for the Asian session in the selected timezone (defaults: 0 / 8)
Track London Session — toggle London session tracking
London Start / End (hour) — hour boundaries for London (defaults: 8 / 13)
Track NY Session — toggle New York session tracking
NY Start / End (hour) — hour boundaries for NY (defaults: 13 / 21)
Opening Range (mins) — the number of minutes from the session open used to build the ORB (default: 30)
Entries & Confluence
Setup A · Prior Session Break & Retest — toggle the break-and-retest setup type
Setup B · Opening Range Breakout — toggle the ORB breakout setup type
Setup C · Meridian Bounce — toggle the session equilibrium bounce setup type
Retest Tolerance (xATR) — maximum ATR distance from the reference level that still qualifies as a retest (default: 0.35)
Min Confluence Layers (of 7) — minimum score to fire a signal (default: 5)
Show Entry Signals — toggle signal triangles
Show Confluence Label — toggle the live B/S score label near the session box
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 6)
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)
Volume Confirm — when on, entry volume must exceed the average by the minimum multiplier
Min Volume vs Avg — minimum volume ratio (default: 1.1)
Volume Avg Length — SMA length for volume baseline (default: 20)
Trade London Session — when on, signals can fire during London hours
Trade NY Session — when on, signals can fire during NY hours
Trade Asian Session — when on, signals can fire during Asian hours (default: off — Asian sessions typically produce lower-quality setups)
Exit Guidance
ATR Length — ATR calculation lookback (default: 14)
Show SL / TP Guides — toggle stop and target dotted circle plots
SL Distance (xATR) — ATR buffer added beyond the session-anchored stop reference (default: 1.0)
TP Reward (R) — take profit as a multiple of the actual risk from entry to stop (default: 2.5)
Display
Show Current Session Box — toggle the session range box
Show Prior Session H/L — toggle prior session high, low, and meridian dashed lines
Show Session VWAP — toggle the session VWAP line
Show Opening Range Box — toggle the ORB orange box
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 all bullish signals and London session elements
Bear / Bear Bright — red family for all bearish signals and NY session elements
Opening Range — orange for ORB box and status indicators
Meridian / EQ — purple for session meridian, prior session meridian, and equilibrium elements
Session VWAP — cyan for the session VWAP line
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 (6 total)
Entry Alerts
Meridian Long — all conditions confirmed. Long signal fired
Meridian Short — all conditions confirmed. Short signal fired
Structure Alerts
Meridian Break Prior High — price has closed above the prior session high. Setup A long retest window is now active — watch for the retest
Meridian Break Prior Low — price has closed below the prior session low. Setup A short retest window is now active
Opening Range Alerts
Meridian ORB Long — opening range broken to the upside with all setup and confluence conditions confirmed
Meridian ORB Short — opening range broken to the downside with all conditions confirmed
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 indices on M5–M15 in UTC timezone:
Session hours in UTC — gold and forex are most active during London (08:00–13:00) and NY (13:00–21:00) hours. Asian session trading is disabled by default for clean intraday setups
ORB at 30 minutes — the classic institutional opening range. The first 30 minutes of London and NY frequently establish the session's directional commitment
Retest tolerance at 0.35× ATR — sensitive enough to catch genuine retests on M5–M15 without requiring price to tick exactly at the level
TP Reward at 2.5R — session-based setups on gold and forex typically produce moves sufficient to achieve 2.5R when the session bias is correctly identified
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Cooldown to 3, reduce SL Buffer to 0.5, reduce TP Reward to 1.5–2.0, use tighter Retest Tolerance at 0.2
H1 intraday swing — increase ORB to 60 minutes (capturing the first full H1 candle), increase Retest Tolerance to 0.5, increase TP Reward to 3.5–4.0, set HTF to H4 or Daily
Crypto (BTC, ETH) — use UTC timezone, enable all three sessions (crypto trades 24/7), reduce retest tolerance to 0.25 for the narrower wicks typical of crypto support/resistance retests
Indices (NAS100, US30) — focus exclusively on NY session (13:30–20:00 UTC for US equity cash session), disable London trading for equity index instruments, tighten ORB to 15 minutes (the US equity opening range is frequently set in the first 15 minutes)
More signals — lower Min Confluence to 4, enable Asian trading, disable volume filter
Highest-quality only — raise Min Confluence to 6–7, enable only Setup A and B (disable meridian bounce), require London and NY only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
⏱ Session traders and market structure players — MERIDIAN is the definitive session intelligence system. Every reference level, every bias indicator, and every signal type is anchored to the session clock
🥇 Gold (XAUUSD) and forex intraday traders — the three-session framework is most powerful on instruments where London and New York session transitions drive the most significant intraday moves. Default settings are calibrated for gold and major forex pairs
📊 Opening range traders — the ORB system provides a complete, rules-based opening range breakout framework with confluence scoring, volume confirmation, and rejection candle quality filtering
🎯 Break-and-retest traders — Setup A is the quantitative implementation of the prior session break and retest — the most reliable institutional intraday pattern across all liquid markets
🧠 Traders who use VWAP as a primary reference — the session-anchored VWAP and the VWAP-based bias scoring system make MERIDIAN the ideal companion for any VWAP-centric trading approach
📈 Traders who want session context on every trade — every signal label, every dashboard row, and every reference level in MERIDIAN tells you exactly where you are in the session cycle and what the institutional context is
⚠ Traders who struggle with time-of-day discipline — the session trading gates (enable/disable individual sessions) enforce time-of-day discipline automatically. If you do not trade the Asian session, disable it and no Asian signals will ever appear
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Session state, VWAP, meridian, ORB values, and confluence scoring all finalize on confirmed bars only
The session boxes and prior session lines are redrawn on the last bar only for chart performance. On very fast timeframes with long chart history, this redraw happens on every new bar's render — this is normal behavior for last-bar-only visual updates
The VWAP is a true session-anchored VWAP — it resets at each session's first bar and accumulates correctly through the entire session. It is not a daily VWAP or a rolling VWAP
The prior session data updates at session transitions. On the very first session after the chart loads, no prior session data may be available — the Prior Hi / Lo dashboard rows will show — until the first session completes
The 30-bar retest window for Setup A (prior session break and retest) starts from the bar of the break. If no retest occurs within 30 bars, the pending retest state expires. On slower timeframes (H1), 30 bars may cover many hours — consider reducing the window or accepting that H1 retests sometimes take longer to develop
Maximum 500 labels, 500 lines, and 50 boxes are rendered. With three sessions each potentially drawing boxes and lines, the limit is practically sufficient for standard chart history. On very long chart histories on very fast timeframes, the oldest visual elements may be removed by TradingView's rendering limits
The session timezone setting must match the timezone in which you want session boundaries defined. UTC is the default and recommended for instruments that trade globally. For US equity index traders, America/New_York may be more intuitive
The indicator does not connect to any broker or account — the dashboard and signals are purely analytical
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 market tells a different story in every session — and who want a system that reads each chapter in real time. Indicador

NLMS Volatility Trail [BackQuant]NLMS Volatility Trail
Overview
NLMS Volatility Trail is an adaptive trend-following overlay that combines a machine-learning style adaptive filter with a volatility-based trailing structure. It is built around the Normalized Least Mean Squares (NLMS) algorithm, then converts that adaptive estimate into an ATR-based trailing line designed to follow directional regimes while filtering out minor noise.
The indicator has two core layers:
An NLMS adaptive filter , which learns a dynamic price estimate from prior bars.
An ATR volatility trail , which converts that learned estimate into a step-like directional trailing structure.
The goal is to produce a trend line that is more adaptive than a traditional moving average and more structured than a raw adaptive filter. The NLMS engine learns the underlying price path, while the ATR trail adds volatility-aware confirmation so trend shifts only occur when the adaptive estimate moves meaningfully.
Core idea
Most trend filters use fixed smoothing rules. An EMA, SMA, WMA, or HMA always applies the same mathematical weighting scheme regardless of whether the market is trending, ranging, expanding, or compressing.
NLMS is different. It continuously updates its internal weights based on prediction error.
This means the filter is not just averaging price. It is constantly asking:
How well did the previous weighting structure predict the current bar?
How large was the error?
How should the weights adjust to reduce future error?
The second layer then takes that adaptive estimate and applies an ATR-based trailing mechanism around it. This creates a volatility-adjusted trend trail that reacts to confirmed shifts while ignoring smaller movements that do not exceed the range structure.
What NLMS is
NLMS stands for Normalized Least Mean Squares . It is an adaptive filtering algorithm from digital signal processing. It is closely related to the original LMS algorithm developed by Bernard Widrow and Ted Hoff, which became one of the foundational online learning methods used in adaptive systems.
Adaptive filters have historically been used in:
Noise cancellation
Echo cancellation
Telecommunications
Radar and sonar processing
Signal prediction
Control systems
The basic purpose is to estimate or predict a signal while continuously adapting to changing conditions.
In trading terms, this indicator uses NLMS to build a learned estimate of price from prior bars.
How the NLMS filter works
The filter uses a set of historical inputs called taps .
If taps = 72, the model uses the previous 72 bars:
source
source
source
...
source
Each tap has a learned weight.
The prediction is calculated as:
prediction = w1 × source + w2 × source + ... + wM × source
The filter then compares the prediction to the actual current source:
error = source - prediction
That error drives the weight update.
If the prediction was poor, the weights adjust more.
If the prediction was accurate, the weights adjust less.
This creates an adaptive estimate that evolves with market behavior.
Why it is normalized
The normal LMS algorithm updates weights based on the raw input and prediction error. The issue is that if the input signal becomes large or volatile, updates can become unstable.
NLMS solves this by dividing the update by the input power:
power = sum(source ²)
The update becomes:
w = w + (μ / (ε + power)) × error × input
This normalization makes the learning process more stable across different volatility environments.
When the input power is high:
Updates are scaled down.
The filter avoids overreacting.
When the input power is low:
Updates are allowed to remain meaningful.
This is why NLMS is better suited to markets than a basic adaptive filter. Markets constantly shift between quiet and volatile regimes.
Weight initialization
The script initializes all weights equally:
weight = 1 / M
This means the filter starts with an SMA-like prior. Before learning begins, every historical bar contributes equally.
Over time, the filter adapts away from that equal-weight baseline and learns its own weighting structure.
Inputs that control the NLMS engine
Filter Taps (M)
Controls how many historical bars the model learns from.
Higher taps:
More memory
Smoother adaptive estimate
Slower response to regime change
Lower taps:
Less memory
Faster reaction
More noise sensitivity
Step Size (μ)
Controls the learning rate.
Lower μ:
Slower learning
Smoother output
More stable
Higher μ:
Faster learning
More responsive
Can become noisy if too aggressive
This is one of the most important settings. It controls how quickly the model changes its internal weights.
Regularization (ε)
Prevents instability when input power is very low.
It acts as a stabilizer in the denominator:
ε + power
Higher values make updates more conservative.
Lower values allow stronger adaptation but can become less stable in quiet conditions.
From adaptive filter to volatility trail
The raw NLMS output is not plotted directly as the main trend line. Instead, it is passed into a volatility trailing structure.
The script builds an ATR band around the NLMS estimate:
Upper band = NLMS output + ATR × factor
Lower band = NLMS output - ATR × factor
Then it creates a trailing value that only updates when the NLMS band structure forces it to move.
This creates a trail that behaves similarly to a volatility stop, but the center is not price or hl2. It is the learned NLMS estimate .
ATR volatility trail logic
The trail starts from the NLMS output, then carries forward its previous value:
nlmsAtr := previous nlmsAtr
Then:
If lower band rises above the trail, the trail moves up.
If upper band falls below the trail, the trail moves down.
This creates a directional trailing structure:
In bullish regimes, the trail ratchets upward.
In bearish regimes, the trail ratchets downward.
It filters out small movements because price must move enough relative to ATR and the adaptive estimate to change the trail direction.
Why combine NLMS with ATR
NLMS alone gives an adaptive estimate, but it can still wiggle as the model learns.
ATR alone gives volatility structure, but it is usually tied to raw price and fixed smoothing.
Combining them gives:
Adaptive intelligence from NLMS.
Volatility confirmation from ATR.
Cleaner trend state transitions.
Less dependence on fixed moving-average assumptions.
The NLMS model learns the underlying price behavior, while ATR decides whether movement is large enough to matter.
Trend direction
Trend flips are detected from the trail itself:
Bullish when nlmsAtr crosses above its previous value.
Bearish when nlmsAtr crosses below its previous value.
This means signals are generated when the volatility trail changes direction, not when price simply crosses the line.
That is important because:
The trail must structurally move.
The signal is tied to confirmed trail direction.
Noise around the line does not automatically create a flip.
Visual design
The indicator includes several visual layers.
Main trail line
The central plotted line is the NLMS ATR trail. It changes color based on the current trend state:
Green for bullish trail direction.
Red for bearish trail direction.
Gray before a trend state is established.
Gradient fill
The script fills the space between price and the trail:
If price is above the trail, bullish fill is shown.
If price is below the trail, bearish fill is shown.
The fill is stronger near the trail and fades toward price, making the trail feel like the active structural reference.
Trail glow
A soft glow is drawn around the trail using a small ATR offset:
glow = ATR(14) × 0.06
This highlights the trail visually without cluttering the chart.
Trend candles
Candles are colored by trend state:
Bullish trend = bullish candles.
Bearish trend = bearish candles.
This allows the script to function as a complete regime overlay.
How to interpret the indicator
Bullish state
A bullish state occurs when the NLMS volatility trail turns upward.
This suggests:
The adaptive filter is shifting higher.
The ATR trail has confirmed upward structure.
Trend pressure has turned bullish.
Bearish state
A bearish state occurs when the NLMS volatility trail turns downward.
This suggests:
The adaptive estimate is shifting lower.
The volatility trail has confirmed downside structure.
Trend pressure has turned bearish.
Price above the trail
Generally indicates bullish structure.
Price below the trail
Generally indicates bearish structure.
But the most important signal is the direction of the trail itself, not every price touch.
How to use it in practice
1) Trend following
Use the trail direction as the primary bias:
Favor longs when the trail is bullish.
Favor shorts when the trail is bearish.
2) Dynamic support/resistance
The trail can act like a dynamic structural level:
In uptrends, pullbacks toward the trail can act as support.
In downtrends, rallies toward the trail can act as resistance.
3) Trade management
The trail can be used as:
A trailing stop guide.
A regime invalidation level.
A trend continuation reference.
4) Regime filtering
Because the line adapts using NLMS and only flips when the volatility trail turns, it can be used to filter other entries:
Take only long setups during bullish trail regimes.
Take only short setups during bearish trail regimes.
Avoid countertrend trades when the trail is strongly directional.
Difference from normal Supertrend or ATR trails
A normal ATR trail is usually built directly from price or hl2.
This indicator is different because the trail is built around an adaptive learned estimate.
That means:
The centerline is not raw price.
It is not a fixed moving average.
It is a continuously learned NLMS estimate.
So the trail has a different character:
More adaptive than a standard moving average trail.
More stable than a raw price-based ATR stop.
More responsive to changing market structure than fixed filters.
Difference from the NLMS Adaptive Trend Filter
The NLMS Adaptive Trend Filter plots the learned estimate directly and reads trend from its slope.
NLMS Volatility Trail goes one step further:
It uses the learned estimate as the base.
Then wraps it with ATR structure.
Then turns that into a trailing regime line.
So this version is more structure-oriented and better suited for trailing trend behavior.
Parameter tuning
Taps
Use higher taps for smoother trend structure.
Use lower taps for faster adaptation.
Step Size
Use lower step size for stability.
Use higher step size for responsiveness.
Regularization
Use higher regularization when the filter feels unstable.
Use lower regularization when the filter is too sluggish.
ATR Period
Controls volatility estimate:
Shorter = more reactive trail.
Longer = smoother trail.
ATR Factor
Controls band width:
Higher factor = wider trail, fewer flips.
Lower factor = tighter trail, more flips.
Strengths
Combines adaptive filtering with volatility trailing logic.
Learns from market structure instead of using fixed weights.
Uses ATR to reduce noise and confirm meaningful movement.
Good for trend following and trailing stop frameworks.
Visually clean with gradient fill and candle coloring.
Limitations
Still reactive, not predictive.
Can lag during violent reversals.
High learning rates may create noise.
Low ATR factors may cause whipsaws.
Requires tuning for timeframe and asset volatility.
Summary
NLMS Volatility Trail combines an adaptive NLMS predictor with an ATR-based trailing structure. The NLMS layer continuously learns a dynamic estimate of price from historical bars, while the ATR trail converts that estimate into a cleaner directional regime line. This makes the indicator more adaptive than a traditional moving average and more structured than a raw adaptive filter. It is best used as a trend-following overlay, dynamic support/resistance guide, and volatility-aware trailing framework.
Indicador
