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

Indicator

Indicator

Indicator

Indicator

Buy Sell Badge with DMI & ADX by ByblloBuy Sell Badge with DMI & ADX generates Buy/Sell badges from a Fast/Slow EMA crossover, then automatically manages an ATR-based stop loss and risk:reward take profit for every signal.
On top of the base EMA signal, you can layer in two independent trend-strength filters:
- DMI filter: confirms the signal with a DI+/DI- crossover near the same bars (with an optional "ADX Rising" requirement)
- ADX filter: confirms the signal with an upper or lower ADX threshold zone (each zone with its own optional "ADX Rising" requirement)
Enable either filter alone, both together for the strictest "DUAL BUY/SELL" confirmation, or neither for the raw EMA signal.
INTENDED USE
Built for short-term futures scalping - Nasdaq futures, KOSPI200 futures, and similar instruments. Primarily designed and tested on the 1-minute chart, but the EMA/ATR/DMI/ADX logic is timeframe-agnostic and works well on 2, 3, and 5-minute charts and other intraday timeframes too. When switching timeframe or instrument, re-check the SL Multiplier, Risk:Reward, and Alert Sensitivity (Points) inputs, since typical point moves and ATR scale with the timeframe.
FEATURES
- Fast/Slow EMA crossover base signal with optional candle confirmation
- ATR-based stop loss and R:R-based take profit with intermediate TP levels
- Independent DMI and ADX confirmation filters, each with its own length and thresholds
- "ADX Rising" toggles on each filter zone (DMI, ADX upper, ADX lower) for extra momentum confirmation
- Automatic entry invalidation on opposite signals
- Live position table (entry / stop / take profit / current R:R)
- Full alert set: BSB, BSB+DMI, BSB+ADX, BSB+DMI+ADX, TP hit, SL hit, invalidated
- Works on any chart type (candlestick, Heikin Ashi, Renko, etc.) since prices are pulled via request.security() from the underlying ticker
This is a visual/alerting tool only - it does not place real orders. For educational and informational purposes only, not financial advice. Always backtest and forward-test before using with real capital. Indicator

MoreThanMoney Aurum Flow ORBMoreThanMoney — Aurum Flow
A trend-following signal engine built for crypto perpetual futures (optimized for the 1H timeframe). Aurum Flow only takes trades in the direction of the dominant trend and frames each setup with a complete, static trade plan — entry, stop, and three take-profits — plus position-sizing and cost analytics for leveraged accounts.
How it works
Trend filter (DEMA stack): longs only when DEMA 15 > 50 > 238, shorts only when reversed. Counter-trend noise is filtered out.
Signal trigger: a Point-of-Control (volume POC) crossover, confirmed by the trend filter and an optional RSI check.
Static trade plan: on the signal bar, Entry / SL / TP1 / TP2 / TP3 are calculated once and frozen — the levels never drift.
ATR risk model: SL = 1.5×ATR by default; targets at 1:1.5, 1:3 and 1:6 R (fully configurable). A percentage mode is also available.
Built for perpetuals
Each level label shows the distance to entry in points and %.
An account panel turns your inputs (account size, risk %, taker fee, max leverage) into suggested notional, useful leverage, margin, and round-trip fee cost — so you know the real cost and sizing of every trade before you take it.
Alerts / automation
Uses alert() with a structured JSON payload (symbol, direction, entry, SL, all TPs, distances, leverage, cost). Create one alert with the "Any alert() function call" condition to route signals to your own webhook/journal.
Recommended use: apply to liquid perpetual markets on the 1H chart. Start with the default risk model and adjust to your own plan.
⚠️ For educational purposes only. Not financial advice. Trading leveraged perpetual futures carries a high risk of loss. Past performance does not guarantee future results.
© RicardoGarciaPT / MoreThanMoney. Indicator

Momentum PowerTrend & Momentum Power (Futures Traders)
What it does
This indicator gives NQ traders a fast read on trend and momentum strength — for NQ and ES side by side — without having to flip charts. It's built for spotting confluence: when NQ and ES are both showing strong trend/momentum in the same direction, that agreement is often more meaningful than either instrument alone. When they diverge, that relative strength/weakness between the two can be just as useful to watch.
How it works
Trend Power is derived from Wilder's DMI/ADX — it measures how strong a directional trend is, not just whether one exists.
Momentum Power is an ATR-normalized rate-of-change — it measures how fast price is moving relative to recent volatility, so readings stay consistent across different volatility regimes.
Each reading is scored 1–3 dots (weak/medium/strong) and colored bullish, bearish, or neutral/indecisive.
The dashboard shows four rows: NQ Trend, NQ Momentum, ES Trend, ES Momentum — so you can see both instruments' internal state at a glance.
ES data is pulled live via request.security, so no need to switch charts.
New: Candle coloring on confluence
When enough dots across all four rows agree on direction (default: 7 of 12), the candles on your chart change color — green for bullish consensus, red for bearish. This is a visual cue for when NQ and ES trend/momentum are aligned, not aligned individual instrument readings in isolation.
Important — this is not a buy/sell signal
This tool does not generate entries, exits, or trade recommendations. It's a read on relative trend and momentum strength between NQ and ES to help you gauge confluence and context. Candle coloring reflects dot agreement, not a system signal — it still requires your own judgment, risk management, and confirmation from your broader trade plan before acting on anything you see.
Inputs
ES symbol is configurable (defaults to CME_MINI:ES1!; swap for micros or a fixed contract month)
All thresholds (trend/momentum weak/medium/strong, deadzones) are adjustable per your own calibration
Dot consensus threshold and candle colors are configurable independently of the dashboard dot colors Indicator

Momentum Map Lite [PrimeFold]Four stochastic oscillators, read as one alignment score from 0/4 to 4/4.
Free, no signals, no alerts.
Momentum Map Lite runs four stochastic oscillators at different lookbacks
(fast, mid, slow, anchor) and plots their D-lines in one pane.)
You read one alignment score instead of watching all four:
- 4/4 BULL: all four turning up from oversold
- 4/4 BEAR: all four turning down from overbought
- Anything between: partial alignment, no full rotation
The background shades only at 4/4, and only on a closed bar, so it doesn't repaint.
The dashboard shows the current rotation count plus the strongest and weakest of the four.
It doesn't generate alerts, give entry signals, or detect divergence.
This is the alignment read.
Check whether momentum agrees across the four before you act on any one of them.
Indicator

Khabib Takedown Fractal Nest Breakdown ViprasolKhabib Takedown — Fractal Nest Breakdown 🤼
CONCEPT
This tool looks for SELF-SIMILARITY in a decline: a big bearish leg (lower high -> lower low)
with a smaller bearish leg nested inside it that is a scaled copy — same shape, a fraction of
the size. When the small "fractal" completes in the direction of the big one (a break of the
last low), the structure grounds price -> SHORT. It is a fractal-echo measurement, not a plain
lower-low. The nesting ratio between the small leg and the big leg is the core filter.
HOW IT DETECTS
- Swings are found with confirmed pivot highs/lows (left/right bar lookback) and chained into a
lightweight zigzag.
- The tool reads the last four alternating swings (high, low, high, low).
- Big leg = first high minus first low; small leg = second high minus second low.
- A valid nest requires: lower high and lower low (bearish structure); big leg >= (Min big x ATR);
small leg positive; and the nesting ratio (small/big) inside the band .
- The signal fires when price closes below the most recent swing low and the bar closes red.
- ATR (Wilder) scales the minimum big-leg size across instruments and timeframes.
ENTRY / STOP / TARGET
- Entry: SHORT on the close of the confirming (red) bar that breaks the last low.
- Stop: above the second (inner) swing high plus an ATR buffer (default 0.3 x ATR).
- Target: entry minus R multiple x risk (default 2R, where risk = stop distance).
- The script draws the big leg and the nested small leg, plus filled TP and SL zones that extend
to the right until price touches one of them.
NON-REPAINTING
Pivots are only used once fully confirmed (they require the right-side bars), and the signal is
evaluated on bar close (barstate.isconfirmed). Drawings are created on the confirmed bar. The tool
does not repaint completed signals. Live, the forming bar can still change until it closes, as with
any bar-close tool.
FEATURES
- Fractal nesting (scaled self-similar legs), not a plain lower-low break.
- ATR-scaled minimum big-leg requirement and adjustable nesting-ratio band.
- Automatic R-multiple TP and ATR-buffered SL, drawn as zones that extend until hit.
- One-trade-at-a-time option and a minimum-bars-between-signals gap to reduce clustering.
- On-chart status table (open trades) and an alertcondition for automation.
INPUTS OVERVIEW
- Swing pivot left/right bars: swing sensitivity.
- Nesting ratio band (ratLo/ratHi): how close in scale the small leg must be to the big leg.
- Min big leg (x ATR) and ATR length: minimum move and volatility scaling.
- TP R multiple, SL buffer (x ATR), min bars between signals, one-trade-at-a-time.
- Visual colors, label offset, and zone transparency.
HOW TO USE
1. Add to any liquid symbol and timeframe; start with defaults.
2. Tighten the nesting-ratio band for stricter self-similarity, or widen it for more signals.
3. Raise Min big leg (x ATR) to demand larger, cleaner declines before a nest counts.
4. Use the drawn TP/SL zones for context; set an alert on the signal for hands-off monitoring.
5. Combine with your own trend/context read before acting.
LIMITATIONS
- This is a pattern/education tool, not a signal service, and not financial advice.
- Breakdown patterns fail; nesting geometry is a filter, not a guarantee. Losing signals will occur.
- Pivot confirmation adds inherent lag (it needs bars to the right of a swing to confirm).
- Very choppy or illiquid markets can produce misshapen legs and weak signals.
- Requires user discretion, risk management, and position sizing. No performance is implied.
CREDITS
The name is an inspirational sports homage only; it does not imply any endorsement or affiliation.
ATR uses Wilder's average true range. Pivot/zigzag swing detection uses standard public techniques.
The fractal-nest (scaled self-similar leg) geometry, the detection assembly, and the trade/zone
visualization are original Viprasol work.
Original Viprasol work; no third-party Pine code reused.
Indicator

Williams %R Ribbon
Williams %R Ribbon
Most traders know Williams %R as a classic overbought/oversold oscillator. Unfortunately, many stop there.
The Williams %R Ribbon reimagines this well-known indicator into a modern visualization designed to make momentum, trend transitions, and market extension easier to read at a glance. Instead of focusing solely on fixed overbought and oversold levels, this indicator emphasizes the relationship between Williams %R and its signal line, transforming that relationship into an intuitive gradient ribbon that helps reveal changes in market structure before they become obvious.
Features
Momentum Ribbon
The traditional Williams %R line is transformed into a dynamic ribbon that expands, contracts, and changes color based on the relationship between Williams %R and its signal line.
Bullish momentum is displayed with a green ribbon.
Bearish momentum is displayed with a red ribbon.
Neutral conditions automatically fade to gray when momentum becomes indecisive.
The ribbon allows traders to recognize momentum shifts without constantly watching for line crossovers.
Multi-Timeframe Analysis
Analyze higher timeframe Williams %R values directly on lower timeframe charts.
Choose from:
Chart Timeframe
2× Chart Timeframe
4× Chart Timeframe
Manual Timeframe Selection
This makes it possible to monitor higher-timeframe momentum while executing trades on lower timeframes without adding multiple indicators to the chart.
Optional Display Smoothing
The ribbon includes display-only smoothing designed to reduce visual stair-stepping that naturally occurs when displaying higher timeframe calculations on lower timeframe charts.
Importantly:
Indicator calculations remain unchanged.
Signal generation remains unchanged.
Alerts continue using the original data.
Only the visual appearance of the ribbon is smoothed.
Extension Grade
Instead of simply identifying whether Williams %R is overbought or oversold, the indicator continuously classifies the current level into extension categories such as:
Moderately Extended
Extended
Very Extended
Extremely Extended
This provides additional context regarding how far price has stretched relative to its recent trading range.
Flexible Display Modes
Choose the visualization that best fits your trading style.
Available display modes include:
Ribbon
Signal Line Only
Solid Signal Line Only
Ribbon + Signal Line
Whether you prefer a clean minimalist chart or a full ribbon visualization, the indicator adapts to your workflow.
Dynamic Coloring
The ribbon automatically adjusts its colors based on current market conditions.
Strong bullish momentum receives brighter bullish colors.
Strong bearish momentum receives brighter bearish colors.
Neutral conditions fade naturally, helping reduce visual noise during consolidation.
Built-In Alerts
Alerts are included for:
Bullish ribbon crosses
Bearish ribbon crosses
Oversold exits
Overbought exits
All Extension Grade thresholds
Because alerts use the original unsmoothed Williams %R values, visual smoothing never delays signal generation.
Designed for Clarity
Many oscillators overwhelm traders with unnecessary visual clutter.
The goal of this indicator is the opposite.
Every design decision was made with one objective:
Help traders understand what the oscillator is communicating as quickly as possible.
The gradient ribbon allows momentum, trend direction, and market extension to be interpreted almost instantly while maintaining the familiar foundation of the classic Williams %R.
Best Used For
Trend confirmation
Multi-timeframe analysis
Momentum analysis
Mean reversion strategies
Swing trading
Identifying overextended markets
Building rule-based trading systems
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial, investment, legal, or tax advice and should not be considered a recommendation to buy or sell any financial instrument.
No indicator can predict future market movements or guarantee profitable results. Market conditions change continuously, and all trading involves risk, including the potential loss of all invested capital.
Past performance does not guarantee future results. Always perform your own analysis, practice sound risk management, and consult a qualified financial professional if you require investment advice. Indicator

Indicator

Trend Continuation Momentum Detector TCMD v3 — Trend Continuation Momentum Detector
Core Concept
TCMD is a weighted multi-factor momentum scoring system built on Heiken Ashi candles. Instead of one signal triggering everything, it blends five independent measurements of "how strong is this move" into a composite Momentum Score (0–100), then layers state logic, filters, and risk levels on top.
The five scoring factors
Body Expansion (30% weight) — Is this candle's body unusually large? Calculated as HA body / 20-bar avg body, scaled to 0–100.
Wick Quality (25% weight) — Is the move "clean" (no rejection)? The wick opposing the candle's direction is measured as a % of body size — a small opposing wick scores high.
Trend Slope (20% weight) — Is the EMA of HA close actually rising/falling with conviction? EMA slope over slopeLookback bars, normalized by ATR, then multiplied by a sensitivity factor.
Volume (15% weight) — Is volume confirming the move? volume / 20-bar avg volume, scaled.
Z-Score / distance from mean (10% weight) — Is price extended from its own EMA in a statistically meaningful (but not extreme) way? (HA close − EMA) / stdev, scored with a bell-shaped curve peaking around 0.5–2.0 SD and decaying past 3 SD (overextended).
These combine into a weighted average (weights auto-normalize even if they don't sum to 100) to produce momentumScore.
Why Heiken Ashi
HA smooths noise so body size/wick logic reflects sustained pressure rather than single-tick noise — important since body expansion and wick quality are core inputs.
Signal Logic — 5-State Machine
Each confirmed bar is classified as:
STRONG BUY — momentumScore > threshold (default 75) AND bullish HA candle AND clean wick AND body > average AND HA close above EMA AND (optional) close above VWAP AND (optional) delta positive
STRONG SELL — mirror conditions to the downside
BUY / SELL (bias) — looser: HA close vs EMA + VWAP direction + momentumScore ≥ 50, no wick/body purity required
NEUTRAL — none of the above
This state drives everything downstream: candle coloring, markers, warnings, and TP/SL.
"One-Shot + EMA Reset" Entry Logic
The key anti-spam mechanism: a Strong Buy/Sell marker fires once per cycle, then locks. It won't fire again until price pulls back and touches the EMA (low touches EMA resets buy-side, high touches EMA resets sell-side). This stops multiple entry signals stacking up during one continuous trending move — you get one entry, then must wait for a retest before the next is valid.
Warning System
Light Warning (diamond) — Strong Buy/Sell degrades to plain Buy/Sell, same direction, losing steam
Heavy Warning (x-cross) — Strong Buy/Sell degrades to Neutral or flips to the opposite bias — reversal risk
These are degradation alerts for managing an existing position, not new directional entries.
VWAP & Delta as Confirmation Filters
VWAP filter — Strong signals optionally require price on the "correct" side of session VWAP. Most meaningful intraday since VWAP resets each session.
Delta filter — pulls real buy/sell volume from a lower timeframe (default 1-min) and requires it to agree with signal direction. Falls back to candle direction (close vs open) when lower-timeframe data isn't available in deep history.
Mean Reversion (MR) Signal — separate counter-trend logic
MR looks for momentum exhaustion at a statistical extreme, the opposite philosophy from the trend signals. It fires when:
Price is ≥ mrSdThreshold VWAP standard deviations away (default 1.8 ≈ near the 2SD band)
Momentum Score is weak (< mrMomentumMax) and optionally fading vs the prior bar
The current HA body is small (neutral) and its real high/low engulfs the previous candle's body — a rejection pattern
Session warm-up (mrMinBars) and minimum VWAP SD width (mrMinSdPct) guards are satisfied so it doesn't fire on noisy early bars
MR has its own optional dotted TP/SL lines and alerts, independent of trend-following TP/SL.
TP / SL Levels
When a fresh Strong Buy/Sell fires, TP1/TP2/SL are calculated from the signal candle's HA range (high−low), drawn from the next bar's real open:
Long: TP1 = entry + 2×range, TP2 = entry + 4×range, SL = entry − 1.5×range
Short: mirrored
An "Active SL" is tracked internally; if close crosses through it, an SL-hit marker/alert fires and clears the level.
How to Use It in Practice
Check the current state first — Strong Buy/Sell, Buy/Sell, or Neutral — as your top-line read.
Strong Buy/Sell circle = entry trigger. TP/SL lines (if enabled) auto-draw on the next bar's open.
Diamond (light warning) = start thinking about trimming/tightening — momentum easing, direction unchanged.
X-cross (heavy warning) = treat as an exit signal for the prior position, not a new entry.
Consecutive strong bars = move is extended, higher risk of a sharp mean-reversion snap — cross-check against MR triangles.
VWAP Z-Score / SD bands — gauge how stretched price is; MR triangles are your explicit counter-trend cue at extremes.
ATR — elevated/high readings mean volatility regime has shifted; sanity-check your TP/SL multiples still fit the current range.
Delta — cross-check real order flow agrees with the HA/EMA-based signal, useful for scalping confirmation beyond price action alone.
One thing worth flagging for your GC/NQ intraday use: the VWAP filter and MR signal are most meaningful on session-based intraday timeframes given the session-reset VWAP — on higher timeframes or across sessions, those two features lose some of their intended meaning. Indicator

Relative Strength Confluence - vs BenchmarkRS Confluence - Dual Signal vs Benchmark
RS Confluence is a relative strength indicator designed to measure whether the current symbol is outperforming or underperforming a chosen benchmark (default: BTC), using two independent signals on the price ratio between the symbol and the benchmark.
How it works
The indicator calculates a ratio between the current symbol's close and the benchmark's close (Symbol / Benchmark), then evaluates it through two lenses:
Level — RSI applied directly to the ratio. Measures whether the symbol is currently trading strong or weak relative to the benchmark.
Momentum — RSI applied to the Rate-of-Change of the ratio. Measures whether relative performance is accelerating or decelerating.
Both signals are kept on the same 0-100 scale, allowing them to be plotted together and compared directly.
Confluence Scoring
Bullish signal — Level and Momentum both cross above the bullish threshold (default 55) → RS BULLISH 2/2.
Bearish signal — Level and Momentum both cross below the bearish threshold (default 45) → RS BEARISH 2/2.
Partial agreement (1/2) and neutral readings (0/2) are also tracked and displayed in the info table.
Features
- Configurable benchmark symbol (any ticker, default BTC)
- Dual confluence scoring (Level + Momentum)
- Background coloring on full confluence
- Triangle markers on the first bar of a new confluence signal
- Live info table showing ratio, level, momentum and confluence status
- Built-in warning when the chart symbol matches the selected benchmark
- PulseWire alert conditions for bullish/bearish confluence and midline crosses
- Non-repainting (uses confirmed values on the current timeframe)
How to Read the Chart
Blue Line (Level) — RSI of the Symbol/Benchmark ratio. Shows whether the symbol is currently stronger or weaker than the benchmark.
Orange Line (Momentum) — RSI of the ratio's Rate-of-Change. Shows whether that relative strength is accelerating or fading.
Dashed Threshold Lines — The upper line is the bullish threshold, the lower line is the bearish threshold. Full confluence requires both Level and Momentum to be on the same side of their respective threshold at the same time.
Red Triangles (top, pointing down) — Mark the first bar of a new RS BEARISH 2/2 signal: both Level and Momentum dropped below the bearish threshold together.
Green Triangles (bottom, pointing up) — Mark the first bar of a new RS BULLISH 2/2 signal: both Level and Momentum rose above the bullish threshold together.
Background Shading — Highlights the full duration of an active confluence signal (not just the trigger bar), making it easy to see how long the symbol stayed in a bullish or bearish RS regime.
Suggested Interpretation
RS Confluence is intended as a context indicator, not a standalone trading signal. A coin can show a strong technical setup on its own chart, but if it is underperforming the benchmark (e.g. BTC), the setup carries less weight — and vice versa. Use this indicator to filter or confirm signals from other tools rather than trading it in isolation.
Important
Do not apply this indicator to a chart where the symbol is the same as (or economically equivalent to) the selected benchmark — the ratio becomes constant or near-constant, making the readings meaningless. The indicator detects an exact ticker match and displays a warning in the info table, but different tickers referencing the same underlying asset (e.g. the same coin on a different exchange or quote currency) are not automatically detected.
This is the third indicator in a related series, designed to work alongside Divergence Confluence 7 and Volume Surge - Dual Period as part of a broader confluence-based analysis approach. Indicator

Indicator

EMA 8/12/21EMA 8/12/21 plots three exponential moving averages — fast, medium, and slow — to give a quick read on short-term trend and momentum. When the fast EMA is above the medium, and the medium is above the slow, price is in a bullish stack; the reverse order signals a bearish stack. Beyond the three lines, the indicator includes optional visual and alert tools (ribbon fill, background shading, bar coloring, a higher-timeframe EMA overlay, a noise filter, and crossover alerts) that can each be switched on independently from the settings menu. Indicator

AlgoForex PULSE Momentum & Volatility CompassAlgoForex PULSE is a single-pane trend, momentum and volatility read-out. It replaces the usual stack of three separate indicators — a moving average, an oscillator and a volatility gauge — with one adaptive framework drawn directly on price.
WHY IT EXISTS
A fixed-period moving average has one setting and two problems: it lags in a trend and whipsaws in a range. Most traders answer this by adding an oscillator in a lower pane and a volatility filter somewhere else, then spend the session moving their eyes between three places. PULSE folds those three jobs into one object on the chart.
HOW THE BASELINE WORKS
The baseline is an adaptive average driven by an efficiency ratio. For the chosen lookback it measures:
• net directional travel = |price now − price N bars ago|
• total travel = the sum of every bar-to-bar move over the same N bars
The ratio of the two is the efficiency ratio. Near 1, almost all movement went one way, so the average is allowed to accelerate toward price. Near 0, price covered a lot of distance and ended up nowhere, so the average slows down and flattens. The smoothing constant is squared, which makes the transition between the two states sharper than a linear blend.
The practical effect: the line tracks trends closely, then stops reacting to noise when the market goes sideways.
AURORA BANDS
Three ATR-scaled layers are drawn on each side of the baseline and filled with the live trend colour. They serve two purposes at once:
• the WIDTH shows current volatility — the cloud breathes as ATR expands and contracts
• the POSITION of price inside the cloud shows how stretched the move is
A close hugging the outer band is an extended move. A close oscillating around the baseline is a market with no commitment.
TREND STATE (with hysteresis)
The trend does not flip the moment price touches the baseline. It requires a close beyond baseline ± (Trend Trigger × ATR), default 0.5× ATR. This buffer is the difference between a handful of meaningful flips per session and dozens of meaningless ones. Raise it for fewer, slower signals; lower it for a more reactive read.
Flips are marked with and labels.
MOMENTUM SCORE (0-100)
Rather than a second pane, momentum is reduced to one number:
Momentum = 55 × normalised position inside the bands + 45 × RSI
The position component is clamped to ±1 so a single spike bar cannot dominate the reading. The result drives three things: the gauge in the dashboard, the candle colour gradient, and the surge markers (small dots) fired when the score crosses the bullish or bearish levels.
CONVICTION
The dashboard shows the raw efficiency ratio as a percentage. This is deliberately kept separate from the momentum score because the two answer different questions:
• Momentum = which direction, how strongly
• Conviction = how clean that movement was
A high momentum score with low conviction is a move fighting through chop. High on both is the condition worth acting on.
SQUEEZE RADAR
Current ATR is compared against its own percentile over a lookback window (default: bottom 25% of the last 100 bars). While ATR sits in that bottom band the background is tinted, marking compression. The bar where ATR climbs back out is marked with a the expansion point.
Compression tells you nothing about direction, only that the range is unusually tight. Pair it with the trend state for a directional bias.
HOW TO USE IT
1. Read the trend colour first — it sets your bias for the session.
2. Check Conviction. Below roughly 20% the market is not paying trend-followers.
3. Wait for price to pull back toward the baseline rather than chasing the outer band.
4. Treat a squeeze release in the direction of the trend as a timing cue, not a signal on its own.
5. Momentum surge dots confirm strength — they are not standalone entries.
SETTINGS THAT MATTER MOST
• Adaptive Length — the responsiveness of the whole system. Lower = faster.
• Trend Trigger ( ATR) — signal frequency. The single most useful dial here.
• Squeeze Percentile — how rare a "squeeze" should be. Lower = stricter.
ALERTS
Bullish trend flip Bearish trend flip Bullish momentum surge Bearish momentum surge Squeeze started Squeeze release.
NOTES
Works on any symbol and any timeframe. The dashboard is bilingual (English) and can be switched in the settings.
This indicator is an analysis tool. It does not predict price and it is not financial advice. No indicator has an edge on its own — use it inside a plan that includes risk management and position sizing. Past behaviour of any tool does not guarantee future results. Indicator

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

Indicator

Equity Risk Indicator - BCA-Style ProxyEquity Risk Indicator – Multi-Factor Composite (ERI Proxy)
Overview
The Equity Risk Indicator (ERI) is a standardized, equally-weighted composite that measures how stretched the US equity market is across four independent dimensions: price momentum, investor sentiment, speculative futures positioning, and deviation from the long-term trend. The concept is inspired by institutional risk aggregation frameworks: instead of relying on a single overbought/oversold metric, several uncorrelated risk factors are normalized via z-scores and combined into one oscillator.
Readings above +1 standard deviation have historically clustered near major market tops (2000, 2007, 2018, 2021), while readings below −1 have coincided with washed-out, contrarian buying zones. The indicator is designed as a regime and risk-management tool, not as a standalone entry signal.
Methodology
Each component is transformed into a rolling z-score (default lookback: 500 bars), then all active components are equally weighted, and the resulting composite is re-standardized and smoothed with an EMA. This double standardization keeps the output stable around a zero mean with interpretable ±1 / ±2 SD bands.
1. Composite Momentum Equally-weighted z-scores of the 3-month, 6-month, and 12-month rate of change. Captures how extended price momentum is relative to its own history across multiple horizons.
2. Sentiment (inverted) Z-scores of the volatility index (default: TVC:VIX) and the put/call ratio (default: USI:PCA), both inverted. Low implied volatility combined with low put demand signals complacency — historically a late-cycle risk condition.
3. Futures Positioning (COT) Noncommercial net long positions (Legacy report, Long minus Short) for E-mini S&P 500 futures, retrieved via the official PulseWire/LibraryCOT. Elevated speculative net-long positioning indicates crowding. CFTC contract code is configurable (default: 13874A). Note: COT data is weekly, so this component updates in steps on daily charts.
4. Trend Deviation (earnings-expectations proxy) Deviation of the log price from its long-term linear regression (default: ~3 years). When price trades far above its structural trend, aggressive growth expectations are priced in — serving as a proxy for forward earnings optimism, which is not directly available as a data feed.
Each component can be toggled on/off individually. When a data source fails to load, the composite automatically re-weights across the remaining components.
How to Read It
Above +1 SD (red zone): Elevated risk. Momentum, sentiment, positioning, and/or trend extension are stretched simultaneously. Historically associated with topping conditions — consider tightening risk, reducing leverage, or hedging.
Rollover below +1 SD (circle markers): The indicator crossing back under +1 after an overheated reading has historically appeared near cycle peaks. This is the pattern highlighted by the circle markers at the top of the pane.
Around 0 (mean): Neutral regime.
Below −1 SD (green zone): Depressed risk conditions — panic sentiment, washed-out momentum, light positioning. Historically a contrarian accumulation zone.
The data window additionally displays all four component z-scores separately, so you can see at any bar which factor is driving the composite.
Settings
Components: Toggle Momentum, Sentiment, COT Positioning, and Trend Deviation independently
Symbols: Volatility index, put/call ratio, and CFTC contract code are fully configurable
Z-Score Lookback: Standardization window (default 500 bars ≈ 2 years; increase to 750–1000 for a smoother, slower profile)
Trend Lookback: Regression window for the trend-deviation component (default 756 bars ≈ 3 years)
Smoothing: EMA applied to the final composite (default 10)
Alerts
ERI crosses above +1 SD (higher-risk regime)
ERI rolls over below +1 SD (potential peak signal)
ERI crosses below −1 SD (lower-risk / contrarian zone)
Recommended Use
Designed for the daily timeframe on broad US equity indices (SPX, ES1!, SPY). It works best as a macro overlay: as a filter for trend-following systems, as a position-sizing input, or as a hedging trigger. Because all components are standardized, the framework also transfers to other liquid indices — adjust the CFTC code and sentiment symbols accordingly.
Limitations
Earnings revisions and forward EPS growth are not available as PulseWire data feeds; the trend-deviation component serves as a structural proxy for these inputs. COT data is published weekly with a lag. As with any standardized oscillator, extreme readings can persist longer than expected — this tool measures risk conditions, it does not time reversals on its own.
This indicator is for informational and educational purposes only and does not constitute financial advice. Indicator

Jurik Dynamic Movement Index Approximation🚀 JURIK DYNAMIC MOVEMENT INDEX APPROXIMATION (DMX)
The Jurik Dynamic Movement Index Approximation (DMX), engineered by gunebak4n, is an advanced, ultra-smooth, bipolar directional movement indicator framework designed for PulseWire. Built upon the legendary signal-processing principles conceptualized by Mark Jurik (Jurik Research), this open-source implementation transforms the classical Welles Wilder Directional Movement Index (DMI/ADX) into a low-lag, zero-lag-filtered oscillator that captures market velocity, direction, and trend intensity with surgical precision.
Classical ADX/DMI indicators suffer from a severe noise-versus-lag tradeoff: raw +DI and -DI components are notoriously jagged and prone to false crossovers, while standard smoothing filters (such as Wilder's Smoothing or EMAs) introduce unacceptable signal lag. DMX solves this by eliminating the absolute value constraint to create a true Bipolar DMI spanning from -100 to +100, and filtering it using an integrated Jurik Moving Average (JMA) engine. The result is a noise-free, highly responsive curve that detects directional momentum shifts faster and cleaner than conventional trend indicators.
💡 CORE DESIGN PRINCIPLES
🧭 True Bipolar Oscillator Architecture
Traditional DMI splits direction into separate lines (+DI/-DI) and ADX discards directional orientation. DMX unifies direction and trend strength into a single continuous bipolar oscillator oscillating between -100 and +100 around a zero axis.
🎛️ JMA Adaptive Filtering Engine
By passing raw directional movement differentials through a multi-stage Jurik filter, high-frequency market chatter is suppressed without delaying critical trend reversals or momentum turns.
🎚️ Modular Phase & Power Control
Unlike static indicators, DMX provides modular JMA fine-tuning controls:
• Phase (-100 to +100): Adjusts the balance between lag reduction and overshoot prevention. Positive values accelerate responsiveness for fast-moving markets, while negative values increase smoothness.
• Power: Controls the acceleration exponent of the smoothing curve, allowing traders to customize how aggressively the filter adapts to price velocity.
💡 KEY FEATURES
• Ultra-Smooth Bipolar Output: Delivers a clean, continuous line ranging from -100 (Extreme Bearish) to +100 (Extreme Bullish) centered around a dynamic zero axis.
• Multi-Tier Trend Regimes: Includes customizable upper (+50) and lower (-50) threshold bounds to easily identify strong trend continuations versus sideways consolidation.
• Dynamic Trend & Bar Coloring: Features automatic visual execution that colors both the DMX oscillator line and chart price bars based on real-time trend direction and threshold strength.
• Comprehensive Alert Engine: Equipped with pre-configured, non-repainting alertcondition events for zero-line crossovers and threshold breaches.
🔬 MATHEMATICAL ARCHITECTURE
• Up Move = High - High , Down Move = Low - Low
• Raw +DM = (Up > Down and Up > 0) ? Up : 0.0
• Raw -DM = (Down > Up and Down > 0) ? Down : 0.0
• True Range (TR) = max(High - Low, |High - Close |, |Low - Close |)
• Smooth +DM, -DM, and TR using RMA over user Length
• +DI = 100 * Smooth(+DM) / Smooth(TR)
• -DI = 100 * Smooth(-DM) / Smooth(TR)
• Raw Bipolar DMI = 100 * (+DI - -DI) / (+DI + -DI)
• Derive Beta & Alpha Coefficients from Length and Power
• Apply Multi-Stage Recursive Filter with Phase Ratio (PR) adjustment
• JMA(Raw Bipolar DMI) => Final DMX Output
🛠️ USAGE FRAMEWORK
1. Zero Line Crossovers (Macro Trend Bias)
• DMX Crossing Above 0: Confirms a bullish regime shift. Focus on long positions, trend continuations, or buying pullbacks.
• DMX Crossing Below 0: Confirms a bearish regime shift. Focus on short positions, trend continuations, or selling relief rallies.
2. Threshold Regimes (+50 / -50)
• Above +50 (Strong Bullish): Market is in a strong upward trend expansion.
• Below -50 (Strong Bearish): Market is in a strong downward trend expansion.
• Between -50 and +50 (Neutral Zone): Identifies choppy or consolidating market conditions.
3. Momentum Direction & Divergences
Because DMX is virtually free of line-jitter, turning points (slopes) in the DMX line provide reliable early warnings of momentum exhaustion and potential price-oscillator divergences long before classical indicators react.
⚙️ SYSTEM CHARACTERISTICS
• Zero Repainting: All calculations strictly evaluate on closed historical bar states.
• Fully Parameterized Inputs: Customize period length, phase, power, threshold boundaries, bar coloring, and color themes.
• Asset-Agnostic Engine: Operates with high precision across Equities, Forex, Crypto, Commodities, Futures, and Indices.
• Clean & Modern UI: Built to Pine Script v6 standards and optimized for visual clarity on both dark and light chart themes.
📌 CREDIT & ATTRIBUTION
The Jurik Dynamic Movement Index Approximation script is engineered and published by gunebak4n on PulseWire.
This indicator is based on the mathematical concepts of the Jurik Dynamic Movement Index (DMX) originally conceptualized by Mark Jurik (Jurik Research).
⚠️ DISCLAIMER
This script is an open-source community implementation and mathematical approximation of the DMX concept. It is not affiliated with, officially supported by, or endorsed by Mark Jurik or Jurik Research. This indicator is a technical analysis visualization tool and does not provide financial advice, automated trading signals, or profit guarantees. Always perform thorough backtesting and practice strict risk management. Indicator

Inducement Sweep Strategy [algo_aakash]Inducement Sweep Strategy enters trades only after the classic ICT inducement sequence has fully played out: an external liquidity pool is identified, an internal swing (the inducement) forms in front of it, that inducement is swept with genuine displacement, and price then confirms a Market Structure Shift back in the real direction. Every qualifying setup is scored by the Inducement Quality Index (IQI), a 0-to-100 composite that ranks how convincing the engineered move actually was before an entry signal is ever shown.
Problem Statement
Most public inducement or "sweep and BOS" scripts fire a signal the instant any minor swing is tagged and broken. They do not distinguish between an inducement that formed in front of a meaningful liquidity pool with a violent, high-conviction reversal, and a shallow internal wiggle that happened to get tapped during normal noise. Traders end up manually filtering every alert, checking chart context by hand, which defeats the purpose of automating inducement detection in the first place. This script instead separates structure identification from signal display: the full pipeline runs on every bar, but only setups that pass the quality bar are shown as entries.
Methodology
Two pivot lengths run in parallel. A longer length confirms External Structure — the major swing highs and lows that represent the real liquidity pool the market is engineered toward. A shorter length confirms Internal Structure — the minor swings that sit closer to current price. When a confirmed internal low forms above the most recent confirmed external low (or, for shorts, an internal high forms below the most recent external high), that internal point is flagged as an Inducement Candidate: a level structurally positioned to attract retail stops in front of the real liquidity pool.
The candidate remains active until price wicks through it and closes back on the correct side with a reversal body at least a user-defined ATR multiple in size — this is the Sweep, and the ATR displacement requirement filters out shallow wicks that reflect noise rather than an engineered stop run. Once swept, the script watches for a Market Structure Shift: a close beyond the internal high or low that sat between the external level and the inducement. Only this break confirms the real directional move is underway, and only then does the entry logic activate.
Each confirmed setup is scored by the IQI engine across four factors — displacement strength, sweep freshness, liquidity depth, and rejection wick quality — combined into a single 0-to-100 score. An entry signal is only displayed on the chart when the score meets the user's configured minimum, so lower-quality setups are tracked internally but never clutter the chart or trigger alerts.
If price fails to sweep the inducement within a maximum bar window, breaks the external level before the sweep, fails to confirm the MSS within its own bar window, or fails an optional retest, the setup is invalidated and the pipeline resets automatically. All structure is derived from confirmed pivots only, so nothing in the detection logic repaints.
Signal Workflow
1. Confirm a major external swing high or low using the External Structure Length.
2. Confirm a minor internal swing forming on the inducing side of that external level — this becomes the active Inducement Candidate.
3. Wait for price to wick through the inducement level and close back on the correct side with a reversal body meeting the ATR displacement threshold — this is the Sweep.
4. Wait for a confirmed close beyond the internal high/low recorded between the external level and the inducement — this is the Market Structure Shift.
5. Calculate the Inducement Quality Index from displacement, freshness, depth, and rejection wick quality.
6. If Require Retest is enabled, wait for price to pull back and hold the broken MSS level before confirming.
7. Display the entry signal with its IQI score only if the score meets the configured minimum, and fire the corresponding alert.
Why This Indicator Is Different
Standard inducement or liquidity-sweep-plus-BOS scripts treat every sweep-and-break sequence identically, regardless of how convincing the move actually was.
The Inducement Quality Index is a composite score built specifically around the mechanics of an engineered inducement move rather than a generic volatility or volume filter — it weighs how fresh the sweep was relative to the inducement, how deep the underlying liquidity pool is in ATR terms, how strong the displacement candle was, and how decisively the sweep bar rejected its extreme.
Because setups below the quality threshold are still tracked internally and simply not displayed, the pipeline status label can show a user exactly where an unfolding setup stands without forcing premature signals onto the chart.
The optional retest requirement gives discretionary traders a way to demand confirmation of the broken structure as new support or resistance before treating the setup as valid, without changing the core detection logic.
Inputs
Structure Settings
External Structure Length — pivot length confirming the major swing that anchors the real liquidity pool
Internal Structure Length — pivot length confirming the minor swing used as the inducement candidate
Inducement Settings
Max Bars to Sweep — maximum age allowed for an inducement candidate before it is discarded as stale
Max Bars to Confirm MSS — maximum age allowed between the sweep and the structure shift confirmation
Displacement Filter
ATR Length — period for the ATR used in the displacement requirement
Min Displacement (x ATR) — minimum reversal candle body, as an ATR multiple, required to validate a sweep
Signal Quality
Minimum IQI to Show Signal — setups scoring below this 0-100 threshold are tracked but not displayed
Entry Options
Require Retest Before Entry — waits for a pullback that holds the broken MSS level before confirming the signal
Trade Levels
Show Entry / Stop / Target Lines — visual-only projected levels, not a managed strategy
Reward : Risk Ratio — target distance as a multiple of the stop distance
Level Projection Length — how far right the projected lines extend
Visual Settings
Show Inducement Level, Show Sweep Marker, Show MSS Break Line, Show Pipeline Status Label
Bullish / Bearish / Inducement / MSS / Sweep Marker colors
Alert Settings
Alert: Inducement Identified, Alert: Inducement Swept, Alert: Entry Signal, Alert: Setup Invalidated
Alerts
Alerts are available for:
Bullish Inducement Identified
Bearish Inducement Identified
Bullish Inducement Swept
Bearish Inducement Swept
Long Entry Signal (with IQI score, entry, and stop level)
Short Entry Signal (with IQI score, entry, and stop level)
Setup Invalidated (bullish and bearish, optional)
Practical Usage
Raise the Minimum IQI threshold on lower timeframes or noisy instruments to surface only the most convincing engineered moves.
Enable Require Retest for a more conservative entry style that waits for the broken structure to hold before committing.
Use the pipeline status label to monitor an unfolding setup in real time without needing a signal to already have fired.
The projected trade levels are a visual reference only — position sizing and trade management remain the trader's responsibility.
Combine with a higher timeframe bias tool to only act on Inducement Sweep signals that align with the broader directional context.
Limitations
Structure confirmation requires the full pivot look-right period to elapse before a swing is confirmed, so entries occur after price has already moved past the exact reversal point. This is standard confirmed-pivot behavior and is not repainting.
The IQI score is a relative ranking based on the four factors described above and does not guarantee trade outcomes. It should be used as a filtering aid, not a standalone trading signal.
The displacement filter is ATR-relative; on instruments with unusually low volatility, the ATR multiple may need to be reduced to detect qualifying sweeps.
The indicator does not manage open positions, calculate position size, or provide exits beyond the single visual target line. It identifies potential inducement-based entries only.
Notes
All structure levels and signals are drawn at the bar index of the actual pivot or event, not the confirmation bar, ensuring accurate visual placement.
The state machine for bullish and bearish setups runs independently and concurrently, so both directions can be tracked at the same time on ranging instruments.
For best results combine with Market Structure Break BOS/CHoCH Tracker to cross-check the higher timeframe structural context before acting on a signal.
Indicator
