Nonparametric Relative Momentum [BackQuant]Nonparametric Relative Momentum
Overview
Nonparametric Relative Momentum is a percentile-rank oscillator that measures where the current price or momentum observation sits relative to its own recent empirical history.
Unlike conventional momentum oscillators that transform price using fixed arithmetic relationships, this indicator uses rank statistics . The current observation is compared directly against the previous values in a rolling window and converted into a percentile score from 0 to 100.
The result answers a simple question:
How extreme is the current observation relative to what this market has actually done recently?
Two calculation modes are available:
Price ranks the selected price source directly.
Momentum first measures price change across a configurable horizon, then ranks that momentum against its own recent history.
The oscillator also includes:
Mid-rank handling for tied observations.
Optional output smoothing.
An EMA signal line.
Configurable overbought and oversold zones.
Stepped intensity colouring as the rank becomes more extreme.
Main-chart candle colouring from the 50 midline regime.
Alerts for midline, extreme-zone and signal-line crossings.
Why “nonparametric”?
In statistics, a parametric method generally assumes that data can be described by a particular distribution or by parameters associated with that distribution.
A nonparametric method does not require the same distributional assumption.
Percentile ranks are a classic example.
The oscillator does not need to assume that recent price changes are:
Normally distributed.
Symmetric.
Constant in volatility.
Characterised by a stable mean and standard deviation.
Instead, it works directly from the ordering of the observed data.
If the current momentum observation is greater than almost every momentum observation in the recent window, it receives a high rank.
If it is lower than almost everything observed recently, it receives a low rank.
This makes the oscillator fundamentally relative to the market’s own recent empirical distribution.
Core calculation
The calculation occurs in three stages:
Select the series to rank.
Calculate its empirical percentile rank.
Optionally smooth that rank and calculate a signal average.
The selected ranking target depends on the Rank Target input.
Price Mode
In Price mode:
Target = Selected Price Source
The current source value is compared with the previous values in the Rank Window.
This answers:
Where is current price positioned within its recent price distribution?
A value near 100 means current price is above almost every observation in the comparison window.
A value near 0 means it is below almost every observation.
A value near 50 means it sits near the middle of its recent distribution.
Because Price mode ranks the price level itself, it behaves somewhat like a stochastic or price-position oscillator, although the calculation is based on empirical ranking rather than highest-lowest range normalisation.
Momentum Mode
Momentum mode first calculates:
Momentum = Source - Source
This measures the absolute price change across the selected Momentum Length.
The resulting momentum series is then percentile-ranked over the Rank Window.
The oscillator therefore answers:
How strong is the current momentum observation compared with recent momentum observations?
This is different from asking whether price itself is historically high or low.
For example, price can be near a recent high while momentum has weakened considerably. In that situation:
Price mode may remain highly ranked.
Momentum mode may fall toward the centre or lower half of the distribution.
Conversely, price does not need to be at a long-term extreme for momentum to rank very highly if the current change is unusually strong relative to recent movements.
Why Momentum mode is different from traditional RSI
The standard Relative Strength Index developed by J. Welles Wilder compares smoothed positive and negative price changes.
Its calculation depends on the relative magnitude of average gains and average losses.
Nonparametric Relative Momentum does not use that formula.
Instead:
A momentum observation is calculated.
That observation is ranked against its own historical sample.
For this reason, Momentum mode can be thought of as a rank-based relative momentum oscillator .
Both traditional RSI and this oscillator are bounded between 0 and 100, but the meaning of those values is different.
For example:
RSI = 90
means the balance of smoothed gains versus losses has produced an RSI reading of 90.
Nonparametric Relative Momentum = 90
means the current momentum observation ranks around the upper end of its recent empirical momentum distribution.
That distinction is important.
Percentile rank calculation
For each bar, the indicator compares the current target with every observation in the preceding Rank Window.
It counts:
How many previous values are below the current value.
How many previous values are exactly equal to it.
The percentile rank is then:
Rank = 100 × (Values Below + 0.5 × Equal Values) / Window Length
This produces an oscillator between 0 and 100.
Why use rank instead of magnitude?
Consider two markets.
Market A may normally move only 0.5% over the selected momentum horizon.
Market B may routinely move 5%.
A raw momentum threshold cannot be interpreted the same way for both.
Ranking changes the question.
Instead of asking:
How many points or percent did this market move?
the oscillator asks:
How unusual is this move relative to this market’s own recent behaviour?
This allows the same 0–100 framework to adapt naturally to different price scales and volatility regimes.
Mid-rank treatment of ties
A simple percentile implementation might count only observations strictly below the current value.
That can distort the result when repeated values occur.
This indicator uses mid-rank treatment .
If historical observations equal the current value, each tie contributes one half rather than being classified entirely above or below.
For example, suppose:
40% of observations are below the current value.
20% are exactly equal.
40% are above.
The mid-rank result is:
40 + 0.5 × 20 = 50
This places the tied observation at the centre of its equal-value group.
Mid-ranks are commonly used in rank-based statistics because they provide a more balanced treatment of ties.
Rank Window
The Rank Window determines how much historical data defines the current empirical distribution.
A shorter Rank Window:
Adapts quickly.
Responds strongly to recent regime changes.
Produces more rapid movement between percentiles.
Can create noisier extreme readings.
A longer Rank Window:
Builds the ranking from a larger sample.
Produces a more stable percentile estimate.
Makes extremes harder to reach.
Responds more slowly when market behaviour changes.
The window therefore controls the memory of the oscillator.
It does not smooth the underlying target directly. It changes the reference distribution against which the target is ranked.
Momentum Length
Momentum Length is used only when Rank Target is set to Momentum.
It controls the horizon over which price change is measured:
Momentum = Current Source - Source from Momentum Length bars ago
Shorter values:
Measure faster momentum.
React to shorter impulses.
Change direction more frequently.
Longer values:
Measure broader displacement.
Focus on more persistent movement.
Ignore more short-term fluctuation.
The Momentum Length and Rank Window perform separate roles.
Momentum Length determines what movement is measured.
Rank Window determines the historical sample against which that movement is judged.
Output Smoothing
The raw percentile rank can optionally be passed through an EMA.
A value of 1 leaves the rank effectively unsmoothed.
Higher values:
Reduce rapid rank fluctuations.
Create a smoother oscillator.
Reduce short-lived extreme readings.
Introduce additional lag.
The smoothing occurs after the percentile calculation.
It does not change how observations are ranked.
The 50 midline
The oscillator is centred around 50.
A value above 50 means the current observation ranks above the midpoint of its recent distribution.
A value below 50 means it ranks below the midpoint.
The interpretation depends on the selected mode.
Price mode above 50
Current price is positioned in the upper half of its recent price distribution.
Price mode below 50
Current price is positioned in the lower half.
Momentum mode above 50
Current momentum is stronger than roughly the middle of its recent momentum observations.
Momentum mode below 50
Current momentum is weaker relative to its recent distribution.
The indicator also uses this midline to colour main-chart candles:
Above or equal to 50 = bullish colour.
Below 50 = bearish colour.
This provides a simple relative-regime view on the price chart.
Percentile extremes
Because the oscillator represents rank rather than an unbounded magnitude, readings near 0 and 100 carry a straightforward interpretation.
Near 100
The current observation is greater than almost every value in the recent comparison window.
Near 0
The current observation is lower than almost every value.
These are empirical extremes.
They do not mean price or momentum cannot become more extreme.
A value near 100 can persist while a strong trend continues because new observations may repeatedly remain near the top of the evolving distribution.
Likewise, readings near 0 can persist during sustained downside momentum.
Overbought and Oversold zones
The default static zones are:
Overbought: 90–100
Oversold: 0–10
These are configurable.
The labels “overbought” and “oversold” describe statistical location, not guaranteed reversal conditions.
An overbought reading means:
The ranked observation is near the top of its recent empirical distribution.
An oversold reading means:
It is near the bottom.
During a range, these areas may help identify local extremes.
During a persistent trend, the oscillator can remain in an extreme zone for extended periods.
The zones should therefore be interpreted together with:
Trend context.
Price structure.
Oscillator direction.
Signal-line behaviour.
Why 90/10 instead of 70/30?
Traditional RSI commonly uses 70 and 30.
That convention does not need to apply to a percentile-rank oscillator.
A rank above 90 means the current observation is in approximately the upper tail of the recent empirical sample, while a reading below 10 represents the lower tail.
Using more extreme default zones makes them intentionally selective.
Users who want broader zones can move the boundaries toward values such as 80 and 20.
Signal line
The white Moving Average line is an EMA of the final oscillator:
Signal = EMA(Percentile Rank Oscillator, Signal Length)
This provides a slower reference against which short-term rank movement can be compared.
Oscillator above signal
The percentile rank is strengthening relative to its own recent smoothed level.
Oscillator below signal
The rank is weakening.
Crossovers can be used to identify changes in short-term momentum within the broader percentile regime.
For example:
A bullish crossover below the oversold zone can indicate rank beginning to recover from an extreme.
A bearish crossover above the overbought zone can indicate deterioration from an upper-tail reading.
A crossover near 50 may represent a more neutral momentum transition.
Signal crosses should not be interpreted independently from oscillator location.
Stepped oscillator colouring
The oscillator uses stepped colour intensity based on its position relative to the 50 midline.
Above 50, colours progressively strengthen as the percentile reaches higher levels.
Below 50, bearish intensity progressively strengthens as the percentile falls.
The main regions are approximately:
50–62.5: modest positive rank.
62.5–75: strengthening positive rank.
75–90: strong positive rank.
90–99: upper-tail extreme.
99–100: exceptional upper-tail rank.
The lower half mirrors this concept:
37.5–50: modest negative rank.
25–37.5: weakening relative state.
10–25: strong negative rank.
1–10: lower-tail extreme.
0–1: exceptional lower-tail rank.
These colours do not introduce additional calculations or signals.
They visually communicate how far the oscillator has moved into its empirical distribution.
Column presentation
The percentile oscillator is plotted as columns around a histogram base of 50.
This means:
Values above 50 extend upward.
Values below 50 extend downward from the midline.
Although the numerical scale remains 0–100, this presentation visually emphasises deviation from the centre of the distribution.
The 50 level therefore functions as the oscillator’s equilibrium reference.
Price mode versus Momentum mode
The two modes answer different questions and should not be treated interchangeably.
Price Mode
Asks:
Where is price relative to its recent distribution?
This makes it useful for:
Range position.
Breakout context.
Relative price extremes.
Stochastic-like analysis.
Momentum Mode
Asks:
Where is current price change relative to the recent distribution of price changes?
This makes it useful for:
Momentum expansion.
Momentum exhaustion.
Relative impulse analysis.
Trend-strength transitions.
Momentum mode can identify weakening momentum before price itself leaves the upper part of its distribution.
Price mode can remain elevated simply because the market is still trading near recent highs.
Example: strong uptrend
Suppose price has been rising steadily.
Price Mode may remain above 90 because current price continually sits near the upper edge of its recent range.
Momentum Mode may behave differently:
It can rise toward 100 during acceleration.
Fall back toward 50 when the trend continues at a more ordinary pace.
Drop below 50 if momentum deteriorates significantly even while price remains relatively high.
This distinction can help separate price location from momentum condition .
Example: volatility regime change
Suppose a market normally changes by only small amounts, then suddenly produces a large directional move.
Raw momentum alone shows a large number.
The percentile rank provides additional context by showing whether that movement is unusual relative to the recent distribution.
If the current momentum is greater than nearly every recent observation, the oscillator moves toward 100.
If the market has already experienced many similarly large moves, the same absolute momentum may receive a much less extreme rank.
The indicator therefore adapts automatically to changing empirical behaviour without requiring fixed momentum thresholds.
Midline crossings
A crossover above 50 indicates the ranked series has moved into the upper half of its recent distribution.
A cross below 50 indicates movement into the lower half.
In Momentum mode, these crossings can be used as a simple relative momentum regime:
Above 50 = comparatively stronger momentum state.
Below 50 = comparatively weaker momentum state.
In Price mode, they indicate whether price is above or below the central portion of its recent rank distribution.
These crossings also control the optional main-chart candle colours.
Extreme-zone crossings
The indicator provides alerts when:
The oscillator crosses upward into the overbought zone.
The oscillator crosses downward into the oversold zone.
These alerts identify entry into an extreme percentile area.
They do not indicate that the extreme has ended.
For reversal-oriented analysis, a trader may instead monitor:
A subsequent exit from the zone.
A signal-line crossover.
Divergence with price.
A break in market structure.
Divergence interpretation
Because Momentum mode ranks momentum rather than price, it can also be useful for examining momentum divergence.
For example:
Price may make a higher high while the oscillator produces a lower percentile peak.
This indicates that the latest momentum observation is less exceptional relative to its recent history than it was during the previous price high.
The reverse can occur at lows.
As with conventional divergence, this is evidence of changing momentum characteristics, not confirmation that price must reverse.
How to use the indicator
1. Relative momentum regime
In Momentum mode, use the 50 midline as a simple regime reference:
Above 50 = positive relative momentum state.
Below 50 = negative relative momentum state.
2. Momentum extremes
Use the configurable zones to identify unusually high or low momentum ranks.
Rather than automatically fading these conditions, determine whether the market is:
Trending.
Exhausting.
Breaking out.
Returning toward equilibrium.
3. Signal-line transitions
Oscillator and signal-line crosses can help identify shorter-term changes in rank direction.
The location of the crossover matters.
A bullish crossover at 5 carries different context from one at 95.
4. Price-distribution analysis
Switch to Price mode when the objective is to measure where the current market sits within its recent price distribution.
This can be useful for:
Breakout analysis.
Range positioning.
Relative high/low detection.
5. Trend confirmation
Momentum remaining consistently above 50 can support an existing bullish trend.
Momentum remaining below 50 can support a bearish trend.
Repeated oscillation around 50 indicates that relative momentum is changing sides frequently.
6. Candle regime colouring
The optional overlay candles make the oscillator’s midline state visible directly on the main price chart.
This can be useful when the oscillator pane is being used primarily for extremes and signal-line analysis.
Input guide
Rank Target
Selects what is percentile-ranked.
Price ranks the source itself.
Momentum ranks its change over the selected Momentum Length.
Rank Window
Controls the empirical comparison sample.
Longer values are smoother and statistically broader. Shorter values adapt more quickly.
Momentum Length
Controls the displacement horizon in Momentum mode.
It has no effect in Price mode.
Output Smoothing
Applies optional EMA smoothing to the percentile rank.
1 produces the raw rank.
Signal Length
Controls the EMA signal line.
Shorter values follow the oscillator more closely. Longer values produce slower crossover signals.
Overbought Zone
Sets the lower boundary of the upper extreme area.
Oversold Zone
Sets the upper boundary of the lower extreme area.
How this differs from RSI
Traditional RSI:
Separates gains and losses.
Smooths their magnitude.
Calculates a relative-strength ratio.
Transforms that ratio onto a 0–100 scale.
Nonparametric Relative Momentum:
Calculates price or momentum directly.
Ranks the current observation against historical observations.
Uses no gain/loss ratio.
Uses no assumed distribution.
The identical 0–100 scale therefore represents a different statistical concept.
How this differs from Stochastic
A conventional stochastic oscillator measures where current price lies between the highest high and lowest low of a window.
Its basic concept is:
(Current - Lowest) / (Highest - Lowest)
Nonparametric Price mode instead asks how many historical observations are below the current price.
This distinction matters because the rank considers the entire empirical ordering of the sample, not only its two extreme endpoints.
Two windows can have identical highs, lows and current price but different internal distributions.
A stochastic calculation can return the same value in both cases, while percentile rank can differ because the number of observations above and below the current price is different.
How this differs from a Z-score
A Z-score measures deviation from a mean in standard-deviation units:
Z = (Current Value - Mean) / Standard Deviation
That calculation depends directly on the sample mean and dispersion.
Percentile rank depends only on ordering.
As a result, an extreme outlier can heavily alter a mean and standard deviation but has much less influence on the ordering of the remaining observations.
This is one of the reasons rank statistics can be useful when financial data contains skew, fat tails or isolated extreme moves.
Strengths
Uses a nonparametric empirical ranking process.
Requires no assumption of normality.
Produces an intuitive bounded 0–100 scale.
Adapts naturally to the recent behaviour of each market.
Supports both price-location and momentum-ranking modes.
Uses mid-ranks for tied observations.
Normalises momentum extremes without relying on fixed point or percentage thresholds.
Includes configurable smoothing and signal analysis.
Provides direct midline regime colouring on the main chart.
Limitations
A percentile rank measures relative position, not absolute magnitude.
A reading of 100 does not indicate how much larger the current observation is than the rest of the sample.
Persistent trends can remain at extreme ranks for extended periods.
Short Rank Windows can generate rapid percentile changes.
Long Rank Windows adapt more slowly to regime shifts.
Momentum mode uses absolute source change rather than percentage return, although ranking substantially reduces scale dependence within a single instrument.
Extreme readings are not automatic reversal signals.
Signal-line crosses can whipsaw in noisy conditions.
The oscillator is reactive and does not forecast future price.
Alerts
The indicator provides alerts for:
Cross Up 50: oscillator enters the upper half of its distribution.
Cross Down 50: oscillator enters the lower half.
Overbought: oscillator crosses upward through the selected upper-zone boundary.
Oversold: oscillator crosses downward through the selected lower-zone boundary.
Bull: oscillator crosses above its signal EMA.
Bear: oscillator crosses below its signal EMA.
Summary
Nonparametric Relative Momentum converts either price or momentum into an empirical percentile rank.
Instead of asking how far an observation is from a moving average, how many standard deviations it sits from a mean, or what ratio of gains to losses produced it, the indicator asks where that observation ranks relative to its own recent history.
In Price mode, it measures the relative location of price within its historical distribution.
In Momentum mode, it first calculates price displacement across a chosen horizon and then measures how exceptional that momentum is relative to recent momentum observations.
A mid-rank procedure handles tied values, optional EMA smoothing controls visual responsiveness, and a separate signal average provides crossover analysis. The 50 midline separates the upper and lower halves of the empirical distribution, while configurable overbought and oversold zones highlight the tails.
The result is a distribution-free relative momentum framework that adapts to the observed behaviour of the market rather than relying on fixed magnitude thresholds or an assumed statistical distribution.
Indicator

Bolinger Bands Range RSI Oscillator [ChartPrime]🔶 OVERVIEW
Traditional oscillators live in a separate sub-window beneath your price chart, forcing you to constantly split your focus between market structure and momentum data. The BB Range RSI Oscillator solves this by projecting Relative Strength Index momentum directly onto an adaptive Bollinger Bands channel right on your main chart layout.
This indicator normalizes standard RSI readings and maps them directly into price coordinates, letting you track momentum extremes, zone expansions, and automated structural divergences directly over the candles.
🔶 HOW IT WORKS
The indicator executes its structural calculations through a multi-tier transformation pipeline:
Adaptive Channel Matrix: The engine computes a moving average basis and applies a standard deviation multiplier to project upper and lower outer boundaries, alongside half-deviation warning lines, framing the primary price canvas.
Normalized RSI Mapping: Instead of rendering a separate panel, raw RSI values are normalized on a standardized scale and mapped directly relative to the middle basis and band width, translating momentum oscillations into exact price-level coordinates.
Dynamic Transparency Engine: The core oscillator line features a dynamic fade factor based on its distance from the center, shifting opacities to visually emphasize when momentum is pushing toward outer band extremes.
Automated Pivot Divergence Logic: The script evaluates pivot points on the mapped oscillator coordinates against price highs and lows. It measures exact bar spacing intervals to flag regular and prime momentum divergences.
🔶 KEY FEATURES
On-Chart Core Oscillator: Plots a fluid momentum curve directly onto the price candles, complete with an optional smoothing signal line to track trend momentum changes.
Dynamic Zone Shading: Automatically fills the upper and lower channel boundaries with custom color fills when the oscillator breaks past half-deviation or outer band extremes.
Automated Divergence Callouts: Pins custom signal badges (+ Bull, Bull, Bear, + Bear) directly onto historical pivot points when structural momentum divergences are detected.
Customizable Palette & Layout: Full user control over band lengths, RSI lookbacks, divergence parameters, and accent color schemes to fit your preferred charting setup.
🔶 TRADING APPLICATIONS
Extreme Band Rejection Entries: When the core oscillator pushes outside the outer Bollinger Band boundaries and flashes zone shading, look for price action reversal confirmations to catch institutional exhaustion moves.
Momentum Divergence Reversals: Utilize the automated Bullish and Bearish divergence tags to spot hidden shifts in market pressure. A regular or prime divergence near outer bands often signals an impending trend reversal.
Signal Line Crossovers: Enable the signal line to track short-term momentum shifts relative to the core mapped oscillator, giving you clean cross-over execution triggers.
🔶 SETTINGS
Bollinger Bands Settings (Length / Multiplier): Controls the lookback window and standard deviation width of the primary channel boundaries.
RSI Oscillator Settings (Period Length / Signal Line): Adjusts the sensitivity of the underlying momentum engine and configures the optional signal line length and styling.
Divergence Settings (Pivot Lookbacks / Min-Max Bars): Fine-tunes the strictness and spacing constraints used by the pivot detection engine to filter out noise.
🔶 CONCLUSION
The BB Range RSI Oscillator unifies volatility bands and momentum oscillators into a single, cohesive on-chart tool. By mapping RSI directly to price structure, it gives you a clean, distraction-free environment for spotting momentum extremes and institutional divergence setups. Indicator

EVA Ai+ Chart Patterns Indicator - Price Action & Trading Signal🧬 EVA Ai+ — индикатор графических фигур и торговых паттернов
EVA Ai+ Chart Patterns автоматически находит графические фигуры технического анализа прямо на графике PulseWire.
Индикатор отслеживает локальные и крупные ценовые модели, строит их границы, определяет направление возможного пробоя и показывает понятные метки ЛОНГ или ШОРТ после подтверждения сигнала.
Подходит для анализа криптовалют, Bitcoin, Forex, акций, фьючерсов и фондовых индексов. Работает на текущем таймфрейме графика: от скальпинга и внутридневной торговли до более крупных свинговых моделей.
🔍 Какие фигуры распознаёт индикатор
📈 Фигуры продолжения движения
🟢 Бычий флаг — ЛОНГ
🔴 Медвежий флаг — ШОРТ
🔵 Бычий вымпел — ЛОНГ
🟠 Медвежий вымпел — ШОРТ
Алгоритм анализирует импульсное древко, ширину консолидации, наклон границ, сжатие диапазона и качество пробоя.
🔄 Разворотные фигуры
🟢 Двойное дно — ЛОНГ
🔴 Двойная вершина — ШОРТ
🟣 Голова и плечи — ШОРТ
🔵 Перевёрнутые голова и плечи — ЛОНГ
Двойные вершины и основания отображаются толстой пунктирной линией. Голова и плечи — толстой точечной линией. Благодаря этому разные модели легко различить даже на насыщенном графике.
🧠 Поиск локальных и крупных фигур
Обычный короткий паттерн и большая рыночная конструкция рассчитываются отдельно.
Индикатор умеет находить:
локальные фигуры внутри текущего движения;
крупные разворотные модели;
длинные флаги и вымпелы;
фигуры с промежуточными ценовыми колебаниями;
наиболее качественную комбинацию опорных экстремумов.
Мелкий рыночный шум не должен автоматически разрушать крупную модель. Для этого EVA сравнивает несколько допустимых комбинаций и выбирает структуру с более высоким качеством.
📊 Оценка качества фигуры
Каждая найденная модель получает оценку:
КАЧ. 76%
При расчёте учитываются геометрия, масштаб, симметрия, направление движения перед фигурой, качество экстремумов и пробой сигнальной границы.
На графике можно увидеть:
ФЛАГ
ЛОНГ · КАЧ. 78%
ГОЛОВА И ПЛЕЧИ
ШОРТ · КАЧ. 84%
КРУПНАЯ · 68 баров
Низкокачественные совпадения фильтруются. Порог для формирующихся и подтверждённых моделей настраивается отдельно.
⏳ Формирующаяся и подтверждённая фигура
Пока модель развивается, её линии могут обновляться вместе с новыми свечами. Такая фигура отмечается как:
ФОРМИРУЕТСЯ
Подтверждённый сигнал появляется после закрытия свечи за границей фигуры или линией neckline.
Закрытая свеча
+ подтверждённый пробой
+ достаточное качество
= ЛОНГ или ШОРТ
Подтверждённая метка не переносится на прошлые свечи. Сигнал фиксируется на том баре, где условия действительно были выполнены.
🎨 Отдельный цвет для каждого паттерна
У каждой группы свой цвет:
флаг ЛОНГ — изумрудный;
флаг ШОРТ — красно-коралловый;
вымпел ЛОНГ — голубой;
вымпел ШОРТ — оранжевый;
двойное дно — лаймовый;
двойная вершина — малиновый;
голова и плечи — фиолетовый;
перевёрнутые голова и плечи — синий.
Цвета и прозрачность формирующихся фигур доступны в настройках.
🔔 Торговые оповещения PulseWire
Для каждого подтверждённого паттерна предусмотрен отдельный алерт:
ЛОНГ Флаг
ШОРТ Флаг
ЛОНГ Вымпел
ШОРТ Вымпел
ЛОНГ Двойное дно
ШОРТ Двойная вершина
ШОРТ Голова и плечи
ЛОНГ Перевёрнутые голова и плечи
Оповещения можно подключить через стандартное меню PulseWire и получать уведомления при появлении подтверждённой фигуры.
📌 Как применять индикатор
Определите общий контекст рынка: тренд, диапазон или разворотная зона.
Посмотрите, какая фигура формируется на графике.
Проверьте направление: ЛОНГ или ШОРТ.
Обратите внимание на показатель КАЧ.
Дождитесь подтверждённого закрытия свечи за границей модели.
Сопоставьте сигнал с уровнями поддержки и сопротивления, объёмом и собственной системой управления риском.
Формирующаяся фигура показывает возможный сценарий. Подтверждённая метка сообщает, что условия пробоя уже выполнены.
🎯 Для каких задач подходит
Индикатор можно использовать для:
технического анализа;
поиска графических фигур;
Price Action;
анализа тренда и разворота;
поиска пробоя консолидации;
криптовалютной торговли;
торговли Bitcoin;
Forex;
акций и фьючерсов;
скальпинга;
дневной и свинг-торговли;
поиска сигналов ЛОНГ и ШОРТ.
⚠️ Уведомление о рисках
Графическая фигура не гарантирует продолжение или разворот цены. Используйте сигналы вместе с рыночным контекстом, уровнями, объёмом и заранее определённым риском.
Индикатор является аналитическим инструментом и не представляет собой индивидуальную инвестиционную рекомендацию.
🇬🇧 English Title
🧬 EVA Ai+ Chart Patterns Indicator — Price Action & Trading Signals
Search-focused publication title:
EVA Ai+ Flags, Pennants, Double Top & Head and Shoulders Indicator
🇬🇧 English Description
🧬 EVA Ai+ Chart Patterns and Trading Signals Indicator
EVA Ai+ Chart Patterns automatically detects technical analysis patterns directly on the PulseWire chart.
The indicator scans both local and large-scale price structures, draws their boundaries, evaluates pattern quality, and displays clear LONG or SHORT signals after confirmation.
It can be used for crypto, Bitcoin, forex, stocks, futures, and index trading. The detector works on the current chart timeframe and supports scalping, day trading, and swing-trading analysis.
🔍 Patterns detected
📈 Continuation patterns
🟢 Bull Flag — LONG
🔴 Bear Flag — SHORT
🔵 Bull Pennant — LONG
🟠 Bear Pennant — SHORT
The detector evaluates the impulse pole, consolidation range, boundary slopes, price compression, and breakout quality.
🔄 Reversal patterns
🟢 Double Bottom — LONG
🔴 Double Top — SHORT
🟣 Head and Shoulders — SHORT
🔵 Inverse Head and Shoulders — LONG
Double Top and Double Bottom structures are drawn with thick dashed lines. Head and Shoulders patterns use thick dotted lines, making each pattern family easy to recognize on the chart.
🧠 Local and macro pattern detection
Short price structures and large reversal formations are processed separately.
The indicator can detect:
local chart patterns;
large reversal structures;
extended flags and pennants;
patterns containing intermediate price swings;
the strongest valid combination of pivot points.
A minor internal swing does not automatically invalidate a larger pattern. EVA compares several possible pivot combinations and selects the structure with the stronger geometry and quality score.
📊 Pattern quality score
Each detected formation receives a quality rating:
QUALITY 76%
The score considers pattern geometry, scale, time symmetry, prior market direction, pivot structure, and breakout confirmation.
Example chart labels:
FLAG
LONG · QUALITY 78%
HEAD AND SHOULDERS
SHORT · QUALITY 84%
MACRO · 68 bars
Low-quality matches are filtered. Separate thresholds are available for developing and confirmed patterns.
⏳ Developing and confirmed patterns
While a pattern is still developing, its boundaries may update as new candles appear. The chart label shows:
FORMING
A confirmed signal is created only after a candle closes beyond the pattern boundary or neckline.
Closed candle
+ confirmed breakout
+ sufficient quality
= LONG or SHORT
Confirmed signals are placed on the bar where the conditions are actually completed. They are not moved backward to earlier historical candles.
🎨 Individual pattern colors
Each pattern family uses a separate color:
Bull Flag — emerald;
Bear Flag — coral red;
Bull Pennant — cyan;
Bear Pennant — orange;
Double Bottom — lime;
Double Top — magenta;
Head and Shoulders — purple;
Inverse Head and Shoulders — blue.
Pattern colors and developing-pattern transparency can be adjusted in the indicator settings.
🔔 PulseWire alerts
Separate alert conditions are included for:
LONG Flag
SHORT Flag
LONG Pennant
SHORT Pennant
LONG Double Bottom
SHORT Double Top
SHORT Head and Shoulders
LONG Inverse Head and Shoulders
Alerts can be configured through the standard PulseWire alert menu.
📌 How to use the indicator
Identify the broader market context: trend, range, or reversal area.
Check which chart pattern is developing.
Review the expected direction: LONG or SHORT.
Look at the pattern quality score.
Wait for a confirmed candle close beyond the boundary.
Combine the signal with support and resistance, volume, and your risk-management rules.
A developing pattern represents an active scenario. A confirmed label means that the breakout conditions have already been completed.
🎯 Common use cases
EVA Ai+ Chart Patterns can be used for:
technical analysis;
chart pattern detection;
Price Action trading;
trend and reversal analysis;
breakout trading;
crypto trading;
Bitcoin trading;
forex trading;
stock and futures analysis;
scalping;
day trading;
swing trading;
LONG and SHORT trading signals.
⚠️ Risk notice
A chart pattern does not guarantee a reversal, continuation, or profitable trade. Signals should be evaluated together with market context, volume, key price levels, and predefined risk management.
This indicator is an analytical tool and does not provide individual financial or investment advice. Indicator

True Strength Index Ribbon
True Strength Index Ribbon: A new way to visualize momentum
Most TSI indicators answer a simple question:
"Is momentum bullish or bearish?"
The True Strength Index Gradient Ribbon was designed to answer a much more useful question:
"How committed is momentum to that direction?"
Instead of displaying two ordinary oscillator lines that constantly cross and overlap, this indicator transforms the relationship between the TSI and its signal line into a continuously expanding and contracting gradient ribbon.
The result is an oscillator that allows traders to recognize momentum shifts almost instantly while dramatically reducing the visual clutter common to traditional TSI implementations.
Why a ribbon?
Momentum isn't simply bullish or bearish.
It has strength.
It has conviction.
It accelerates.
It weakens.
It compresses before expanding again.
The width of the ribbon naturally visualizes the distance between the TSI and its signal line.
A widening ribbon suggests increasing directional commitment.
A narrowing ribbon often indicates weakening momentum or an approaching transition.
Instead of mentally measuring the distance between two moving lines, your eyes recognize it immediately.
Designed for mean reversion and trend trading
While the indicator performs well as a traditional trend-following oscillator, it was specifically developed with mean reversion trading in mind.
Markets spend surprisingly little time at statistically stretched levels.
By combining directional momentum with configurable extension zones, traders can quickly identify when momentum is beginning to reverse after reaching unusually extended conditions.
The indicator intentionally avoids telling traders what to buy or sell.
Instead, it provides objective information that can be combined with price action, structure, moving averages, VWAP, volume, or any existing trading methodology.
Key Features
• Innovative gradient ribbon visualization
• Multiple signal moving average options:
EMA
SMA
WMA
RMA
HMA
VWMA
ALMA
• Higher-timeframe smoothing without changing your chart timeframe
• Four display modes:
Ribbon Only
Signal Line Only
Solid Signal Line Only
Ribbon + Signal Line
• Customizable bullish, bearish, neutral, and extreme colors
• Configurable extension levels for progressively stretched market conditions
• Optional extension-zone shading
• Live Extension Grade panel showing:
Direction
Degree of extension
Current TSI value
• Bullish and bearish crossover alerts
• Extension alerts for every major threshold
Timeframe smoothing
One of the more unique capabilities of this indicator is timeframe-based smoothing.
Instead of requiring traders to constantly switch chart timeframes, the script can internally scale its smoothing calculations to approximate the behavior of a higher timeframe while remaining on the current chart.
This produces cleaner momentum structure while preserving the convenience of lower-timeframe execution.
Extension Grades
Rather than treating all overbought and oversold conditions equally, this indicator classifies momentum into progressively stronger extension levels.
Examples include:
• Moderately Extended
• Extended
• Very Extended
• Extremely Extended
The goal isn't to predict reversals simply because a market reaches an extreme.
Instead, these classifications provide context so traders can better judge when momentum has become unusually stretched.
Built for customization
Every trader sees momentum differently.
Nearly every visual element can be customized, including:
Colors
Signal moving average
Signal smoothing
Ribbon visibility
Timeframe smoothing
Extension thresholds
Zone shading
Signal line appearance
This allows the indicator to adapt to different markets, different trading styles, and different visual preferences.
Design Philosophy
The best indicators don't make trading decisions.
They improve the trader's ability to understand market behavior.
The True Strength Index Ribbon was built around one simple objective:
Transform momentum from something you calculate...
into something you can immediately see.
If this script helps your trading, consider leaving a Like and sharing your feedback. Suggestions for future improvements are always welcome.
Disclaimer
This indicator is provided for educational and informational purposes only. It is designed to assist with market analysis and should not be considered financial or investment advice. No indicator can predict future market movements or guarantee profitable trades. Always conduct your own research, use appropriate risk management, and consider multiple factors before making any trading decisions. Indicator

Market Euphoria Index v2 - MEI - Predict Market Tops & BottomsThe Market Euphoria Index v2 (MEI) is a 0–100 macro composite designed for the MONTHLY chart of SPX or the Nasdaq Composite (weekly also supported). It measures the cumulative buildup of the conditions that have historically surrounded major cycle tops and bottoms — not price alone, but the collision of euphoria (extension, sustained complacency) with late-cycle stress (profit stagnation, claims turning, curve dynamics, tight policy).
HOW TO READ IT
Above 80 — Extreme euphoria: the historical top zone
Above 65 — Euphoria warning: late-cycle, tighten risk
35–65 — Neutral
Below 35 — Fear: opportunity zone
Below 20 — Extreme fear: the historical bottom zone
Confirmation markers add a timing layer on top of the regime reading: a red triangle prints when MEI is in the euphoria zone AND monthly RSI shows a bearish divergence (higher price, lower momentum). A green triangle prints when MEI is in the fear zone AND either monthly RSI is washed out or initial jobless claims roll over from cycle highs — historically one of the tightest bottom signals available (claims peaked within weeks of the March 2009 and March 2020 lows).
THE 8 COMPONENTS (weights adjustable)
Price extension vs 5-year MA (22%) — blended with a 15-year percentile rank so each era is judged against its own norms
Yield curve un-inversion clock (18%) — tops historically cluster 0–12 months after un-inversion; includes a resolve gate so the clock disarms once the cycle has clearly broken (heavy Fed cuts, price under its 5-year MA, or claims spiking)
Corporate profits, ECONOMICS:USCPR (15%) — profits stagnated or declined ahead of the recession-driven bears (1997→2000, 2006→2007); deep decline with an improving second derivative scores as bottom conditions
Jobless claims cycle, ECONOMICS:USIJC (15%) — trough-and-turn off cycle lows = pre-top; spike-and-rollover = bottom
VIX 12-month average (10%) — sustained complacency, not spot readings
Inflation re-acceleration (8%)
Real rate stress (6%) — deflation-guarded so 2009-style CPI collapses read as fear, not stress
Fed cycle position (6%)
All rolling windows are computed at native monthly/quarterly/weekly resolution, so the math is correct on any chart timeframe. Missing history (VIX pre-1990, claims pre-1967, curve pre-1976 falls back to 10Y minus Fed Funds) is handled by dynamic weight renormalization — the composite extends back decades using whatever components exist, and the table shows how much weight is live at any point.
LIMITATIONS — READ BEFORE USING
Economic data publishes with a lag and gets revised, so real-time signals arrive later than a historical replay suggests. This framework targets recession-driven cycles: it structurally cannot anticipate exogenous shocks (2020) and only partially captures rate-shock bears (2022). The 2022–24 curve inversion that resolved without a recession is a live example of a component false positive — which is why no single component, including the curve, should be read in isolation. This is a regime gauge, not a precision timer, and nothing here is financial advice. Always combine with your own risk management.
Alerts are included for all threshold crossings and both confirmation signals. Feedback welcome — especially observations from earlier cycles. Indicator

Order Block Mitigation Strategy [algo_aakash]Overview
Order Block Mitigation Strategy identifies bullish and bearish order blocks from confirmed structure breaks and tracks the exact degree to which each zone has been consumed by subsequent price action. Rather than treating every order block as equally tradable, the script continuously measures how deep into a zone price has traveled and only signals reactions occurring at zones that are still statistically fresh, while allowing the trader to see heavily used zones visibly fade on the chart.
Problem Statement
Most order block tools draw a zone once and leave it static until price closes through it entirely. This binary treatment ignores a critical distinction: a zone that has been wicked into by 10% of its range carries very different odds than one that has already been penetrated 70% of the way through. Traders using static zones frequently take reaction entries at institutional levels that have already been substantially absorbed, with no way to quantify how much of the zone's liquidity remains untouched.
Methodology
Structure is established using confirmed swing pivots. A Break of Structure is only confirmed on a bar close that clears the swing level by a minimum ATR-based buffer, filtering marginal breaks. Once a break is confirmed, the script scans backward from the broken pivot for the last opposite-colored candle within a fixed window, since this candle (not the pivot bar itself) is the true origin of the displacement leg. That candle's high-low range becomes the order block, provided its range also exceeds a minimum ATR multiple.
From the moment a zone is created, the script tracks the deepest price extreme that has traded into it on every confirmed bar. This extreme can only advance in the direction of consumption, never retreat, and from it a Mitigation Percentage is calculated as the proportion of the zone's height that has been traded through. This percentage is classified into one of four bands (Fresh, Light, Moderate, Heavy) using user-defined thresholds, and a fifth state (Invalidated) removes the zone once the percentage crosses a final threshold.
The Mitigation Percentage also drives the zone's fill transparency directly, on a continuous interpolation between a fresh-zone opacity and a near-invalid opacity. A zone at 10% mitigation renders visibly more solid than one at 55%, and the fade is smooth rather than stepped between discrete color states. This means zone health can be read from the chart at a glance without a label or panel.
Entry signals are only evaluated at zones whose live Mitigation Percentage has not yet exceeded a separate, user-defined entry cap. When price trades into a qualifying zone, the closed candle is checked against a selectable rejection pattern (a dominant wick, an engulfing candle, a strong directional close, or a combination of wick and close). Optional filters can additionally require the candle to close beyond the zone's midpoint, require the candle's range to exceed an ATR multiple, and require volume above its rolling average. Each signal is issued once per zone's lifecycle.
Every signal carries a composite confidence score built from five equally weighted, disclosed factors: the ATR-normalized strength of the structure break that created the zone, the ATR-normalized size of the origin candle, the zone's freshness at the moment of the signal (the inverse of its mitigation percentage), the expansion of ATR since the zone was formed, and the ATR-normalized distance price traveled from the origin candle to the structure break. The score is displayed next to the signal marker.
Signal Workflow
Step 1: A swing high or low is confirmed once the required number of bars exist on both sides.
Step 2: A close beyond that swing level by the minimum ATR buffer confirms a Break of Structure.
Step 3: The script scans backward from the broken pivot for the last opposite-colored candle and builds the order block from its full range, provided the candle passes the minimum impulse size filter.
Step 4: On every subsequent confirmed bar, the zone's deepest intrusion is ratcheted forward and the Mitigation Percentage is recalculated, driving both the quality band and the continuous fade.
Step 5: When price re-enters a zone below the entry mitigation cap and a rejection pattern confirms on the closed candle, along with any enabled midpoint, ATR-expansion, and volume filters, a scored entry signal is generated.
Why This Indicator Is Different
Zone consumption is tracked as a continuous, monotonically increasing percentage rather than a binary tested or mitigated flag, so the trader always knows how much of a zone's original range remains untouched.
Fill transparency is interpolated in real time directly from that percentage, making zone health visible without any label, table, or dashboard.
The order block's origin candle is located by scanning back from the structure break for the true opposite-colored displacement candle, rather than defaulting to the pivot candle itself.
Entry signals are gated by a separate, independently configurable mitigation cap, so a trader can permit signals only at zones that remain within a defined freshness range.
Every signal discloses a five-factor confidence score built from break displacement, origin candle size, live freshness, ATR expansion since formation, and travel distance, so the score can be audited rather than trusted blindly.
Inputs
Detection
Swing Pivot Length
ATR Length
Min BOS Size (x ATR)
Min Impulse Candle Size (x ATR)
Zones
Maximum Zones (per side)
Zone Extension
Fixed Extension Length
Show Zone Midline
Dynamic Opacity by Mitigation %
Mitigation
Fresh Threshold %
Partial Threshold %
Heavy Threshold %
Invalidate Threshold %
Entries
Enable Entry Signals
Max Mitigation % Allowed for Entry
Rejection Pattern
Require Close Beyond Zone Midpoint
Require ATR Expansion
Require Volume Confirmation
High Confidence Threshold %
Appearance
Bullish Zone Color
Bearish Zone Color
Fresh Zone Transparency
Near-Invalid Zone Transparency
Signal Marker Size
Alerts
Enable All Alerts
Alert: New Order Block
Alert: Mitigation Milestones
Alert: Entry Signals
Alerts
Alerts are available for:
New Bullish Order Block formed
New Bearish Order Block formed
Bullish Order Block Partial Mitigation
Bearish Order Block Partial Mitigation
Bullish Order Block Heavy Mitigation
Bearish Order Block Heavy Mitigation
Bullish Order Block Invalidated
Bearish Order Block Invalidated
Bullish Rejection Entry
Bearish Rejection Entry
Premium Entry (High Confidence)
Practical Usage
Lower the Max Mitigation % Allowed for Entry to restrict signals to only the freshest zones, or raise it to also capture reaction trades at moderately used levels.
Watch the continuous fade of a zone as a visual proxy for its remaining reliability without needing to check a percentage value directly.
Use the disclosed confidence score to compare two simultaneous signals rather than treating every marker as equally weighted.
Switch Zone Extension to Until New BOS on trending instruments to stop a zone from extending once the opposing side of structure has broken.
Combine the ATR expansion and volume filters on the Entries tab when trading instruments where displacement quality varies significantly by session.
Limitations
Swing pivot confirmation introduces a lag equal to the pivot length setting, meaning a structure break can only be evaluated after that many bars have closed beyond the pivot.
The origin candle scan is bounded by a fixed lookback window, so on unusually extended displacement legs the true origin candle may fall outside that window and no zone will be created.
The confidence score is a disclosed, equally weighted composite of five factors and is not a probability of trade success.
Order blocks and their mitigation state are a price-action framework, not a standalone trading system, and should be evaluated alongside broader market context.
Notes
All detection, structure break, mitigation state, and entry logic execute strictly on confirmed bars, so no drawing, classification, or alert changes retroactively once printed.
Zone counts per direction are capped, with the oldest zone removed first once the limit is reached, keeping drawing object usage bounded regardless of session length.
alert() calls are used for every event category so a single "Any alert() function call" condition in the PulseWire alert dialog captures all messages from this script.
Indicator

Indicator

MACD Pro: Presets by Trading Style with Trend and Chop Filters-------DESCRIPTION
There is no single best MACD setup. The right one depends on your timeframe and on how you trade.
Gerald Appel built the indicator around 12, 26 and 9 for daily and weekly charts. Put those numbers on a fast intraday chart and the signal lags behind the price action. MACD Pro carries the tested setup for each trading style, and it will pick one for you based on the chart you are on.
----------THE PRESETS
Swing (4H, daily, weekly) uses 12, 26 and 9. This is the original setup. It finds macro trends and major reversals without catching every bit of market noise.
Day trading (5m, 15m, 1H) uses 8, 17 and 9. Balanced responsiveness. It cuts the lag on intraday charts while keeping enough smoothing to avoid constant whipsaws.
Intraday momentum (3m, 5m) uses 5, 13 and 1. Dropping the signal length to 1 turns the signal into a direct zero-line cross, which is the sweet spot for catching quick intraday momentum pushes.
Scalping (1m, 3m) uses 3, 10 and 1. Maximum sensitivity to short-term price bursts. High frequency and noisy, so it demands strict risk management.
"Auto by timeframe" reads your chart and loads the right setup for you. Move from a 5-minute chart to a daily chart and the settings follow you. Custom is there when you want your own numbers.
-----------WHY A SIGNAL LENGTH OF 1 IS HANDLED DIFFERENTLY
An exponential average of one period returns the input unchanged. That means at a signal length of 1, the signal line sits exactly on top of the MACD line and a crossover can never fire.
In that mode the script hides the signal line and switches the trigger over to the zero-line cross. The table on the pane tells you which mode is running.
--------------THE FILTERS
200 EMA trend filter. Longs only while price is above the 200 EMA, shorts only while price is below it. A crossover that passes prints a solid triangle. A crossover that fails prints a hollow circle, so you still see that it happened and can judge it yourself.
Chop filter. The MACD is a trend-following momentum tool. In a sideways range, crossovers fire over and over, and every one of them is a whipsaw. When ADX sits under your threshold, the pane shades gray and crossovers are marked as failed. Rely on crossovers only when price is expanding or breaking out.
----------------THE HISTOGRAM AS AN EARLY WARNING
The histogram measures the distance between the MACD line and the signal line. When those bars start shrinking toward zero, momentum is exhausting, even before any crossover happens.
Bars print bright while the histogram is expanding and fade to translucent while it is contracting. A bright green run turning pale is your cue to tighten stops or take something off the table. Yellow dots mark two shrinking bars in a row if you want it called out explicitly.
--------------PAIR IT WITH STRUCTURE
Never take a MACD entry on its own. Line the signals up with breaks of support and resistance, or with an opening range breakout backed by above-average volume. The more elements in agreement, the more confidence you can carry into the trade.
---------------ALERTS
- Filtered bullish signal
- Filtered bearish signal
- Upside momentum exhausting
- Downside momentum exhausting
-----------------NOTES
Written in Pine Script version 6. Every setting is editable, so nothing here is locked to my preferences.
Indicator

Market Compass - Dynamic Range FrameworkHello English readers, the English version is provided below. Please scroll down to view it.
Market Compass - Dynamic Range Framework
市场指南针 · 动态区间框架
版本:1.0 | 类型:非预测性价格结构定位工具 | 作者:
绝大多数交易亏损,根源并非方向判断错误,而是 “位置感”的缺失 。本指标旨在为您解决这一核心痛点——它不告诉您涨跌,但它告诉您 “此时此刻,价格在地图上的精确坐标” 。
---
本指标并非传统的均线或动量振荡器,而是一个 基于固定回溯周期的价格百分位区间定位系统 。它以最近 N 根 K 线(默认 252 根,对应约 1 个交易年度)的最高价与最低价为天然边界,构建出一个覆盖 0% 至 100% 的 动态箱体网格 。
该网格并非平均分割,而是采用 非对称的黄金分割与极值锚定法 ,精确定制了 9 条关键水平轨道。这些轨道以彩色矩形色带和右侧实时浮动标签的形式,干净利落地叠加于主图 K 线之上:
100% 顶部极值轨 (红色):回溯周期内的绝对天花板。
89% 超买警戒轨 (橙色):情绪极度亢奋区,多头衰竭高发带。
75% 强势分界轨 (黄色):牛熊分水岭,站上此线意味中期趋势转强。
62.5% 强界枢轴轨 (紫色):多头趋势中的次级回踩支撑位。
50% 多空中轴轨 (白色):价值均衡线,长线资金的成本密集区。
37.5% 弱界枢轴轨 (青色):空头趋势中的次级反弹阻力位。
25% 弱势分界轨 (亮蓝):跌破此线意味中期趋势正式转入空头。
11% 超卖警戒轨 (浅绿):情绪极度恐慌区,空头衰竭高发带。
0% 底部极值轨 (深蓝):回溯周期内的绝对地板。
随着新 K 线的生成,整个框架会 滚动迭代 ,始终锚定最新的价格活动范围,确保参考坐标永不失效。
---
传统价格图表存在严重的 视角局限性 ,导致交易者频繁陷入误判:
“绝对值幻觉”与锚定效应 :股价 100 元是高是低?脱离近期波动区间谈绝对价格毫无意义。本指标将价格转化为 0~100 的相对百分位数 ,消除了价格基数的干扰,让您客观评判当前价格是“相对高位”还是“相对低位”。
“区间失忆症”与近因偏好 :人类大脑天然对最近 5~10 根 K 线赋予过高权重,极易遗忘前期关键的支撑与阻力结构。本指标通过固定窗口的滚动计算,强制将 过去 N 根 K 线的价格极值 醒目地绘制在当前图表上,纠正了这种认知偏差。
均值回归与极端磁吸理论 :金融市场价格长期遵循 “极端值向中轴(50% 均衡线)回归” 的统计规律。当价格进入 89% 以上或 11% 以下的极端尾部区域时,统计概率上必然面临向 50% 中轴的牵引力。本框架为这种“牵引力”提供了精确的量化刻度。
---
本指标是 趋势过滤、盈亏比评估与动态止盈止损 的绝佳辅助工具。请勿将其视为独立入场信号,而应作为 “价格行为决策的量化底座” 。
3.1 基于市场环境的三种经典战法
【趋势跟踪战法】—— 适用于强势单边行情
当价格经过充分调整后,以放量大阳线有效突破 75% 强势分界轨 时,视为中期趋势由震荡转强的关键确认点。若后续价格回踩 75% 轨并获得支撑(收出长下影线),则为绝佳的 顺大势、逆小势 加仓机会。此时可将止损设于 62.5% 强界枢轴轨下方。
【均值回归战法】—— 适用于宽幅震荡行情
当价格快速冲高至 89% 超买轨 上方,且 K 线出现明显滞涨形态(如射击之星、看跌吞没)时,可视为短线高空机会,第一目标位看向 75% 轨,第二目标位看向 50% 中轴。反之,价格急跌至 11% 超卖轨 下方并出现止跌反转形态时,可视为短线低吸机会。
【突破回踩确认战法】—— 适用于关键阻力支撑转换
任何一条百分比轨道都具备动态支撑/阻力的属性。当价格自下而上突破某一轨道(如 62.5% 轨)后,若随后缩量回踩该轨道且未跌破,则说明该轨道已由阻力转换为支撑,此处是风险收益比极高的 “0 级入场点” (止损极小,空间极大)。
3.2 动态止盈与止损设置指南
波段多头持仓 :可将 37.5% 弱界枢轴轨 设为最终的硬性离场线。只要价格在此轨之上,多头头寸便可安心持有,避免被早期震荡洗出。
短线空头持仓 :可将 62.5% 强界枢轴轨 设为硬性止损线。一旦价格强势反抽并站上此轨,则空头逻辑被证伪,需果断离场。
3.3 参数动态调整建议(针对不同交易周期)
日线级别(中长线 / 波段) :建议保持默认 252 (约 1 年交易日),用于捕捉年度大箱体的牛熊转换。
周线级别(大趋势 / 仓位布局) :建议调整为 52 (约 1 年周线),用于识别超大周期的价格百分位极值。
小时 / 分钟级别(日内短线 / 剥头皮) :建议调整为 50 ~ 100 ,过长的周期在分钟图上会导致框架钝化,失去短线参考意义。
---
4.1 最佳适用场景
流动性充裕的权益市场 :沪深 300、中证 500、标普 500 等主流指数及成分股。
高流动性大宗商品与外汇 :黄金、原油、欧元/美元等主要交易对。
高市值加密货币 :比特币(BTC)、以太坊(ETH)等。
4.2 禁用与慎用场景(风控红线)
严禁用于上市不足 N 根 K 线的新股/次新股 :尽管代码内置了自适应缩窄逻辑,但新股价格极不稳定,高低点极易被操纵,百分位框架参考价值极低。
慎用于连续无量涨跌停的极端行情 :在极强的单边轧空或流动性枯竭的踩踏中,价格可能长期粘合在 100% 轨之上或 0% 轨之下,此时指标出现 “钝化” 现象,需立即切换至趋势跟踪指标(如 SAR 抛物线或均线系统)进行二次印证。
慎用于高度控盘的“庄股”或低成交量仙股 :稀疏的成交导致价格跳跃性极大,计算出的区间极易失真。
---
本指标严格遵循 PulseWire 最佳实践, 完全不包含未来函数 ,所有信号均基于确定性的历史数据实时滚动计算。
5.1 自适应周期核心算法
系统优先读取用户设定的 `lookbackLength`(默认 252)。然而,当图表加载的品种上市天数不足时,引擎会自动触发保护机制:
effectiveLookback = math.min(i_lookbackLength, bar_index + 1)
该行代码确保指标在上市首日即能工作,且随着新 K 线增加,窗口期自然增长,直至达到用户设定的标准周期。
5.2 九宫格线性映射(百分位分割数学)
首先确定箱体极值与范围:
periodLow = ta.lowest(low, effectiveLookback) // 底部 0%
periodHigh = ta.highest(high, effectiveLookback) // 顶部 100%
priceRange = periodHigh - periodLow
随后基于 斐波那契数列与统计学标准差启发式阈值 进行非均匀切割:
priceL89 = periodLow + priceRange * 0.89 // 极值警戒
priceL75 = periodLow + priceRange * 0.75 // 强市分界
priceL625 = periodLow + priceRange * 0.625 // 黄金分割枢轴
priceL50 = periodLow + priceRange * 0.50 // 均衡中轴
// ... 下方对称切割同理
注:62.5% 与 37.5% 的选取来源于对 0.618 黄金分割率的整数微调,旨在提供比传统 61.8% 更为清晰且易于记忆的刻度。
5.3 图形渲染引擎优化(内存与性能管理)
为了避免在大量历史 K 线上重复绘制矩形和线条导致图表卡顿,引擎采用 “惰性删除与单次实例化” 策略:
if barstate.islast
// 仅当加载完成且运行至图表最右侧时触发绘制
box.delete(boxMain) // 先销毁旧句柄
line.delete(lineL100) // 清理旧线
// ... 重新创建新对象
所有标签采用 label.style_label_left 右对齐样式,确保在图表最右侧整齐排列,绝不遮挡最新的 K 线实体,同时提供精确至交易所最小报价单位(`format.mintick`)的实时读数。
---
它不是占卜未来的水晶球,而是衡量当下的卡尺。
在充满不确定性的金融市场中, “位置感” 是纪律执行的基石。`Market Compass` 为您提供的不是圣杯,而是一张永远保持更新的 战场态势感知地图 。请将它融入您现有的交易系统中,作为过滤低质量交易机会的第一道关卡。
---
本指标及此说明文件仅供教育及技术分析参考之用,绝不构成任何形式的买入、卖出或持仓建议。金融衍生品及证券交易蕴含巨大风险,过往价格结构及百分位分布不构成对未来走势的绝对保证。您必须结合自身财务状况、风险承受能力及独立研判做出交易决策,盈亏自负。作者不承担任何因使用本指标而产生的直接或间接损失。
---
如果您认可这套价格定位逻辑,欢迎点赞、收藏并关注!
期待您在评论区分享将该框架融入实战交易后的心得体会。
Market Compass - Dynamic Range Framework
Version: 1.0 | Type: Non-Predictive Price Structure Positioning Tool | Author:
The vast majority of trading losses stem not from incorrect directional judgment, but from a lack of "positional awareness" . This indicator addresses this core pain point — it does not tell you whether price will go up or down, but it does tell you "the precise coordinates of price on the map, at this very moment" .
---
This indicator is not a traditional moving average or momentum oscillator. Instead, it is a price percentile range positioning system based on a fixed lookback period . It uses the highest high and lowest low over the most recent N bars (default 252, corresponding to approximately one trading year) as natural boundaries, constructing a dynamic box grid spanning from 0% to 100%.
The grid is not evenly divided. It employs an asymmetric golden ratio and extreme-value anchoring methodology to precisely define 9 key horizontal threshold levels. These levels are cleanly overlaid on the main price chart using colored rectangular bands and real-time right-aligned floating labels:
100% Peak Threshold (Red): The absolute ceiling within the lookback period.
89% Overbought Warning Zone (Orange): Extreme euphoria zone; high probability of bullish exhaustion.
75% Bullish Boundary (Yellow): The bull-bear dividing line; breaking above signals medium-term strength.
62.5% Bull Pivot Threshold (Purple): Secondary retracement support level within an uptrend.
50% Equilibrium Axis (White): The value equilibrium line; a dense area of long-term capital cost.
37.5% Bear Pivot Threshold (Cyan): Secondary retracement resistance level within a downtrend.
25% Bearish Boundary (Light Blue): Breaking below signals a confirmed medium-term bearish trend.
11% Oversold Warning Zone (Light Green): Extreme panic zone; high probability of bearish exhaustion.
0% Floor Threshold (Dark Blue): The absolute floor within the lookback period.
As new bars are generated, the entire framework rolls forward iteratively , always anchored to the most recent price activity range, ensuring the reference coordinates never become obsolete.
---
Traditional price charts suffer from severe perspective limitations , leading traders into frequent misjudgments:
"Absolute Value Illusion" and Anchoring Bias : Is a price of $100 high or low? Discussing absolute price without reference to the recent trading range is meaningless. This indicator converts price into a relative percentile from 0 to 100 , eliminating the distortion of price magnitude and allowing you to objectively assess whether the current price is "relatively high" or "relatively low."
"Range Amnesia" and Recency Bias : The human brain naturally assigns excessive weight to the most recent 5–10 bars, easily forgetting key prior support and resistance structures. Through rolling window calculations, this indicator forcibly and prominently plots the price extremes of the past N bars on the current chart, correcting this cognitive bias.
Mean Reversion and Extreme Magnetic Attraction Theory : Financial market prices have long exhibited a statistical tendency to "revert from extreme values toward the center (50% equilibrium line)" . When price enters the extreme tail regions above 89% or below 11%, statistical probability dictates an inevitable gravitational pull toward the 50% axis. This framework provides precise quantitative刻度 for this "magnetic force."
---
This indicator serves as an excellent auxiliary tool for trend filtering, risk-reward assessment, and dynamic stop-loss/take-profit placement . Do not treat it as an independent entry signal; instead, regard it as a "quantitative foundation for price-action decision-making."
3.1 Three Classic Strategies Based on Market Context
【Trend Following Strategy】— For Strong Directional Markets
When price, after sufficient consolidation, breaks decisively above the 75% Bullish Boundary with a high-volume bullish candle, this serves as a key confirmation that the medium-term trend is shifting from consolidation to strength. If price subsequently retests the 75% level and finds support (forming a long lower wick), it represents an excellent "go with the macro trend, counter the micro pullback" add-on opportunity. In such cases, place your stop-loss below the 62.5% Bull Pivot Threshold.
【Mean Reversion Strategy】— For Range-Bound Markets
When price spikes rapidly above the 89% Overbought Warning Zone and simultaneously exhibits clear exhaustion patterns (such as shooting stars or bearish engulfing), this can be viewed as a short-term selling opportunity. The first target is the 75% level, and the second target is the 50% Equilibrium Axis. Conversely, when price plummets below the 11% Oversold Warning Zone and shows reversal signals, a short-term buying opportunity emerges.
【Breakout-Pullback Confirmation Strategy】— For Key Support/Resistance Transitions
Every percentage threshold possesses dynamic support/resistance properties. When price breaks upward through a given level (e.g., the 62.5% level) and subsequently retests that level on diminishing volume without breaking back below, this confirms that the level has successfully transitioned from resistance to support. This represents a highly favorable "Grade-A Entry Point" (minimal stop-loss, substantial upside potential).
3.2 Dynamic Stop-Loss and Take-Profit Placement Guide
Swing Long Positions : Use the 37.5% Bear Pivot Threshold as your ultimate hard exit line. As long as price remains above this level, you can confidently hold your long position, avoiding premature exits caused by early-stage volatility.
Short-Term Short Positions : Use the 62.5% Bull Pivot Threshold as your hard stop-loss line. Should price stage a strong rally and close above this level, the bearish thesis is invalidated, and you must exit decisively.
3.3 Parameter Adjustment Recommendations (By Trading Timeframe)
Daily Chart (Swing / Medium-to-Long Term) : Keep the default 252 (approximately one trading year), ideal for capturing annual bull-bear transitions.
Weekly Chart (Macro Trend / Position Sizing) : Consider adjusting to 52 (approximately one year of weekly bars) for identifying extreme percentiles within broader cycles.
Hourly / Minute Charts (Intraday / Scalping) : Consider adjusting to 50–100 . Longer lookbacks on lower timeframes cause the framework to become overly rigid, diminishing its short-term relevance.
---
4.1 Optimal Use Cases
Highly Liquid Equity Markets : CSI 300, S&P 500, major index constituents, and liquid individual stocks.
High-Liquidity Commodities and FX : Gold, Crude Oil, EUR/USD, and other major pairs.
Large-Cap Cryptocurrencies : Bitcoin (BTC), Ethereum (ETH), and similar assets.
4.2 Scenarios to Avoid or Use with Caution (Risk Red Lines)
Strictly avoid newly listed stocks with fewer than N bars of history : Although the code includes a built-in adaptive shortening mechanism, new issues are extremely unstable, and their highs/lows are vulnerable to manipulation, rendering the percentile framework nearly worthless.
Use with caution during continuous limit-up/limit-down extreme conditions : In powerful short squeezes or liquidity-driven crashes, price may remain persistently glued above the 100% level or below the 0% level. In such cases, the indicator becomes "blunted" , and you must immediately switch to trend-following tools (such as SAR or moving average systems) for secondary confirmation.
Avoid low-float "pump-and-dump" penny stocks : Sparse trading volume leads to erratic price jumps, causing the computed range to become highly distorted.
---
This indicator strictly adheres to PulseWire best practices and contains absolutely no future functions . All signals are computed in real time based on deterministic historical data.
5.1 Adaptive Lookback Core Algorithm
The system first reads the user-defined `lookbackLength` (default 252). However, when the loaded instrument has fewer total bars on the chart than the configured period, the engine automatically triggers a protective mechanism:
effectiveLookback = math.min(i_lookbackLength, bar_index + 1)
This single line ensures the indicator functions from the very first trading day, and the window gradually expands as new bars are added until it reaches the user's desired standard period.
5.2 Nine-Level Linear Mapping (Percentile Segmentation Mathematics)
The process begins by determining the box extremes and range:
periodLow = ta.lowest(low, effectiveLookback) // Floor at 0%
periodHigh = ta.highest(high, effectiveLookback) // Peak at 100%
priceRange = periodHigh - periodLow
The range is then divided using a heuristic blend of Fibonacci ratios and statistically inspired thresholds :
priceL89 = periodLow + priceRange * 0.89 // Extreme warning
priceL75 = periodLow + priceRange * 0.75 // Bullish boundary
priceL625 = periodLow + priceRange * 0.625 // Golden ratio pivot
priceL50 = periodLow + priceRange * 0.50 // Equilibrium axis
// ... Symmetrical lower-level calculations follow the same logic
Note: The selection of 62.5% and 37.5% is derived from a slight integer adjustment to the 0.618 golden ratio, intended to provide cleaner and more memorable reference刻度 than the traditional 61.8%.
5.3 Rendering Engine Optimization (Memory & Performance Management)
To prevent chart lag caused by repeatedly drawing rectangles and lines across numerous historical bars, the engine employs a "lazy deletion with single-instantiation" strategy:
if barstate.islast
// Only triggered when loaded and running at the rightmost edge of the chart
box.delete(boxMain) // Destroy old handles first
line.delete(lineL100) // Clean up old lines
// ... Then create new objects
All labels use the label.style_label_left right-aligned format, ensuring they line up neatly on the far right of the chart without ever obscuring the most recent price bars. Prices are displayed with precision down to the exchange's minimum tick size (`format.mintick`).
---
It is not a crystal ball for predicting the future; it is a caliper for measuring the present.
In the inherently uncertain financial markets, "positional awareness" is the cornerstone of disciplined execution. `Market Compass` does not offer you a holy grail; it offers you an ever-updating situational awareness map of the battlefield . Integrate it into your existing trading system and use it as the first filter to eliminate low-probability trade setups.
---
This indicator and its accompanying description are provided for educational and technical analysis purposes only. They do not constitute, and should not be construed as, any form of investment advice or recommendation to buy, sell, or hold any financial instrument. Trading securities and derivatives involves substantial risk of loss. Past price structures and percentile distributions do not guarantee future results. You are solely responsible for your own trading decisions, taking into account your financial situation, risk tolerance, and independent judgment. Neither the author nor the hosting platform accepts any liability for losses arising from the use of this indicator.
---
If you find this price-positioning logic valuable, please like, bookmark, and follow!
I look forward to hearing how you integrate this framework into your live trading. Feel free to share your experiences and feedback in the comments section below.
Indicator

Indicator

ATR Chandelier StopTrade Control Adaptive ATR Chandelier Stop
The Trade Control Adaptive ATR Chandelier Stop is a volatility based trailing stop designed for swing and position traders who want a more objective way to manage exits and protect gains.
Instead of applying the same fixed percentage stop to every stock, the indicator uses Average True Range, or ATR, to account for how much each symbol typically moves. More volatile stocks receive wider stop levels, while lower volatility stocks receive tighter stop levels.
How it works
For long positions, the trailing stop is calculated as:
Highest high over the selected lookback period minus ATR multiplied by the selected multiplier
With the default settings, the calculation is:
22 bar highest high minus 3 times the 14 bar ATR
This creates a stop that hangs below the stock’s recent high, which is why it is called a Chandelier stop.
As the stock makes new highs, the stop can move higher. During normal pullbacks, the stop generally does not move lower while the bullish trend remains intact.
When price closes below the trailing stop, the indicator changes to a bearish state and begins plotting the corresponding stop above price.
Default settings
ATR Length: 14
Price Lookback: 22
ATR Multiplier: 3.0
Automatic Volatility Adjustment: Off by default
These settings are intended as a balanced starting point for swing and position traders using the daily chart and holding trades for several weeks to several months.
Adaptive volatility option
The optional adaptive setting adjusts the ATR multiplier based on ATR as a percentage of the stock price.
When enabled, the indicator gives highly volatile stocks additional room and may tighten the stop for lower volatility stocks. The standard 3 ATR setting remains the default for traders who prefer a simpler and more consistent approach.
Best uses
The indicator is designed for:
• Swing trading
• Position trading
• Trend following
• Managing profitable trades
• Reducing emotional exit decisions
• Monitoring individual stocks or watchlists
It is generally most useful on the daily timeframe.
Alert condition
The script includes an alert condition for a confirmed daily close below the trailing stop.
Recommended PulseWire alert settings:
Condition: Daily Close Below ATR Stop
Interval: 1D
Trigger: Once per bar close
The alert is designed to trigger when the trend first changes from bullish to bearish. It does not repeatedly alert every day while price remains below the stop.
Important considerations
The Trade Control Adaptive ATR Chandelier Stop is a trade management tool, not a complete trading strategy.
Traders should also consider technical support and resistance, entry price, position size, maximum acceptable loss, earnings risk, gap risk, and overall market conditions.
A stock can gap below the plotted stop, particularly around earnings or major news. The indicator does not guarantee execution at the displayed price. Indicator

Next Candle Predictor V4.1## Next Candle Predictor V4.1 — Terminology and Presentation Update
This update improves the clarity of the indicator's terminology and on-chart presentation while preserving its existing calculation framework, weighting structure, visual layout, and signal conditions.
### Changes
- Renamed displayed “Prediction” values to “Directional Score”.
- Replaced “Perfect Time” with “Strong Setup”.
- Renamed the volume-derived component to “Estimated Volume Pressure”.
- Renamed projection visuals to “Directional Scenario Candles”.
- Updated dashboard labels and alert messages for clearer interpretation.
- Removed performance-target wording.
- Added author attribution: Developed by Ceyhun C. Canbazoglu.
### Score Interpretation
The displayed long and short percentages are normalized directional confluence scores derived from the indicator’s rule-based components.
They are not statistical probabilities, expected win rates, guarantees, or forecasts of the next candle’s result.
### Estimated Volume Pressure
Estimated Volume Pressure uses OHLCV data and the closing price’s position within the candle range to estimate directional pressure.
It is not exchange-level bid/ask volume delta or actual aggressive buying and selling volume.
### Directional Scenario Candles
The optional scenario candles are volatility-scaled visualizations based on the indicator’s current directional scores.
They do not forecast the next candle’s exact open, high, low, close, direction, or price target.
### Core Framework
The existing multi-factor framework remains unchanged and continues to evaluate:
- trend direction,
- EMA alignment,
- MACD momentum,
- RSI position,
- Stochastic conditions,
- ADX trend strength,
- relative volume,
- estimated volume pressure,
- and volatility regime.
This indicator is intended as a technical-analysis and decision-support tool. It does not provide financial advice or guarantee trading results. Indicator

VWAP Deviation Trend [BackQuant]VWAP Deviation Trend
Overview
VWAP Deviation Trend is a volume-weighted trend-following overlay that transforms VWAP and its surrounding price distribution into a directional trailing structure.
Rather than using VWAP only as a fair-value line, the indicator calculates:
A configurable anchored or rolling VWAP.
The volume-weighted standard deviation of price around that VWAP.
Adaptive upper and lower deviation bands.
One-sided trailing boundaries used to confirm bullish and bearish regimes.
The indicator is designed to identify when price has moved far enough away from accepted volume-weighted value to establish a meaningful directional shift.
Unlike a simple VWAP crossover, price can move through VWAP without immediately changing the active trend. A new regime requires price to break the opposite trailing deviation boundary, optionally with confirmation from the direction of VWAP itself.
The updated visual engine also measures trend strength and uses it to control:
Gradient intensity.
Trail glow width.
Post-flip bloom effects.
The visual separation between price and the active trail.
Core concept
VWAP represents the average price paid over a selected period, weighted by trading volume.
The basic formula is:
VWAP = Sum of Price × Volume / Sum of Volume
Prices associated with greater volume contribute more heavily to the final value. This makes VWAP a useful approximation of:
Volume-weighted fair value.
The center of traded activity.
The average position of market participants.
An institutional execution benchmark.
However, VWAP alone does not explain how widely price has been distributed around that value.
VWAP Deviation Trend treats VWAP as the center of a volume-weighted price distribution and measures the dispersion around it. That dispersion is then used to create trailing trend boundaries.
VWAP calculation modes
The indicator supports five VWAP windows:
4 Hours
Daily
Weekly
Rolling Lookback Bars
Rolling Lookback Days
4 Hours
Resets VWAP at fixed four-hour intervals.
This can be useful for:
Cryptocurrency markets.
Intraday futures.
Continuously traded markets.
Shorter fair-value regimes.
Daily
Resets at the beginning of each calendar day.
This is the traditional intraday VWAP structure and is useful for:
Session bias.
Intraday mean reversion.
Day-trading trend confirmation.
Weekly
Accumulates volume and price across the current week.
This creates a slower structural anchor suited to:
Swing trading.
Weekly positioning.
Broader accepted-value analysis.
Rolling Lookback Bars
Calculates VWAP over a fixed number of candles.
The window moves forward continuously and does not reset at a calendar boundary.
This is useful for:
Systematic trend models.
Consistent multi-timeframe analysis.
Markets where daily sessions are less important.
Rolling Lookback Days
Includes bars that fall within a selected number of calendar days.
This keeps the analytical window tied to elapsed time instead of a fixed candle count.
Anchored versus rolling VWAP
Anchored modes begin at a fixed boundary and accumulate until the next reset.
Rolling modes continually remove old observations as new observations arrive.
Anchored VWAP is useful when a particular session or week has structural meaning. Rolling VWAP is useful when the trader wants a stable and continuously adapting lookback.
Volume-weighted deviation
The indicator calculates more than the VWAP mean.
It also measures volume-weighted price variance using:
Weighted Mean Square = Sum of Price² × Volume / Sum of Volume
Weighted Variance = Weighted Mean Square - VWAP²
Weighted Deviation = Square Root of Weighted Variance
This measures how widely prices associated with meaningful trading volume are distributed around VWAP.
A small deviation suggests:
Trading is concentrated near fair value.
The market is relatively balanced.
Price acceptance is narrow.
A large deviation suggests:
Trading is spread across a wider range.
Price discovery is more active.
The market is less tightly centered around VWAP.
Because the calculation is volume weighted, high-volume prices influence the bands more than low-volume excursions.
Fallback when volume is unavailable
If usable volume is not available, the indicator falls back to an unweighted arithmetic mean and variance.
This allows it to function on synthetic or limited-volume symbols, although the result should then be interpreted as a rolling or anchored mean rather than a true VWAP.
Deviation bands
The raw width is calculated as:
Deviation Width = Weighted Deviation × Deviation Multiplier
The upper and lower raw bands are:
Upper Band = VWAP + Band Width
Lower Band = VWAP - Band Width
Higher deviation multipliers create wider bands and fewer trend changes.
Lower multipliers create tighter bands and faster, more frequent flips.
ATR minimum width
During low-dispersion periods, volume-weighted deviation can become extremely narrow.
This can cause small and insignificant movements to trigger repeated reversals.
The optional ATR floor calculates:
ATR Floor = ATR × ATR Minimum Multiplier
The final width becomes:
Band Width = Maximum of Deviation Width and ATR Floor
This preserves volume-weighted deviation as the primary band engine while preventing the channel from collapsing below a practical volatility threshold.
Trailing-band construction
The raw deviation bands move freely with VWAP and dispersion.
The indicator converts them into one-sided trailing levels.
Lower trail
While the selected trigger remains above the lower trail:
The trail can rise.
It cannot move downward.
This creates a ratcheting support structure.
Upper trail
While the trigger remains below the upper trail:
The trail can fall.
It cannot move upward.
This creates a ratcheting resistance structure.
The active trend trail is:
The lower trail during bullish regimes.
The upper trail during bearish regimes.
Why trailing logic matters
A raw VWAP band can move toward price and create unstable signals.
The one-sided trail preserves trend structure and creates hysteresis.
Hysteresis means the threshold required to enter a bullish regime is different from the threshold required to enter a bearish regime.
This allows price to rotate around VWAP without constantly changing the active trend.
Trend initialization
When the first valid VWAP is available:
The trend initializes bullish if the trigger is at or above VWAP.
The trend initializes bearish if the trigger is below VWAP.
After initialization, a full break of the opposite trail is required to change regimes.
Bullish trend flip
A bullish flip requires:
The selected trigger to move above the upper trailing band.
The current trend not already to be bullish.
VWAP slope confirmation to pass if enabled.
Once confirmed:
The trend becomes bullish.
The active trail moves beneath the market.
A bullish signal marker is displayed.
Bearish trend flip
A bearish flip requires:
The selected trigger to move below the lower trailing band.
The current trend not already to be bearish.
VWAP slope confirmation to pass if enabled.
Once confirmed:
The trend becomes bearish.
The active trail moves above the market.
A bearish signal marker is displayed.
Flip trigger
The trend can be triggered using:
Close
The selected VWAP price source
Close is the more conventional option.
Using the price source, such as HLC3, can produce a slightly smoother trigger because it reflects more of the bar than the close alone.
VWAP slope confirmation
Optional slope confirmation requires VWAP itself to move in the direction of the proposed new trend.
For a bullish flip:
Current VWAP must be above VWAP from the selected lookback.
For a bearish flip:
Current VWAP must be below its prior value.
This can help reject:
Temporary band breaks.
Low-volume price spikes.
Liquidity sweeps against flat fair value.
The tradeoff is additional confirmation delay.
Breaking the trail on flips
The active trail changes from one side of the market to the other during a regime transition.
The Break Trail On Flips option inserts a visual gap on the flip bar so the previous and new trails are not connected by a misleading line segment.
This affects presentation only.
Visual trend-strength engine
The updated script includes a visual-strength model that controls the intensity of the gradient and glow.
It combines two measurements:
Distance between price and the active trail.
Slope of VWAP relative to the current band width.
Distance strength
The script measures:
Absolute Distance = |Close - Trend Trail|
This is normalized by the current band width.
A larger distance indicates stronger separation between price and the structural trail.
Slope strength
VWAP movement across the slope lookback is also normalized by the band width.
This measures whether volume-weighted fair value itself is moving meaningfully relative to the size of the current deviation structure.
Combined trend strength
The final visual strength is weighted:
70% price-to-trail distance.
30% VWAP slope strength.
This produces a value between zero and one.
It does not change trend logic or signals. It controls the visual intensity of the indicator.
Layered gradient fill
Instead of using one flat gradient, the updated indicator divides the space between the trail and price into six visual layers.
The levels are placed progressively between:
The active trend trail.
The current closing price.
The gradient is:
Most concentrated near the structural trail.
Progressively softer toward price.
The opacity adapts to trend strength.
When price is strongly separated from the trail and VWAP is moving with the regime:
The gradient becomes more vivid.
When the trend is weak:
The fill becomes softer and more transparent.
This makes the visual ribbon encode more than direction. It also reflects the current strength of the price-to-structure relationship.
Flip bloom
After a confirmed trend flip, the indicator creates a temporary bloom around the new trail.
The bloom is strongest immediately after the transition and fades over the following bars.
Its intensity follows this general sequence:
First bar after flip: strongest bloom.
Second bar: reduced bloom.
Third bar: light residual bloom.
Afterward: bloom disappears.
This visually emphasizes fresh regime changes without permanently increasing chart brightness.
The bloom is cosmetic and does not affect calculation.
Adaptive trail glow
The glow surrounding the trail also changes with trend strength.
The base width is ATR-scaled, then increases slightly as the visual trend-strength score rises.
This creates:
A broader glow during stronger regimes.
A narrower glow when trend structure is weaker.
The glow contains:
An inner, more visible layer.
A wider, softer outer layer.
Visual interpretation
The updated presentation provides several pieces of information simultaneously:
Color shows the active trend direction.
The trail shows the structural regime boundary.
Gradient intensity reflects trend strength.
Glow width reinforces structural conviction.
The bloom highlights fresh regime transitions.
How to use the indicator
Trend regime filter
Use the active color and trail position as directional context:
Favor longs during bullish regimes.
Favor shorts during bearish regimes.
Pullback structure
In a bullish regime:
VWAP represents volume-weighted fair value.
The lower trail represents deeper structural support.
In a bearish regime:
VWAP represents the mean-reversion anchor.
The upper trail represents deeper structural resistance.
Trend-strength context
A vivid gradient and broader glow suggest:
Price is well separated from the trail.
VWAP is moving in the trend direction.
The regime has stronger structural momentum.
A weak or faded gradient suggests:
Price is closer to the trail.
VWAP slope is weaker.
The trend may be consolidating or losing strength.
Fresh transitions
The bloom helps identify newly established regimes.
A fresh flip with:
Strong bloom.
Growing price separation.
VWAP slope alignment.
generally represents stronger early trend structure than a flip that immediately loses visual intensity.
Dynamic risk management
The active trail may be used as:
A trailing stop reference.
A regime invalidation boundary.
A position-management guide.
Because the trail responds to both volume-weighted dispersion and volatility, it adjusts as market conditions change.
How this differs from a standard VWAP
A standard VWAP:
Plots only volume-weighted mean price.
Usually resets once per session.
Does not maintain trend state.
VWAP Deviation Trend:
Supports anchored and rolling windows.
Calculates volume-weighted dispersion.
Creates adaptive raw bands.
Converts them into directional trailing boundaries.
Maintains persistent bullish and bearish regimes.
Adds a strength-reactive visual system.
How this differs from Supertrend
A traditional Supertrend normally uses a central price such as HL2 and ATR-based bands.
VWAP Deviation Trend uses:
Volume-weighted fair value as the center.
Volume-weighted standard deviation as the primary width.
ATR only as an optional minimum floor.
This means the trail responds not only to range volatility, but also to where trading volume has been concentrated.
How this differs from Bollinger Bands
Bollinger Bands normally use:
A moving average.
Unweighted standard deviation.
Symmetrical non-trailing bands.
This indicator uses:
A volume-weighted mean.
Volume-weighted variance.
One-sided trailing bands.
Persistent trend-state logic.
It is therefore a trend-regime model rather than a standard mean-reversion envelope.
Input guide
VWAP Mode
Selects the anchored or rolling calculation window.
Deviation Multiplier
Controls the width of the statistical bands.
Higher values produce wider, slower regimes. Lower values produce tighter and faster regimes.
ATR Minimum Width
Prevents excessive narrowing during compressed conditions.
VWAP Slope Confirmation
Requires volume-weighted fair value to move with the proposed trend.
Flip Trigger
Selects whether close or the chosen price source must cross the trail.
Visual settings
Allow the trader to display:
The trend trail.
VWAP.
Raw deviation bands.
Layered gradient.
Adaptive glow.
Signals.
Trend candles.
Strengths
Combines fair value, dispersion, and trend structure.
Uses volume-weighted mean and variance.
Supports multiple anchored and rolling VWAP windows.
Uses ATR protection against narrow-band whipsaws.
Creates persistent regimes with hysteresis.
Provides optional VWAP slope confirmation.
Includes a trend-strength-reactive visual system.
Clearly emphasizes fresh trend transitions.
Limitations
Volume quality varies between instruments.
Anchored VWAP modes may be unstable immediately after a reset.
Long windows can react slowly to sudden regime changes.
Tight settings can increase whipsaws.
Wide settings can delay reversals.
Slope confirmation can add additional lag.
Visual strength is contextual and is not a separate trading signal.
Alerts
The indicator includes alerts for:
Confirmed bullish trend flips.
Confirmed bearish trend flips.
These represent complete VWAP deviation regime changes, not ordinary crosses of VWAP.
Summary
VWAP Deviation Trend converts volume-weighted fair value and price dispersion into a directional trend trail.
It calculates VWAP over a configurable anchored or rolling window, measures volume-weighted standard deviation around that VWAP, and builds upper and lower deviation bands. An optional ATR floor prevents the structure from becoming excessively narrow during quiet conditions.
The raw bands are transformed into one-sided trails. The lower trail ratchets upward during bullish regimes, while the upper trail ratchets downward during bearish regimes. Trend changes occur only when price breaks the opposite trail, optionally with confirmation from the slope of VWAP.
The updated visual engine measures price separation and VWAP slope to dynamically control the layered gradient, trail glow, and temporary post-flip bloom. This creates a clearer representation of direction, structural strength, and fresh regime transitions without changing the underlying signal logic. Indicator

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 PulseWire! Indicator

Fibonacci Levels Engine [StrixEDGE]What It Does
Fibonacci Levels Engine automatically detects the most recent swing high and swing low within a configurable lookback window, draws the standard Fibonacci retracement grid (0 %, 23.6 %, 38.2 %, 50 %, 61.8 %, 78.6 %, 88.6 %, 100 %) plus the 127.2 % and 161.8 % extensions, and projects every level into the future so you can see where price is heading relative to the structure.
What separates this indicator from a plain Fibonacci overlay is the Edge Analysis layer — three original components that work together to tell you how meaningful a given Fibonacci zone is right now, not just where it sits on the chart:
1. Edge Score (0–100) — A composite confluence gauge displayed in the dashboard.
2. Proximity Heatmap — Dynamic line opacity that makes levels glow as price approaches them.
3. ATR Volatility Band — A band around the Golden Zone midpoint that adapts to current volatility.
How It Works
Core: Swing Detection & Fibonacci Grid
The indicator scans the last N bars (default 20, configurable 5–300) to find the highest high and lowest low. It determines trend direction by comparing which extreme occurred first: if the swing low is further back in time than the swing high, the structure is bullish (price moved from low to high); otherwise it is bearish. Fibonacci ratios are then calculated from that range and drawn as horizontal levels from the swing origin to a user-defined projection length (default 30 bars into the future).
Two shaded zones highlight areas of interest:
- Golden Zone (0.618–0.786) — the highest-probability retracement area in classical Fibonacci theory.
- Deep Zone (0.786–0.886) — often the last line of defense before a full retracement.
Both zones, the 50 % midline, and the extension levels can be toggled on or off independently.
Edge Score — Confluence Gauge
The Edge Score combines three independent measurements into a single 0–100 reading:
RSI Momentum Alignment | 0–35 | In a bullish structure, a low RSI (below 35) scores highest because it signals oversold conditions near support. In a bearish structure, a high RSI (above 65) scores highest. Intermediate RSI values receive proportionally lower scores. |
| Proximity to Golden Zone | 0–35 | Measures the absolute distance between the current close and the Golden Zone midpoint as a ratio of the total Fibonacci range. The closer price is to the midpoint, the higher the score. |
| EMA Trend Alignment | 0–30 | Checks the stacking order of the 8, 21, and 55-period EMAs. A fully aligned stack (e.g., EMA 8 > EMA 21 > EMA 55 in a bullish structure) scores 30; partial alignment scores 20; misalignment scores 10. |
The resulting score is classified as STRONG (≥ 75), MODERATE (≥ 50), WEAK (≥ 25), or LOW (< 25) and displayed with a color-coded label in the dashboard. A high Edge Score means RSI, price proximity, and trend direction are all converging at the Fibonacci zone — not just that price touched a line.
Proximity Heatmap
Every Fibonacci level's line opacity is recalculated on each bar based on how far the current close is from that level. When price is near a level, the line becomes more opaque (visually brighter); when price is far away, the line fades. This is computed as a transparency value derived from the ratio of (distance to level) / (total Fibonacci range), scaled between 10 and 75. The effect lets you instantly see which levels are "active" without scanning numbers — the relevant lines stand out on their own.
ATR Volatility Band
A translucent band is drawn around the Golden Zone midpoint, extending ± 0.5 × ATR (default 14-period). This addresses a practical problem: a Fibonacci level is a single price, but real entries need a buffer that accounts for market noise. The band widens in volatile conditions and contracts in quiet ones, giving you a dynamic "fair value area" inside the Golden Zone rather than a fixed line.
Dashboard Panel
A compact table in the top-right corner of the chart displays:
- Trend — Current structural direction (Bull / Bear) with color coding.
- Edge — The composite Edge Score and its label.
- RSI — Current RSI value, color-coded for overbought/oversold extremes.
- G-Zone — Live status showing ✅ with the midpoint price when the close is inside the Golden Zone
or ⏳ Waiting when it is outside.
- ATR — Current Average True Range value.
- Range — The total Fibonacci range (swing high minus swing low).
Dashboard text size is adjustable (Tiny / Small / Normal / Large).
How to Use It
Identify the structure — Add the indicator to your chart. The dashboard immediately tells you whether the current swing structure is bullish or bearish and shows the Edge Score.
Watch the Golden Zone — When price pulls back toward the 0.618–0.786 area, check the dashboard: a high Edge Score (50+) means RSI and trend EMAs are aligned with the retracement, which increases the odds of a bounce. The G-Zone row will switch from ⏳ to ✅ when price enters the zone.
Use the Volatility Band for entries — Rather than placing a limit order on the exact 0.618 or 0.786 line, use the ATR band as your entry zone. It automatically adjusts to current volatility, giving you a wider buffer in choppy markets and a tighter one in clean trends.
Read the heatmap — Glowing lines tell you which levels price is currently interacting with. If a line is bright and the Edge Score is high, that level carries more weight. If the line is faded, price is far away and the level is not in play.
Settings Overview
- Pivot Lookback (5–300, default 20) — Number of bars scanned for swing high/low detection.
- Right Projection (5–200, default 30) — How far levels extend into the future.
- Golden Zone / Deep Zone / 50 % / Extensions — Toggle individual level groups.
- Edge Score Panel — Show or hide the dashboard.
- ATR Volatility Band — Show or hide the dynamic band.
- Proximity Heatmap — Enable or disable the distance-based line opacity effect.
- ATR / RSI Length — Periods for the ATR and RSI calculations used in the Edge Score and Volatility Band.
- Style — Full color customization for bullish/bearish, zones, bands, levels, labels, and line width.
Set alerts — Four built-in alert conditions are included:
- Price enters the Golden Zone (0.618–0.786)
- Price enters the Deep Zone (0.786–0.886)
- Edge Score reaches 75 or above (strong confluence)
- Price crosses the 0 % or 100 % level (breakout / full retracement) Indicator

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. Indicator

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

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

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.
Indicator

[ 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 PulseWire 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. Indicator

[ 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: Indicator

Indicator

ICT Fractal SMT Divergence Engine [v6]
ENGLISH
🔥 ICT Fractal SMT Divergence & Auto-Triad Engine is a professional, high-precision PulseWire 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 концепциям. Indicator
