Chart Narrator [verticetrading]An analyst that writes. Chart Narrator reads your chart and describes it in plain sentences — no cryptic numbers, no jargon.
◆ WHAT IT DOES
It turns the chart into a written briefing: main trend and whether the higher timeframe agrees, unusual calm or agitation in volatility, the last structural break in plain words, nearest tested support/resistance with distances in %, fresh candlestick patterns, and volume participation. Everything is summarized in a bias header with a conviction score ("BULLISH — 4 of 5 signals point the same way").
◆ HOW IT WORKS
Six evidence modules (trend + higher-timeframe confirmation, volatility ranking, market structure, merged pivot levels weighted by touches, candlestick patterns, volume vs its average) each produce a verdict and the numbers behind it. A narration engine turns them into sentences, stays silent when a module has nothing to say, and detects confluences between modules (e.g. a bullish pattern printed on a tested support) to flag higher-quality situations. With enough history it also adds a day-of-week tendency note with its sample size.
◆ HOW TO USE IT
Add it to any symbol and timeframe. Read the panel top to bottom: bias first, evidence after. Set the "Bias flip" alert to receive the full written analysis when the overall picture changes. Interface in English and Spanish.
◆ WHAT MAKES IT ORIGINAL
Indicators show numbers; this one explains itself. Every sentence cites its evidence, only confirmed bars are narrated (no repainting), and the panel says "mixed, no clear edge" when that is the truth.
◆ LIMITATIONS
It describes the present; it does not predict. Not financial advice.
────────────────────────
ESPAÑOL — El analista que escribe
Convierte el gráfico en un informe escrito: tendencia y si la temporalidad mayor la confirma, calma o agitación inusual de la volatilidad, la última ruptura estructural en palabras llanas, soporte/resistencia más cercanos con distancias en %, patrones de velas recientes y participación del volumen — todo resumido en un sesgo con puntuación de convicción ("ALCISTA — 4 de 5 señales apuntan en la misma dirección"). Seis módulos de evidencia alimentan un motor de redacción que calla cuando no hay nada que decir y detecta confluencias entre señales. Solo narra velas confirmadas (sin repintado). Interfaz en inglés y español. Describe el presente, no predice; no es asesoramiento financiero. Indicator

Median Cascade Trend [BackQuant]Median Cascade Trend
Overview
Median Cascade Trend is a noise-resistant trend-following indicator that combines multiple causal median filters , an Ehlers-style two-pole Super Smoother , and a configurable chop-gating system .
Its purpose is to identify meaningful directional structure while rejecting the types of price movement that frequently cause conventional moving averages to whipsaw:
Single-bar spikes
Short-lived price shocks
Irregular wicks
Low-efficiency sideways movement
Weak slopes that do not represent genuine directional progress
The indicator processes price in three distinct stages:
A median-filter cascade removes impulsive and short-duration noise.
A two-pole low-pass filter smooths the remaining structural signal.
A chop gate decides whether a change in direction is strong enough to update the active trend state.
This creates a trend line that is intentionally more selective than a standard moving average. The line itself can continue evolving, but trend-state changes are only accepted when the underlying movement passes the chosen quality tests.
The result is a system that separates:
The estimated trend line
The raw direction of that line
The confirmed trend regime
That distinction is important. The indicator does not assume that every small turn in a smoothed line represents a valid trend reversal.
Core idea
Most trend filters are built around linear averaging. They combine historical prices using fixed or exponentially decaying weights.
Examples include:
SMA
EMA
WMA
HMA
DEMA
These filters are effective for general smoothing, but they have a weakness: a single extreme observation can influence the output immediately.
If one bar produces a large wick or temporary price shock, a moving average will usually be pulled toward that value because it includes the magnitude of every observation.
A median filter behaves differently.
Instead of averaging the values inside a window, it sorts them and selects the middle observation. This makes it highly resistant to isolated extremes.
Median Cascade Trend uses this property repeatedly before applying traditional low-pass smoothing.
The central idea is:
Remove impulsive noise first.
Smooth the cleaned signal second.
Confirm direction only when the movement is efficient or sufficiently steep.
This ordering is deliberate. Smoothing a noisy series and filtering noise before smoothing are not the same thing.
Where median filtering comes from
Median filters are widely used in digital signal processing, image processing, and engineering.
One of their best-known applications is the removal of impulse noise , sometimes called salt-and-pepper noise in image processing.
Impulse noise consists of isolated extreme observations that are not representative of the surrounding signal.
In market data, comparable events include:
Temporary liquidity gaps
Single-bar stop runs
Erroneous prints
Sharp wick reversals
News spikes that immediately retrace
A linear smoother such as an SMA or EMA cannot distinguish between an important sustained move and an isolated outlier. Both are included according to their numerical magnitude.
A median filter is nonlinear. It selects the central-ranked value rather than calculating an arithmetic mean.
For example, consider five observations:
100
101
102
103
140
The average is:
109.2
The median is:
102
The isolated value at 140 significantly distorts the average but has almost no effect on the median.
This is why median filtering is especially useful when the objective is to preserve structural turns while rejecting isolated noise.
What makes a median filter nonlinear
A normal moving average can be represented as a weighted sum of its inputs.
A median filter cannot.
Its output depends on the ordering of observations, not their arithmetic combination. This makes it a nonlinear filter.
That has several important consequences:
Outliers have limited influence.
Edges and structural shifts can be preserved more cleanly.
The response is not equivalent to ordinary low-pass averaging.
The filter may hold a value until enough observations confirm a change.
In trading terms, the median filter often behaves more like a structural selector than a conventional average.
What “causal” means
The median stages in this indicator are causal.
A causal filter uses:
The current bar
Past bars
It does not use future observations.
This matters because many visually smooth filtering methods can only produce their best result by centering the calculation around the current point, which requires future data.
This script does not do that.
Every value is calculated from information available at that bar, making the filter suitable for live use.
Why use a cascade of median filters
A single median filter can remove isolated spikes, but noise does not always occur as one extreme bar.
It can appear as:
Two-bar shocks
Short bursts of alternating movement
Small clusters of irregular candles
Residual distortion left after the first filtering pass
A cascade applies multiple median stages sequentially:
Stage 1 processes the original source.
Stage 2 processes the output of Stage 1.
Stage 3 processes the output of Stage 2.
Each stage removes a different layer of short-duration instability.
The process is similar to progressively cleaning a signal:
The first stage removes obvious impulse noise.
The second stage removes remaining short-term irregularity.
The third stage produces a more stable structural series before low-pass smoothing.
Median Stage 1
The first median stage is intended to reject isolated one-bar disturbances.
With a short setting such as 3:
The filter remains responsive.
Single-bar spikes are strongly suppressed.
Most genuine multi-bar movement remains visible.
This is the most tactical stage.
Median Stage 2
The second stage receives an already-cleaned input.
Its role is to remove:
Short-duration residual noise
Small alternating movements
Irregularity that survived the first stage
A slightly longer setting such as 5 creates stronger structural consistency.
Median Stage 3
The third stage provides the final nonlinear cleaning pass.
With a longer setting such as 7:
The output becomes more stable.
Short-lived reversals are reduced.
Only more persistent changes are passed into the low-pass stage.
This is the most conservative median stage.
Cascade Stages input
The user can select how many median stages are active:
1 stage: fastest and most responsive
2 stages: balanced noise rejection
3 stages: strongest impulse-noise suppression
The unused stages are still calculated internally, but the selected stage determines which output is sent into the Super Smoother.
Why cascade instead of one very long median
Applying several shorter filters is not always equivalent to applying one very long median filter.
A long median window can:
Delay structural changes heavily
Flatten shorter trend legs
Become insensitive to local turns
A cascade allows the filtering process to be distributed across stages.
This provides greater control over:
How aggressively isolated noise is removed
How much short-duration movement survives
How smooth the final structural input becomes
It also lets users build a progression such as 3, 5, and 7 rather than applying one blunt window.
The low-pass stage
After the median cascade, the signal is passed into a two-pole Super Smoother .
The median cascade removes nonlinear impulse noise, but its output can still contain:
Small step changes
Residual high-frequency movement
Sharp transitions caused by median replacement
The Super Smoother converts that cleaned but potentially stepped series into a smoother trend line.
This creates a hybrid filtering system:
Nonlinear median filtering for outlier rejection
Recursive low-pass filtering for smooth trend extraction
These components solve different problems.
Where the Super Smoother comes from
The Super Smoother is associated with John F. Ehlers’ application of digital signal processing techniques to financial markets.
It is based on the behavior of a two-pole low-pass filter and is designed to suppress high-frequency components more effectively than many conventional moving averages.
Traditional moving averages are simple smoothers, but they are not necessarily optimized as frequency-selective filters.
The Super Smoother uses recursively calculated coefficients derived from:
Exponential decay
Trigonometric terms
A selected cutoff period
The objective is to reduce high-frequency market noise while retaining lower-frequency directional structure.
What a low-pass filter does
A low-pass filter allows slow-moving components of a signal to pass while reducing fast-moving components.
In market terms:
Slow components represent broader trend structure.
Fast components represent short-term noise, rapid oscillation, and microstructure disturbance.
The Low-Pass Length determines the separation.
Lower values:
Allow more short-term movement through.
React faster.
Produce more turns.
Higher values:
Reject more high-frequency movement.
Produce a smoother trend line.
Respond later to structural changes.
Why use a two-pole filter
The number of poles broadly describes the order and steepness of a filter.
A two-pole filter generally provides:
Stronger attenuation of high-frequency noise than a one-pole filter.
A smoother output.
A more defined frequency response.
It also uses prior filter outputs recursively, allowing substantial smoothing without requiring an extremely long direct averaging window.
The full signal-processing chain
The calculation can be understood as:
Raw price source
Median Stage 1
Optional Median Stage 2
Optional Median Stage 3
Two-pole Super Smoother
Direction measurement
Chop-quality validation
Persistent trend state
Each layer has a distinct purpose.
Median cascade
Rejects isolated and short-lived noise.
Super Smoother
Reduces the remaining high-frequency variation.
Direction logic
Determines whether the final line is rising or falling.
Chop gate
Determines whether that directional change is trustworthy enough to update the confirmed trend.
Trend direction calculation
The raw direction is determined by comparing the current trend line with its value several bars ago:
Bullish if trendLine > trendLine
Bearish if trendLine < trendLine
Neutral if equal
The Direction Lookback controls how much movement is required before the line is classified as rising or falling.
A one-bar comparison is extremely responsive but can detect tiny slope changes.
A longer comparison:
Measures movement across a wider interval.
Reduces sensitivity to one-bar flattening.
Produces more stable raw direction.
Raw trend versus confirmed trend
One of the most important design choices is that the script separates:
Raw trend
Confirmed trend
The raw trend reflects the current direction of the filtered line.
The confirmed trend is persistent and changes only when:
The raw trend points in a new direction.
The chop gate is open.
If the line turns but the gate is closed:
The active trend state remains unchanged.
The attempted flip can optionally be displayed as blocked.
This prevents every small line turn from immediately becoming a regime reversal.
Why a chop filter is needed
Even an advanced smoother can turn repeatedly during sideways markets.
Smoothing reduces noise, but it does not determine whether movement is:
Directional
Efficient
Large enough relative to volatility
A line can move upward and downward in a range while making almost no net progress.
The chop gate addresses this by evaluating two separate properties:
Directional efficiency
ATR-normalized slope
Efficiency Ratio
The first gate component measures how efficiently the trend line has moved over a selected window.
The calculation compares:
Net movement
Total movement
Net movement is:
|trendLine - trendLine |
Total movement is:
Sum of |bar-to-bar changes in trendLine|
The Efficiency Ratio is:
Efficiency = Net Movement / Total Movement
The result ranges approximately from 0 to 1.
Efficiency near 1
The line has moved mostly in one direction.
Example:
It advanced 10 units.
Its total path was approximately 11 units.
This indicates a clean directional move.
Efficiency near 0
The line has moved back and forth without achieving much net progress.
Example:
It travelled 20 units in total.
But ended only 1 unit from where it started.
This indicates chop.
Where the Efficiency Ratio comes from
The Efficiency Ratio is commonly associated with Perry Kaufman’s work on adaptive market analysis and the Kaufman Adaptive Moving Average.
Its purpose is to distinguish directional movement from noisy movement.
It does not measure the size of a move alone.
It measures the quality of the path.
This makes it highly suitable as a trend gate.
A market can be volatile but inefficient. It can move aggressively in both directions and still make little progress.
The Efficiency Ratio helps identify that distinction.
Minimum Efficiency
The Minimum Efficiency input determines the directional quality required for the efficiency condition to pass.
Lower values:
Allow more irregular movement.
Open the gate more frequently.
Produce earlier but noisier trend changes.
Higher values:
Require cleaner directional travel.
Block more sideways flips.
Produce fewer but more selective regime changes.
ATR-Normalized Slope
The second gate component measures how large the trend-line movement is relative to current market volatility.
It calculates:
|trendLine - trendLine | / ATR
This converts the line’s movement into ATR units.
Without normalization, a slope of 10 points could be:
Large for one instrument
Negligible for another
Large in a quiet regime
Small during extreme volatility
ATR normalization makes the slope more comparable across assets and regimes.
What normalized slope measures
The Efficiency Ratio asks:
Was the movement directionally clean?
ATR-normalized slope asks:
Was the movement large enough to matter?
These are different questions.
A move can be highly efficient but extremely small.
For example:
A perfectly smooth drift of only 0.02 ATR may not justify a new trend regime.
A move can also be large but inefficient:
A violent range may travel several ATRs while repeatedly reversing.
Using both filters gives a more complete view of trend quality.
Minimum ATR-Normalized Slope
The Minimum ATR-Normalized Slope defines the movement threshold.
Lower values:
Accept weaker slopes.
React sooner.
Allow more low-energy flips.
Higher values:
Require stronger displacement.
Reduce weak trend transitions.
Delay signals until movement becomes more meaningful.
Gate modes
The indicator provides four chop-gate modes.
Efficiency Ratio
Only directional efficiency is required.
Best suited for users who care primarily about whether movement is clean, regardless of its exact magnitude.
ATR-Normalized Slope
Only slope strength is required.
Best suited for users who want movement to exceed a volatility-adjusted threshold, even if the path is not perfectly efficient.
Both
Both conditions must pass:
Efficiency must be high enough.
Slope must be strong enough.
This is the strictest mode and generally provides the strongest chop rejection.
Either
Only one condition must pass.
This is more permissive:
A very clean slow trend may pass through efficiency.
A powerful but less orderly move may pass through slope.
It provides a balance between responsiveness and filtering.
Gate behavior
When the gate is open:
A new raw direction can update the trend state.
Bullish and bearish flips can be confirmed.
When the gate is closed:
The previous confirmed trend persists.
Attempted changes are blocked.
The display can dim, turn neutral, or hide.
This means the indicator behaves like a regime-holding system during chop.
It does not constantly reset to neutral. It retains the last confirmed direction until sufficient evidence supports a new one.
Blocked flips
A blocked flip occurs when:
The filtered line attempts to change direction.
The attempted direction differs from the confirmed trend.
The chop gate is closed.
The raw direction has just changed.
These can optionally be displayed as small X markers.
Blocked flips are useful because they show:
Where a basic slope indicator would have reversed.
Where the chop filter rejected that reversal.
How much signal noise the gate is removing.
They are not trade signals. They are diagnostic information.
Trend persistence
The trend variable is persistent.
Once bullish:
It remains bullish until a valid bearish change passes the gate.
Once bearish:
It remains bearish until a valid bullish change passes the gate.
This persistence is central to the design.
The indicator is not merely coloring every local slope. It is maintaining a confirmed market regime.
Display modes when the gate is closed
The indicator offers three ways to display gated conditions.
Dim
The current trend color remains visible but becomes transparent.
This communicates:
The last confirmed trend is still active.
Current conditions are not strong enough to confirm a new direction.
This is useful when you want regime continuity without overstating conviction.
Neutral
The trend line and candles switch to the selected gate color.
This communicates:
The directional regime is being withheld.
Current conditions are considered non-trending or uncertain.
Hide
The trend line disappears while the gate is closed.
This is the strictest visual mode.
It communicates:
No actionable trend state should be displayed during the gated condition.
Trend line coloring
The base color is determined by the confirmed trend:
Bullish trend uses the long color.
Bearish trend uses the short color.
Uninitialized state uses gray.
The gate display can then modify the final presentation.
This allows the chart to show:
Direction
Confirmation status
Chop-filter activity
without needing a separate panel.
Gradient fill
The indicator fills the area between price and the trend line.
When price is above the trend line:
A bullish gradient is displayed.
When price is below the trend line:
A bearish gradient is displayed.
The fill is stronger near the trend line and fades toward price.
This emphasizes the trend line as the structural reference.
The fill color follows the gate display state:
Full trend color when active
Dimmed during a closed gate in Dim mode
Neutral when configured
Hidden when the trend line is hidden
Trend glow
A soft glow is created around the filtered line using a small ATR-scaled distance.
The glow width is:
ATR(14) × 0.06
Using ATR ensures the glow remains visually proportional across assets and price scales.
The glow does not affect the calculation. It improves readability and reinforces the line as the central structural output.
Candle coloring
Candles can be colored using the confirmed trend state.
When the gate is open:
Bull trend produces bullish candles.
Bear trend produces bearish candles.
When the gate is closed:
Dim mode fades the existing trend color.
Neutral mode uses the gate color.
Hide mode removes the candle override.
This gives an immediate full-chart view of both trend and gate status.
Signal logic
Signals only occur when the confirmed trend changes.
Bullish flip
A bullish signal requires:
The active trend becomes bullish.
The previous trend was bearish.
The gate accepted the change.
Bearish flip
A bearish signal requires:
The active trend becomes bearish.
The previous trend was bullish.
The gate accepted the change.
This is more selective than simply detecting a change in line slope.
How to interpret the indicator
Bullish confirmed regime
A bullish regime means:
The median-filtered and low-pass-smoothed trend line is rising.
The move satisfied the selected chop-filter conditions when the regime changed.
The last accepted direction remains bullish.
Bearish confirmed regime
A bearish regime means:
The final trend line is falling.
The bearish change passed the selected quality gate.
The last accepted direction remains bearish.
Gate closed in an existing trend
This means:
The market is no longer moving with sufficient efficiency or slope.
A new reversal cannot currently be confirmed.
The previous regime remains stored.
This often occurs during:
Consolidation
Pullbacks
Low-volatility drift
Transition phases
Repeated blocked flips
Repeated blocked changes suggest:
The filtered line is oscillating.
Directional quality is weak.
A normal trend-following system would likely be whipsawing.
This is exactly the environment the gate is designed to avoid.
How to use it in practice
1. Directional regime filter
Use the confirmed trend to filter other setups:
Favor long trades during bullish regimes.
Favor short trades during bearish regimes.
Reduce activity when the gate is closed.
2. Trend-following entries
Bullish and bearish flips can be used as directional entry triggers, especially when confirmed by:
Price structure
Breakouts
Volume expansion
Higher-timeframe alignment
3. Pullback framework
During an established trend:
Price returning toward the trend line may represent a pullback.
If the gate remains closed but the trend does not flip, the move may be consolidation rather than reversal.
If the opposite direction eventually passes the gate, the regime has changed more meaningfully.
4. Chop avoidance
The most direct use is avoiding repeated entries during low-quality conditions.
When the display is dim, neutral, or hidden:
Reduce confidence in new trend signals.
Wait for efficiency or slope to recover.
5. Diagnostic comparison
Enable blocked flips to see how often the raw trend attempts to reverse without confirmation.
This helps tune:
Efficiency threshold
Slope threshold
Gate mode
Input guide
Source
Selects the price series used by the median cascade.
Close is the standard choice.
Alternatives such as hl2 or hlc3 may produce a slightly smoother structural input.
Cascade Stages
Controls how many median filters are used.
1: responsive
2: balanced
3: strongest noise rejection
Median Stage Lengths
Control the window used at each stage.
Shorter values:
Preserve responsiveness.
Remove only very short-duration noise.
Longer values:
Produce stronger structural filtering.
Delay shorter turns.
Low-Pass Length
Controls the two-pole Super Smoother.
Lower:
Faster
More reactive
Higher:
Smoother
More conservative
Direction Lookback
Controls how far back the current line is compared when determining raw direction.
Lower:
Faster slope changes
Higher:
More stable directional measurement
Efficiency Length
Controls the window used to measure net movement versus total path movement.
Shorter:
More responsive efficiency reading
More sensitive to recent chop
Longer:
More stable directional-quality assessment
Minimum Efficiency
Controls how clean the directional path must be.
Higher values make the gate stricter.
Slope Length
Controls the interval across which trend-line movement is measured.
Slope ATR Length
Controls the ATR baseline used to normalize slope.
Minimum ATR-Normalized Slope
Controls the minimum volatility-adjusted displacement required.
Higher values require stronger movement.
Tuning examples
Faster trend configuration
1 or 2 median stages
Short median windows
Lower Super Smoother length
Direction Lookback of 1 or 2
Either gate mode
Lower efficiency and slope thresholds
Balanced configuration
2 or 3 median stages
Progressive windows such as 3, 5, 7
Moderate Super Smoother length
Both gate mode
Moderate thresholds
Conservative configuration
3 stages
Longer median windows
Higher Super Smoother length
Longer Direction Lookback
Both gate mode
Higher minimum efficiency and slope
How this differs from a normal moving average
A standard moving average:
Uses linear averaging.
Responds directly to outlier magnitude.
Changes direction whenever its slope changes.
Median Cascade Trend:
Uses nonlinear outlier-resistant preprocessing.
Applies a proper recursive low-pass stage.
Separates raw direction from confirmed regime.
Blocks changes during inefficient or weak movement.
How this differs from a normal median filter
A basic median filter only removes impulse noise.
This indicator extends the idea by adding:
Multiple median stages
Low-pass smoothing
Direction measurement
Efficiency gating
Volatility-normalized slope gating
Persistent trend states
Signals and alerts
It is not simply a median-smoothed line. It is a complete trend-regime system built on median preprocessing.
How this differs from a Supertrend
A Supertrend uses ATR bands around price and changes state when price crosses the trailing boundary.
Median Cascade Trend does not use a volatility band to define direction.
Instead:
Direction comes from the slope of the filtered trend line.
ATR is used only to normalize slope and scale visuals.
Trend changes are controlled by movement quality rather than price crossing a stop band.
Strengths
Strong rejection of isolated price spikes
Preserves broader structural movement
Combines nonlinear and linear filtering
Separates raw turns from confirmed trend changes
Configurable chop rejection
Volatility-normalized slope testing
Persistent directional regimes
Blocked-flip diagnostics
Fully causal calculation
Limitations
Strong filtering can delay genuine reversals.
Long median windows may suppress shorter trend legs.
Strict gate settings can hold the previous regime too long.
Loose gate settings reduce the benefit of chop filtering.
Median filters can produce stepped transitions before low-pass smoothing.
The indicator remains reactive rather than predictive.
Best use cases
Median Cascade Trend is particularly suited for:
Trend filtering in noisy markets
Reducing false reversals caused by wicks
Swing-trading regime identification
Filtering entries from faster systems
Dynamic trend-structure visualization
Avoiding sideways-market whipsaws
It can be applied across:
Equities
Indices
Futures
Forex
Cryptocurrency
Commodities
Alerts
The indicator provides alerts for:
Confirmed bullish trend changes
Confirmed bearish trend changes
Trend changes blocked by the chop filter
The blocked-flip alert is especially useful for monitoring when the line attempts to reverse but market quality remains insufficient.
Summary
Median Cascade Trend is a multi-stage trend extraction system designed to reject impulsive market noise before determining direction. It first applies up to three causal median filters, progressively removing isolated spikes and short-duration disturbances. The cleaned series is then passed through a two-pole Super Smoother to extract a stable low-frequency trend line.
Rather than accepting every change in slope, the indicator evaluates the quality of the movement using directional efficiency and ATR-normalized slope. Depending on the selected gate mode, trend changes can require clean directional travel, sufficient volatility-adjusted displacement, or both.
This produces a persistent trend state that changes only when the filtered line turns and the surrounding movement is strong enough to justify the reversal. The final result is a robust trend-following framework that combines outlier rejection, low-pass smoothing, directional-quality measurement, and chop suppression into a single overlay.
Indicator

ANDROMEDA MTF - TrendSyncThis script is a Multi-Timeframe (MTF) trend-following system designed to capture pullbacks in direction of the primary trend.
Rather than relying on a single indicator, ANDROMEDA MTF utilizes a specific mashup of Moving Averages, MACD, and RSI to establish a robust rule-based logic. The primary goal of combining these tools is to filter out lower-timeframe market noise and only authorize entries when momentum and structural trend are perfectly aligned on a higher timeframe.
⚙️ CORE MECHANICS (The Mashup Logic):
To avoid false signals during choppy markets, the script requires three distinct conditions to agree on the Higher Timeframe (MTF) before defining a trend:
Baseline Trend Structure: Uses two customizable Moving Averages (EMA or SMA). The fast MA must be above/below the slow MA to indicate directional bias.
Momentum Confirmation (Slope): The algorithm calculates the mathematical slope of the slow MA (MA - MA ). The trend is only validated if the slow MA is actively sloping in the trade direction, preventing entries in flat/consolidating markets.
Volume/Momentum Filter: The MACD Histogram must confirm the bias (Histogram > 0 for longs, < 0 for shorts).
🎯 ENTRY TRIGGERS & VISUAL FILTERS:
The Pullback Trigger: Once the Higher Timeframe establishes a firm trend (Blue for Bullish, Red for Bearish), the script monitors the local timeframe. A Buy/Sell signal is generated exactly when the local price pulls back and crosses the MTF Moving Averages, offering a discounted entry in the direction of the macro trend.
Exhaustion Filter (RSI): A fast RSI operates in the background. It overrides the candle colors (turning them orange by default) to visually warn the trader that the asset has reached overbought/oversold extremes, cautioning against late entries.
🛠️ HOW TO USE:
Apply the indicator to your execution timeframe (e.g., 15m) and set the MTF parameter in the settings to your macro directional timeframe (e.g., 240 for 4H). Wait for the trend lines to turn Blue/Red and enter on the printed signal arrows during pullbacks.
🇧🇷 (PORTUGUÊS)
Este script é um sistema seguidor de tendência Multi-Timeframe (MTF) projetado para capturar pullbacks na direção da tendência primária.
⚙️ COMO FUNCIONA (A Lógica):
Para evitar sinais falsos, o script exige que 3 condições concordem no Tempo Gráfico Maior (MTF) antes de definir a tendência:
Estrutura: Duas médias móveis (EMA/SMA). A rápida deve estar alinhada com a lenta.
Momento (Inclinação): O algoritmo calcula a inclinação matemática da média lenta. A tendência só é validada se a média estiver apontando para a direção da operação.
Filtro MACD: O Histograma do MACD deve confirmar o fluxo (Maior que zero para compras).
🎯 GATILHOS E FILTROS VISUAIS:
Gatilho: Quando o tempo gráfico maior estabelece a tendência (Azul para Alta, Vermelho para Baixa), o script gera o sinal de entrada no momento em que o preço atual faz um pullback e toca as médias móveis do tempo gráfico maior.
Filtro de Exaustão (RSI): Um RSI rápido colore os candles de laranja para avisar visualmente que o ativo chegou a uma zona de sobrecompra/sobrevenda, evitando que você entre muito tarde no movimento.
COMO USAR: Adicione o indicador no seu gráfico de execução (ex: M15) e configure o parâmetro MTF no menu para o seu gráfico de referência (ex: 240 para H4). Aguarde as médias ficarem azuis ou vermelhas e opere os sinais de seta a favor da co Indicator

EWCore 0.1.5.4**EWCore — Pine Script v6 for TradingView**
This manual explains what the indicator does and how each setting changes what you see on the chart. It does not cover code or Pine Script internals — it's written for traders.
---
## 0. Setup — Before Your First Chart
EW-Core is built from two Pine files, but you only ever add **one indicator to your chart**:
---
## 1. What EW-Core Does
EW-Core scans your chart's price history for pivot points (swing highs/lows), then automatically searches for valid Elliott Wave patterns among those pivots — Impulses, Diagonals, Zigzags, Flats, Triangles, and Combinations (W-X-Y and W-X-Y-X-Z). Out of everything it finds, it picks one **Leading Scenario** (its best current count) and displays it with full labels, plus a ranked table of alternative counts so you can judge how confident the count is.
It also reconstructs a **Historical Wave Chain** stretching back through your chart's history, and can project a **Sequel Chain** forward from the leading scenario, a **Forward Projection** of where price may go next, and Fibonacci confluence target zones.
Everything is scored 0–100 using a weighted blend of Fibonacci conformity, structural quality, wave equality, time consistency, multi-timeframe coherence, and (optionally) momentum — so higher-scoring counts are more likely to hold up.
---
## 2. Settings Menu — Group by Group
The Settings menu is organized top-to-bottom in this order:
### 2.1 Pivot Detection (ATR-adaptive)
Controls how price swings become "pivots" — the raw points every wave count is built from.
- **ATR Period** — how many bars the volatility measurement (ATR) looks back over.
- **Auto-adapt ATR multiplier to chart timeframe** — when ON (default), the sensitivity threshold is calculated automatically from your chart's timeframe using a formula, instead of you having to hand-tune 6 separate values per timeframe. Turn this OFF if you want full manual control.
- **Auto ATR — base / slope** — only used when auto-adapt is ON. Raise "base" to require larger swings everywhere; raise "slope" to make higher timeframes noticeably less sensitive than lower ones.
- **ATR Multiplier D1/Weekly/Monthly/H4/H1/M15** — manual sensitivity per timeframe (only used when auto-adapt is OFF). Higher = fewer, larger pivots; lower = more, smaller pivots.
**Practical effect:** if the indicator finds too many small, choppy pivots, raise sensitivity. If it's missing meaningful turns, lower it.
### 2.2 Performance Safety (Historical Chain)
Protects against TradingView's script time-limit when your chart has a very long price history.
- **Auto-limit historical chain range** — caps how far back the Historical Chain search runs, so it never risks a "Loop takes too long" error. The most recent history is never cut, only the oldest edge.
- **Complexity budget** — how large that cap is. Raise it if you have performance headroom and want deeper history; lower it if you still see timeout errors.
### 2.3 Higher-Degree Detection
Elliott Wave patterns exist at multiple "degrees" (a Minor wave is built from Minute waves, a Primary wave from Minor waves, etc.). This group builds those extra coarser layers automatically.
- **Compression levels above primary** — how many coarser degree-layers to search (0 = only the primary/finest level).
- **Compression significance filter / Level growth factor** — how much price movement is required to "count" as a swing at each coarser level.
- **Auto-calibrate** — adds one extra, precisely-tuned level so a clean pattern is more likely to end exactly at the current price.
- **Prefer higher degree within recency band / Leading scenario ranking priority** — controls whether a bigger, older completed pattern outranks a smaller, more recent one when choosing the Leading Scenario.
**Practical effect:** raise "Compression levels" if you trade higher timeframes and want the indicator to recognize multi-month/multi-year structures, not just the smallest visible swings.
### 2.4 Parent-Timeframe Context Gate
Cross-checks every candidate count on your chart against the wave structure on a higher (or, since this update, lower) timeframe, so a count on your chart can't contradict what's already confirmed elsewhere.
- **Enforcement** — Off / Soft (score penalty) / Hard (candidate discarded outright).
- **Automatic parent timeframe** — walks the standard cascade (1M→1W→1D→4H→1H→30m→15m→5m) to find the parent automatically.
- **Cascade shift** — nudges that automatic result further up (coarser/parent context, the original use) or now also **down** (finer/child context — checks your chart against a lower timeframe's already-confirmed structure instead).
- **Manual parent timeframe** — pick it yourself instead of automatic.
- **Time-gate tolerance / Soft-mode score penalty / Show parent-TF state** — fine-tuning and visibility of this check.
### 2.5 Count Anchoring
Controls where a wave count is allowed to *start*.
- **Require count to start at a turning point** — rejects counts that begin mid-move rather than at a genuine reversal.
- **Manual count start** — pin the count's starting reference point yourself instead of letting the indicator choose automatically.
- **Anchor lookback** — how many pivots before your chosen point the indicator is allowed to search.
### 2.6 Scoring Module
The weights behind every score you see in the tables.
- **Max Alternative Counts** — how many runner-up candidates appear in the Score table.
- **Minimum Score** — hide candidates below this score.
- **Weight: Fibonacci / Structure / Equality / Time / MTF / RSI Momentum** — how much each factor contributes to the final 0–100 score. Raise Fibonacci's weight if you trust ratio-based confluence most; raise Structure's if you care more about textbook wave-shape rules.
### 2.7 Hard-Rule Tolerance (soft-fail zone)
Elliott Wave has hard rules (e.g. "Wave 4 may not overlap Wave 1's territory in an Impulse"). This group lets slightly-violating counts survive with a score penalty instead of being thrown out outright — useful because real price action isn't always textbook-perfect.
- **Wave 2 / Wave 3 / Wave 4 / B-wave tolerance** — how far a rule may be bent, as a percentage.
- **Max score malus** — the score penalty applied at full tolerance.
### 2.8 Pattern Detection
Simple on/off toggles for which pattern types the search engine looks for: Impulse, Diagonal, Zigzag/Flat, Triangle, Combination W-X-Y, Combination W-X-Y-X-Z. Turning off types you don't care about speeds up scanning.
### 2.9 Sub-Wave Verification
Checks whether each leg of a pattern also decomposes cleanly into its own internal sub-waves (e.g. does "Wave 1" of an Impulse itself look like a valid 5-wave structure at a finer scale).
- **Verify internal sub-wave structure / Hard-fail contradictory sub-structure** — how strict this check is.
- **Mark unresolved legs with a text label** — shows a small marker (and optional line) wherever a leg's interior couldn't be classified, so you know exactly where the count is less certain.
### 2.10 Fibonacci Target Zones
- **Show Fibonacci Target Boxes** — draws projected target zones from the leading scenario's completed waves.
- **Confluence Tolerance** — how close two separate Fibonacci projections must land to merge into one highlighted confluence zone (a stronger signal than a single projection alone).
### 2.11 Table Settings
- **Show MTF Coherence Table** — small table showing trend direction across timeframes.
- **Show Scoring Table** — the ranked list of the leading scenario + alternatives, with individually toggleable columns (Rank/ID/Type/Score/Tier/Dir/Degree/End).
- **Show pivot points table / active-settings summary row / RAW point markers** — additional diagnostic tables.
### 2.12 Visualization: Wave Labels
Everything about how the main wave count (1-2-3-4-5, A-B-C, etc.) is drawn: marker shapes, label text, degree labels, sub-wave labels, and their distances from the candles. This is the group you'll touch most often for pure cosmetics.
### 2.13 Visualization: Lines & Zones
Settings for the invalidation line/marker (the price level that would prove the current count wrong) — its distance from the last bar and whether its label (price + reason) is shown.
### 2.14 Visualization: Pattern Explanation
- **Show explanation for leading scenario** — adds a small "i" marker you can hover for a plain-English explanation of why the indicator chose this specific pattern.
- **Pin explanation as static panel** — instead of (or in addition to) hovering, shows the same explanation permanently in a small on-chart panel — useful for screen recording or simply not having to hold your mouse still. Panel position, width, and independent text size/color are all configurable.
- **Show explanation for each historical/sub-wave segment** — same idea, applied to every historical segment or sub-wave.
### 2.15 Visualization: Historical Chain (Pre)
Controls the dimmed wave count drawn through price history *before* the leading scenario — label distance, and the fallback marker/line shown wherever a stretch of history couldn't be classified into a clean pattern.
### 2.16 Visualization: Sequel Chain (After)
Continues the story *after* the leading scenario ends, at the same degree, styled with the same full prominence as the leading scenario itself (not dimmed like the historical chain) — so it reads as a seamless continuation rather than a historical footnote.
### 2.17 Gap Raw Count (Historical Chain)
For stretches of the Historical Chain that can't be classified as a clean pattern:
- **Try real WXY/WXYXZ fit first** — before giving up, the indicator tries to fit a genuine rule-verified Combination pattern into the gap.
- **Show a simple count inside unclassifiable stretches** — if no real fit works, shows a neutral running count (1, 2, 3...) instead of leaving the gap blank, clearly marked as *not* a rule-checked Elliott count.
- **Max new labels per update** — a performance safety cap.
### 2.18 Nested Lower-Timeframe Wave Overlay
Overlays a finer wave count from a lower timeframe on top of your current chart (e.g. shows the i-v sub-structure of Wave 3 pulled from a lower timeframe). Two independent levels available.
### 2.19 Forward Projection
- **Show projected continuation** — a dashed projection of where price is likely headed if the current count keeps playing out.
- **Show Wave 5 target as a confluence zone** — projects the final target using multiple methods at once and highlights where they agree.
### 2.20 Colors (All Features)
Every color used anywhere in the indicator, collected in one place — labels, lines, tables, zones, everything. No need to hunt through 18 different feature groups to change one color.
### 2.21 Label & Text Sizes (All Features)
Every text-size setting, collected in one place.
### 2.22 Line Styles & Widths (All Features)
Every line width and style (Solid/Dashed/Dotted) setting, collected in one place.
---
## 3. Reading the Chart
- **Solid, full-color line + labels** = the Leading Scenario (the indicator's current best count).
- **Dimmed line + labels** = the Historical Chain (past structure, lower visual priority).
- **Full-color line continuing after the leading scenario** = the Sequel Chain.
- **"i" marker** = hover (or enable the static panel) for a plain-English explanation of the current pattern choice.
- **"!" marker** = a leg or stretch that couldn't be cleanly classified — the count is less certain there.
- **Dashed line beyond the last bar** = the Forward Projection.
- **Colored box(es) ahead of price** = Fibonacci target zone(s); a distinctly bordered box = a confluence zone where multiple projections agree.
## 4. Practical Workflow
1. Start with **Pattern Detection** — leave all types on unless you have a strong reason to exclude one.
2. Use the **Score Table** (Table Settings group) to judge how confident the leading scenario is — a large score gap to the #2 alternative means high confidence; a close score means the count could flip.
3. If the count looks wrong on a specific leg, hover its **"i"** marker (or enable the pinned panel) to see the indicator's own reasoning.
4. If a stretch looks unresolved ("!" marker or unclassifiable gap), that's the indicator being honest about uncertainty — not a bug.
5. Use the **Parent-Timeframe Context Gate** to keep your chart's count consistent with the bigger picture, or its new negative Cascade Shift to check consistency against a finer timeframe instead. Indicator

GMS Session Rays (Sydney/Asia/London/NY)A lightweight Pine v6 indicator that plots the previous completed session’s High and Low for the four major sessions—Sydney, Asia, London, New York—so you always see the most actionable structure levels without chart clutter. Lines auto-update at the end of each session and extend right as horizontal rays. Labels are clean, stack automatically to avoid overlap, and can be placed on the left or right side of the chart.
What it shows
Previous session High/Low for each enabled session (not the current live session).
Right-extended rays at those prices, updated when the session closes.
Optional labels per session (e.g., “sydney high”, “london low”), with auto-stacking to prevent overlaps.
Customization
Per-session toggles: show/hide each session; show/hide labels per session.
Style controls: color, width, and line style (Solid/Dotted/Dashed) per session.
Label controls: global on/off, Left/Right placement, bars offset, Y-offset (in ticks), size (Tiny/Small/Normal), auto-stacking with adjustable step.
Session windows: editable HHMM-HHMM for Sydney/Asia/London/NY.
Timezone: set a single indicator timezone (default America/New_York).
Only Today mode: clears older rays daily to keep charts minimal.
How it works (under the hood)
Tracks High/Low only while a session is active; when it ends, those values are frozen and plotted as the previous session levels. Indicator

Relative Strength (RS) - Mansfield StyleRelative Strength (RS) measures how a symbol performs against a chosen
benchmark. Instead of plotting the raw price ratio — whose scale differs
from one symbol to another and makes comparison difficult — this script
normalizes the ratio (symbol close / benchmark close) against its own
simple moving average over a configurable lookback "Period". The result
is a zero-centered line that reads the same way on any symbol:
- RS above 0 and rising → the asset is outperforming the benchmark
- RS below 0 and falling → the asset is underperforming
- Zero-line crossings → shifts in relative leadership
Only the direction and the position relative to zero matter, not the
absolute value.
█ HOW IT WORKS
1. The script requests the benchmark's close on the selected timeframe.
2. It computes the raw ratio: symbol close / benchmark close.
3. The ratio is divided by its SMA over the "Period" lookback, minus 1 —
expressing how far the current relative strength stands above or
below its recent average.
4. An optional moving average of RS can be displayed as a signal line.
█ INPUTS
- Comparative Symbol: the benchmark (an index such as SPX, a sector
index, or any peer symbol — e.g. compare gold against silver).
- Period (default 50): normalization lookback. Shorter = more reactive,
longer = smoother and slower.
- Show Moving Average / Moving Average Period: optional smoothing line.
- Timeframe: leave empty to use the chart's timeframe, or select a
higher timeframe for multi-timeframe analysis.
█ HOW TO USE
Apply the indicator to any symbol. When RS holds above zero, the asset
is leading its benchmark — favor it for relative-strength strategies
(buy strength). When RS holds below zero, the asset is lagging — avoid
it or rotate out. Zero-line crossovers flag early changes in relative
leadership, and two built-in alerts fire on these crossings.
RS is a relative tool, not a timing tool: an asset can outperform a
falling benchmark while still declining in absolute terms. Combine it
with your own trend or entry criteria.
█ CREDITS
The normalization method follows the Mansfield Relative Strength
concept popularized by Stan Weinstein in "Secrets for Profiting in
Bull and Bear Markets".
█ NOTE ON HIGHER TIMEFRAMES
When a higher timeframe is selected in the Timeframe input, the value
of the current forming bar updates until that bar closes. Historical
values do not repaint. Indicator

Quantum Trap Detector AI [QTD AI] v1Quantum Trap Detector AI v1 — Complete Setup
🔹🔹Step 1: Final Script Preparation
Before publishing Quantum Trap Detector AI v1, make sure the script is clean, optimized, and ready for the Trading View community.
Final checks:
✅ Script name: Quantum Trap Detector AI v1
✅ Pine Script Version: Pine Script v6
✅ Remove unnecessary test code
✅ Check all signals and visual elements
✅ Confirm alerts are working correctly
✅ Test on different markets and timeframes
The goal is to provide traders with a professional tool that is simple to understand but powerful enough for advanced market analysis.
🔹🔹Step 2: Indicator Concept
Quantum Trap Detector AI v1 is designed to help traders identify hidden market behavior by analyzing price action, liquidity movements, and breakout traps.
Traditional indicators often react after the move has already happened. QTD AI focuses on detecting important market events such as:
• Liquidity sweeps
• Fake breakouts
• Bull traps
• Bear traps
• Market structure changes
• Momentum shifts
• Potential high-probability zones
The indicator combines multiple market conditions into one intelligent analysis system to help traders understand where price may be preparing for its next major movement.
🔹🔹Step 3: TradingView Description
Quantum Trap Detector AI v1
A next-generation market analysis tool designed to detect hidden price traps, liquidity movements, and potential breakout opportunities.
QTD AI analyzes market behavior using advanced price-action logic, volatility analysis, liquidity detection, and structural confirmation to help traders identify stronger market opportunities.
The indicator is built for traders who want a cleaner view of market conditions without relying on traditional lagging signals.
🔥 Main Features
✅ Liquidity Sweep Detection
Identifies areas where price searches for liquidity before potential reversals or continuation moves.
✅ Bull Trap & Bear Trap Detection
Helps recognize false breakouts where many traders may enter too early.
✅ Market Structure Analysis
Tracks important price behavior changes and potential trend transitions.
✅ Smart Momentum Confirmation
Filters weak movements and focuses on stronger market conditions.
✅ Confidence Scoring System
Provides a market strength perspective based on multiple confirmation factors.
✅ Professional Dashboard
Displays important market information in a simple and clean format.
🔹🔹Step 4: How Traders Can Use QTD AI
For better results:
Identify the current market direction.
Wait for liquidity interaction or trap detection.
Confirm market structure.
Use proper risk management.
Combine signals with your own trading strategy.
QTD AI is designed as a decision-support tool, not a replacement for personal analysis.
🔹🔹Step 5: Recommended Markets
Suitable for:
📌 Forex
📌 Cryptocurrency
📌 Indices
📌 Commodities
📌 Stocks
Recommended timeframes:
• 15 Minutes
• 1 Hour
• 4 Hours
• Daily
🔹🔹Step 6: Publishing Message
Introducing Quantum Trap Detector AI v1
After extensive development and optimization, I am releasing a new generation market analysis tool designed to help traders understand liquidity behavior, breakout traps, and market structure changes.
QTD AI focuses on one important goal:
Helping traders see what is happening behind the price movement.
Markets are not always moving through clean breakouts. Many times, price creates traps, collects liquidity, and then makes the real move.
Quantum Trap Detector AI is designed to highlight these important moments and provide traders with a clearer market perspective.
Important Risk Notice
No indicator can guarantee future market results. Trading involves risk. Always apply proper risk management and combine technical analysis with your own trading decisions.
Thank you to everyone supporting the development journey of Quantum Trap Detector AI v1.
More advanced updates and improvements are coming soon.
Follow, like, and share your feedback to support future development. Indicator

Quantum Trend Fusion StrategyQuantum Trend Fusion Strategy (QTFS) | Complete Setup Guide
Introduction
Quantum Trend Fusion Strategy (QTFS) is a rule-based trading strategy designed to identify high-probability trend-following opportunities while filtering out many low-quality entries. It combines trend, momentum, and volatility into a single trading framework that can be applied across Forex, Crypto, Indices, Stocks, and Commodities.
🔹Step 1🔹Determine the Primary Trend
The strategy first identifies the overall market direction using the 200 EMA.
Price above the 200 EMA = Bullish market bias.
Price below the 200 EMA = Bearish market bias.
Trading only in the direction of the dominant trend helps reduce counter-trend trades.
🔹Step 2🔹Confirm the Trend with Supertrend
After the EMA establishes the market bias, the Supertrend indicator confirms whether the current move has enough strength.
A valid trade is considered only when the Supertrend agrees with the overall trend.
🔹Step 3🔹Validate Momentum Using RSI
Momentum confirmation is provided by the Relative Strength Index (RSI).
Long Setup
RSI crosses above 55.
Short Setup
RSI crosses below 45.
This helps avoid entering trades during weak or indecisive price action.
🔹Step 4🔹Entry Rules
Buy Setup
Price is above the 200 EMA.
Supertrend confirms a bullish trend.
RSI crosses above 55.
Enter at the close of the confirmation candle.
Sell Setup
Price is below the 200 EMA.
Supertrend confirms a bearish trend.
RSI crosses below 45.
Enter at the close of the confirmation candle.
🔹Step 5🔹Risk Management
The strategy uses the Average True Range (ATR) to adapt to changing market volatility.
Stop Loss = 1.5 × ATR
Take Profit = 3 × ATR
This creates a favorable reward-to-risk profile while allowing trades enough room to develop.
🔹Step 6🔹Trade Management
Once a position is open:
Allow the predefined stop-loss and take-profit levels to manage the trade.
Avoid moving the stop-loss impulsively.
Let the strategy play out according to its rules.
Best Markets
XAUUSD (Gold)
BTCUSD
Major Forex Pairs
US Indices
Stocks
Commodities
Recommended Timeframes
15 Minutes
30 Minutes
1 Hour
4 Hours
Daily
Key Advantages
Objective, rule-based entries.
Trend and momentum confirmation.
Adaptive ATR-based risk management.
Suitable for multiple asset classes.
Easy to understand and backtest.
Risk Notice
No trading strategy can guarantee profits. Always use disciplined risk management, avoid overleveraging, and test any strategy thoroughly before using it in live markets.
If you find this strategy helpful, consider following my profile for future trading ideas, strategy updates, and educational content. Strategy

Indicator

Indicator

Indicator

MTF Range Tracker+ (M1D)OVERVIEW
MTF Range Tracker+ draws the Daily, Weekly and Monthly trading ranges as clean, connected boxes directly on your chart, then projects each range's High, Low and Equilibrium into a compact Power-of-Three (PO3) candle stack on the right. It adds Average Daily / Weekly / Monthly Range levels (ADR / AWR / AMR) and a small dashboard that tells you, at a glance, how much of each average range the current period has already used.
It is a top-down, time-based framework tool. Instead of hunting individual signals, it lays out the higher-timeframe structure — where price is inside its daily, weekly and monthly range (premium vs discount), how much room is statistically left, and which levels are acting as liquidity or as a magnet — so you can build a bias and plan trades around it.
Everything is drawn on bar close and completed ranges do not repaint.
WHAT IT PLOTS
Period range boxes (Daily / Weekly / Monthly) — each completed period is boxed from its high to its low across its own bars. Consecutive periods share their vertical dividers, so a run of days (or weeks, or months) reads as one connected structure rather than separate rectangles. The current, still-forming period is drawn live and left open on the right so it visibly flows into the projection.
Range projection to the PO3 candles — the window High and window Low (the highest high and lowest low across the periods currently shown) are drawn from the exact origin candle where each extreme formed, straight across to a compact PO3 candle that represents the range.
PO3 candle stack — each displayed period is also rendered as one compact candle to the right of price, grouped by timeframe (Daily, then Weekly, then Monthly) — a fast higher-timeframe read without leaving your execution chart.
ADR / AWR / AMR levels — the Average Daily, Weekly and Monthly Range is projected from the current period's open as +/- the full average, with optional +/- 1/3 levels.
Dashboard (M1D™) — a small monospace table showing, per timeframe, the percentage of the average range already used this period and the average range itself in points.
KEY DEFINITIONS
Equilibrium (EQ) — the 50% level of a range. Above EQ is a PREMIUM (relatively expensive) area; below EQ is a DISCOUNT (relatively cheap) area. This premium/discount read is the backbone of building bias.
ADR / AWR / AMR (Average Daily / Weekly / Monthly Range) — the average of the last N completed period ranges (high minus low). ADR answers "how far does this market usually travel in a day?" AWR and AMR answer the same for a week and a month. Lengths are adjustable.
Used % (dashboard) — how far the current period has already travelled relative to its average range: (this period's high − low) / average range × 100. Example: "1D 58%" means today has already covered 58% of a typical daily range. A low reading means the period still has room to expand; near or over 100% means it's already extended for its type, and the value turns to the Low colour past 100% as a visual flag.
HOW TO USE IT
Monthly bias (the widest context)
Is price in the monthly PREMIUM (above MEQ) or DISCOUNT (below MEQ)? That frames whether you are, broadly, looking to sell rallies or buy dips within the monthly range.
MH and ML are the monthly liquidity extremes — obvious targets and obvious places for stops to rest.
The monthly Used % tells you whether the month is early (room to run) or already stretched.
Weekly bias (the swing context)
Same premium/discount logic against WEQ. A weekly discount that aligns with a monthly discount is a stronger location to look for longs, and vice-versa.
WH / WL frame the week's liquidity; AWR frames how much more the week can reasonably travel.
Daily bias and trade planning (the execution context)
Use the previous day's DH / DL as liquidity references and DEQ as a common draw / target.
Use ADR to plan realistic targets: if only ~40% of the ADR is used and price is in discount below DEQ, a move back toward DEQ or the ADR+ level is a measured objective. If ~90% of the ADR is already used, expectations for further same-direction travel should be lower.
The +/- 1/3 ADR levels give intraday interim objectives and areas where extended moves often pause.
Reading the PO3 stack
Glance at the daily PO3 candles for the recent daily rhythm (expansion vs consolidation, up-closes vs down-closes) and at the weekly / monthly candle for the dominant higher-timeframe direction — all without switching charts.
A simple top-down routine
Monthly: note premium/discount and month range used.
Weekly: note premium/discount and where price sits vs WH / WL.
Daily: check ADR used and whether price is reaching for DH / DL or drawing back to DEQ.
Drop to your execution timeframe and take entries only in the direction and location the higher-timeframe ranges support.
SETTINGS
Ranges — toggle Daily / Weekly / Monthly and set how many completed periods to show (Days 1–10, Weeks 1–3, Months 1–2). The forming period always draws.
Range Style — box outline, High / Low / EQ colours (blue high / red low by default; set both to black for a fully neutral chart), and whether to connect the ranges to the PO3 candles.
PO3 Candles — show/hide, offset, width, spacing, wick width, per-cluster timeframe tag, EQ tick, and the bull/bear body / border / wick colours.
Average Ranges — enable ADR / AWR / AMR lines, set each averaging length, and toggle the 1/3 levels.
Dashboard — show/hide, position, text size.
Text — compact labels and independent size controls for the per-box and the projection / average labels.
HOW IT IS CALCULATED (and repainting)
Period ranges are captured natively from the chart: on each Daily / Weekly / Monthly rollover the completed period's high, low, open and the bars where its high and low printed are stored, then a new period starts. Completed boxes are fixed and do not repaint.
The weekly period is anchored to the weekend reopen (the Sunday session), so a single mid-week market holiday will not split a week into two; daily and monthly periods roll on their normal calendar boundaries.
ADR / AWR / AMR use confirmed higher-timeframe values (previous completed bar), the standard non-repainting approach.
Because monthly and weekly boxes need enough chart history to cover those periods, run the tool on an intraday-to-daily timeframe with sufficient loaded history (best on 15-minute charts and higher).
NOTES & DISCLAIMER
This indicator is an analytical and planning tool. It does not generate buy/sell signals, does not predict future price, and makes no representation about trading performance. Average-range statistics describe typical past behavior and can be exceeded or undershot at any time. Nothing here is financial advice — always do your own analysis and manage risk. Use it as one input in your own process. Indicator

Indicator

Naked POC Magnetism Fill Probability & Median WaitNaked POC Magnetism — Fill Probability & Median Wait
What it is
A naked POC is the highest-volume price of a past session that price has not revisited since. Traders treat them as magnets — but "it usually gets filled" is folklore until it's measured. This tool measures it. Every historical naked level on your chart becomes a data point (how many sessions it survived before being touched, or whether it never was), and a survival model (discrete-hazard life table) turns that history into, for each live naked level: the probability it fills within the next N sessions and the median wait. Levels are drawn with their measured magnetism, not just their location.
How the statistics work — and their honest limits
Each session's volume-at-price profile is built from that session's bars; at session close the peak-volume price (POC) becomes a naked level.
A level is filled the first time a later bar's range touches it; its age in sessions at that moment is one observation. Levels removed unfilled (history cap) are censored at their age — counted as "survived this long," never as fills. This is the standard treatment of incomplete observations from survival analysis (Kaplan–Meier 1958; classical life tables).
Hazard at age j = fills at age j ÷ levels at risk at age j. Survival multiplies (1 − hazard) across ages; fill-probability within a horizon and the median wait follow directly.
Reliability gates, enforced not footnoted: no probability is displayed until a minimum number of levels have resolved (input, default 20) — until then the tool says BUILDING and shows only counts. And hazard estimates at ages with fewer than 5 at-risk observations are truncated rather than trusted, per standard life-table convention.
Probabilities are empirical frequencies from this symbol and timeframe's own history — they change with regime and sample, and a 70% is not a promise.
Seeing the evidence
Every historical fill prints a small ◈ marker where a naked level was touched — the resolved observations the probabilities are measured from, visible on the chart rather than hidden in a table.
The dashboard shows both the NEAREST level and the STRONGEST magnet (highest fill probability) — they are often not the same level, and the strongest one is the better answer to "where is price most drawn".
An honest design note: this tool deliberately has NO multi-timeframe stack and NO state-debounce, unlike its siblings in this suite — sessions are the model's clock regardless of chart timeframe (a higher-timeframe copy would measure the same sessions with coarser bins), and nothing here chatters (levels are born at session close and resolve on touch). Features are added where they inform, not everywhere.
How to use it
Add to a liquid intraday chart; 5m–15m gives the model the most sessions to learn from. Let it run until the dashboard reads MEASURED.
Each rail is labelled like "NPOC 24512 · 68% /5s · med 3s" — the measured chance it fills within the horizon and the median sessions historically needed. Warm, saturated rails = strong magnets; faded = weak or unrated.
The dashboard shows the nearest level's read and — deliberately — the sample size behind every number.
Use magnetism as context about where price is drawn (targets, fade zones, expectations management), never as an entry signal by itself.
What makes it original
Naked-POC indicators draw lines. This one attaches a measured fill-probability and expected wait to each line, estimated with a proper survival model that handles censoring and refuses to show numbers it can't support. Turning a folklore level into a level with a live, honest statistic is the contribution.
Concept credits
Market Profile / point of control — J. Peter Steidlmayer. Naked (virgin) POC — market-profile trading literature. Survival estimation from incomplete observations — E. L. Kaplan & P. Meier (1958); classical life-table method. Implementation and charting design are the author's own.
Important disclaimer
Research and education only. Not financial advice, not a signal service, not a guarantee of future results. Fill probabilities are empirical frequencies measured on this chart's limited history. Validate independently and manage your own risk. Indicator

Indicator

Stocks: Dashboard [invincible3]Stocks Dashboard is a professional all-in-one stock analysis dashboard built directly for TradingView charts. It is designed to help investors, traders, and analysts quickly evaluate a stock using a combination of fundamental strength, valuation, financial health, income quality, shareholder return, and price momentum.
The indicator displays a clean table-based dashboard on the chart and converts raw financial and technical data into easy-to-read category scores. Instead of checking many separate financial ratios manually, this dashboard organizes the most important stock metrics into structured sections and gives a clear visual overview of the company’s current condition.
The dashboard includes composite scoring for Quality, Value, Growth, Financial Health, Income / Shareholder Return, and Momentum. Each category is scored from 0 to 100 and classified using simple rating labels such as Elite, Strong, Fair, Weak, or Risk. This allows users to quickly compare the strength and weakness of a stock across multiple dimensions.
The Valuation section includes important valuation metrics such as P/E TTM, Forward P/E, PEG Ratio, P/S, P/B, EV/EBITDA, EV/Sales, Earnings Yield, Operating Earnings Yield, Graham Price, Graham Number Upside, EPS TTM, and BVPS. These metrics help identify whether a stock may be expensive, fairly valued, or potentially undervalued.
The Quality section focuses on profitability and business efficiency. It includes ROE, Asset Return / ROA, ROIC, Piotroski F-Score, Gross Margin, Operating Margin, Net Margin, EBITDA Margin, and Free Cash Flow Margin. These values help evaluate how efficiently the company generates profits from its assets, equity, capital, revenue, and operations.
The Growth section tracks the company’s expansion profile using Revenue Growth, EPS Growth, and Sustainable Growth Rate. These metrics help users understand whether the business is improving, stagnating, or losing earnings momentum.
The Financial Health section evaluates balance sheet strength and risk. It includes Debt / Equity, Debt / Assets, Debt / EBITDA, Net Debt / EBITDA, Cash / Debt, Current Ratio, Quick Ratio, Interest Coverage, Altman Z-Score, Operating Cash Flow, and Free Cash Flow. This section is useful for identifying companies with strong liquidity, manageable debt, and lower financial risk.
The Income / Return section is designed for dividend and shareholder-return analysis. It includes Dividend Yield, Payout Ratio, Free Cash Flow Yield, DPS, Buyback Yield, and Buyback Ratio. These metrics help investors evaluate whether a company is returning value to shareholders through dividends, buybacks, and cash generation.
The Momentum section adds a technical view of the stock. It includes RSI 14, 1-month return, 3-month return, 6-month return, 12-month return, 6-month relative strength versus a selected benchmark, 12-month relative strength versus a selected benchmark, volatility, and moving-average trend using the 20, 50, and 200 daily moving averages.
The Snapshot section provides a quick summary of the selected stock, including current price, market capitalization, enterprise value, 52-week position, and distance from the 52-week high. This gives users a fast overview of where the stock is trading relative to its recent range.
Users can customize the stock symbol, benchmark/index symbol, financial period, table position, text size, color theme, and visible sections. The dashboard supports multiple professional themes, including Dark Terminal, Light Terminal, Emerald Pro, Royal Blue, and Amber Desk. Users can also enable or disable colored score backgrounds, score bars, alternating rows, colorful section headers, and directional symbols.
This indicator is useful for:
* Long-term stock analysis
* Fundamental screening
* Valuation comparison
* Dividend and shareholder-return review
* Financial health analysis
* Momentum confirmation
* Relative strength comparison against an index or benchmark
* Building a structured watchlist review process
The goal of this dashboard is to provide a fast, organized, and visually professional stock overview without requiring users to switch between multiple financial websites or separate indicators. It combines fundamental data and technical momentum into one compact chart-based table, making it easier to identify strong, weak, undervalued, overvalued, or financially risky stocks.
Note: The dashboard uses TradingView’s available financial data. Some metrics may appear unavailable depending on the selected symbol, exchange, market, or financial data coverage. This tool is intended for analysis and research purposes only and should not be considered financial advice.
Indicator

Elaris Trend LifecycleElaris Trend Lifecycle
Overview
Elaris Trend Lifecycle is a trend analysis indicator designed to help traders identify different phases of a market trend using a combination of trend structure, momentum, volatility, and price behavior.
Instead of treating every trend equally, the indicator classifies the current market into distinct lifecycle stages, allowing traders to better understand whether a trend is just beginning, gaining strength, becoming extended, or showing signs of weakening.
The goal is to provide additional context that can assist with trade planning, trend-following strategies, and risk management across different markets and timeframes.
---
Lifecycle Phases
• Neutral
No clear directional trend is currently detected.
• Birth
A new bullish or bearish trend is beginning to develop based on moving average alignment and improving momentum.
• Expansion
The trend is strengthening with increasing directional momentum and supportive volatility conditions.
• Maturity
The trend remains intact but has progressed for an extended period or has moved significantly away from its average price.
• Exhaustion
Price begins showing characteristics that may indicate slowing momentum, including extended movement and rejection wicks.
• Reversal Risk
Trend conditions have weakened and structural changes suggest that the probability of continuation has decreased.
---
Features
• Multi-stage trend classification
• EMA-based trend engine
• Trend duration tracking
• Momentum evaluation using ADX
• ATR-based volatility expansion analysis
• RSI-assisted exhaustion detection
• Optional confirmed swing structure validation
• Trend lifecycle dashboard
• Dynamic bar coloring
• Background phase visualization
• Bullish and bearish lifecycle signals
• Configurable alerts
• Fully customizable inputs
---
Dashboard
The integrated dashboard displays:
• Current lifecycle phase
• Trend direction
• Lifecycle score
• Bars spent in the current trend
• ADX strength
• ATR expansion status
The dashboard supports both dark and light themes.
---
Alerts
Alert conditions are available for:
• Trend Birth
• Expansion Phase
• Exhaustion Phase
• Reversal Risk
These alerts can be used for notifications or automated workflows.
---
How It Can Be Used
Some examples include:
• Identifying developing trends
• Monitoring trend strength
• Recognizing extended market conditions
• Adding confirmation to trend-following strategies
• Supporting discretionary market analysis
As with any technical indicator, it is intended to be used alongside a broader trading plan and appropriate risk management.
---
Notes
• Signals are generated using confirmed bar data.
• Swing structure confirmation uses confirmed pivots, which naturally require additional bars before confirmation.
• The indicator is designed as an analytical tool and does not predict future market behavior or guarantee trading outcomes.
Indicator

Adaptive Consensus Trail Structure, Regime & SelfAdaptive Consensus Trail — Structure, Regime & Self-Test
A trailing stop that sits on the agreement of several structural references, adapts to the market regime, and forward-tests its own signals so the numbers it shows are measured, not asserted.
What it is
Most trailing stops follow one idea — an ATR band, a SuperTrend, a moving average. This one places the stop where a small committee of independent structural references agree, reads how confident that agreement is, widens or tightens itself according to the market regime, and then continuously audits its own flips and reports the edge it actually produced on your data.
The committee has five members, each locating support/resistance from a different lens:
Anchored VWAP band — fair value for the session/week/month
Session / naked volume Point-of-Control — the price the most volume traded at, carried forward until revisited
Fair-Value-Gap midpoint — unfilled imbalance
Swing pivot — structural memory
Order-flow absorption — where aggressive buying/selling was absorbed (via Bulk Volume Classification)
Why these parts belong in one script (mashup justification)
Each reference alone whipsaws on an index, and each is right in different conditions. They are combined because they correct one another, and the entire value of the script is in that interaction — not in any single line:
A reliability layer scores every reference's historical respect rate with a Wilson lower bound, so a reference that keeps getting ignored loses its vote instead of dragging the stop around.
A consensus layer keeps only the densest agreeing cluster of references, so the stop sits on genuine agreement rather than on an average nobody respects, and far-apart references never force a permanent "no signal."
A regime layer (efficiency ratio + ADX + band-width + a volatility-cluster read + a Hurst persistence estimate) widens the band and tightens the flip confirmation in chop — this is what removes the whipsaw.
A self-test layer forward-scores every flip and recalibrates the confidence number so it means what it says.
Split apart, these are five overlays that each mislead in a range. Wired together, they are one self-correcting, self-auditing trail. That is the reason for combining them.
How it works (six layers)
References are computed on the bar close.
Reliability — rolling-capped respect counts per reference give a Wilson lower-bound "trust." POC is a magnet, so it is judged by forward reaction (did price reject away before breaking through?), not a same-bar close, which keeps its trust honest.
Consensus — the densest agreeing cluster within an ATR band becomes the trail's target; the envelope and confidence are measured on that cluster only.
Adaptive backbone — an efficiency-ratio / regime-adaptive band (Adaptive, Chandelier, or Blend) that widens in chop.
The trail — high confidence pulls the stop toward structure (floored a minimum ATR off price); low confidence rides the wide band, so it flips less in noise.
Self-test — every flip is forward-resolved by triple-barrier first-touch against an unconditional base rate, split by strength tier and by regime, with a walk-forward in-sample→out-of-sample check, a runs test of independence, a Brier score, and a confidence recalibration.
How to use it
Read the top banner for the one-line bias — BULLISH / BEARISH / WAIT — and the READ legend for what to do. The coloured line is your stop: support in an uptrend, resistance in a downtrend. BUY / SELL labels print only on confirmed, sufficiently-confident, higher-timeframe-aligned flips.
The dashboard gives detail top-down: each reference's level and trust, the consensus, raw → calibrated confidence, regime (with Hurst and ADX), the higher-timeframe invalidation stop, and a FULL / HALF / STAND-ASIDE suggestion.
Before sizing, open the Self-Test panel and read the Edge column (hit% − base%), not the raw hit-rate. A ★ means the edge's confidence interval clears the base rate. Prefer signals where the walk-forward change isn't badly negative and the runs test isn't "streaky." Being honest about it: on many indices this tool shows real edge in range and volatile regimes on higher timeframes and little-to-none on very low timeframes or once a trend is already confirmed — the panel makes that transparent so you can pick your spots.
Works on any market
Set the Price source, and for symbols with no native volume set a Borrow-volume proxy (e.g. a futures contract). The panel theme adapts to your chart background automatically. Backbone: Adaptive / Chandelier / Blend. Absorption: order-flow (BVC) or simple. An optional intrabar resolution builds a finer volume profile where available.
Originality
The committee-of-references design, the cluster-not-average consensus, the reliability weighting that lets references lose their vote, the forward-reaction POC respect test, and the confidence self-calibration are the author's own work. The underlying techniques are standard and fully credited below.
Non-repaint
References, regime, consensus and the trail all evaluate on the close of the bar; the live bar is provisional and settles on close. Self-test events are logged and resolved only on confirmed bars and resolve on bars after their trigger at fixed barriers, so hit / base / edge use no look-ahead. The higher-timeframe stop uses a lookahead-off request.
Concept credits
Wilson score interval (E. B. Wilson); efficiency ratio (P. Kaufman); ADX / DMI / ATR / volatility-stop lineage (J. W. Wilder); anchored VWAP (industry standard); volume profile / value area / point-of-control — Market Profile (J. P. Steidlmayer, developed by J. F. Dalton); triple-barrier first-touch labelling (M. López de Prado); runs test of randomness (A. Wald & J. Wolfowitz); rescaled-range / Hurst exponent (H. E. Hurst); Brier score (G. W. Brier); Bulk Volume Classification / VPIN (D. Easley, M. López de Prado & M. O'Hara); reliability-bin (isotonic-style) calibration is standard forecasting practice.
Limitations & disclaimer
"Absorption" is a volume proxy — base data has no true tick order flow, so the buy/sell split is estimated from bar moves, not measured. Confidence is context, not a promise of profit. The self-test is descriptive of past behaviour on the loaded symbol (fixed barriers, no costs or slippage) — a study aid, not a backtest and not a guarantee. A measured edge is what flips did historically here, not a forecast.
This script is for research and education only. It is not financial advice, not a recommendation to buy or sell, and not a guarantee of any outcome. Trading carries risk of loss; your decisions are your own. Test on your own data and use independent risk management before relying on it. Indicator

Indicator

Buyer Control / CVD + Volume Divergence Score v6 (CPeletz)This Pine script is beautiful. The ultimate **buyer/seller control warning system**. It does not predict the future by itself. It watches whether price, volume, and CVD-style buying pressure are agreeing or starting to split apart.
The simple version:
> **Red line = buyers may be losing control.**
> **Green line = sellers may be getting exhausted.**
> **Blue line = price and CVD are agreeing or disagreeing.**
> **Bear Div / Bull Div markers = possible reversal warnings.**
## 1. It builds a fake/proxy CVD
True CVD uses real market buys vs market sells. TradingView usually does not give that on normal candles, so your script estimates it.
It does this:
```pinescript
if close > open
signedVol = volume
else if close < open
signedVol = -volume
else
signedVol = 0
```
So:
* Green candle = count volume as buying pressure
* Red candle = count volume as selling pressure
* Then it adds that up over time with `ta.cum()`
That creates:
```pinescript
cvd = ta.cum(signedVol)
```
So your CVD line is basically:
> “Is volume building more on green candles or red candles?”
It is not perfect order flow, but it is useful for spotting pressure shifts.
## 2. It smooths the CVD
Then it smooths CVD with an EMA:
```pinescript
cvdSmooth = ta.ema(cvd, 5)
```
This makes it less noisy so the script does not overreact to every candle.
## 3. It calculates price slope and CVD slope
This is one of the most important parts.
```pinescript
priceSlope = ta.linreg(close, slopeLen, 0) - ta.linreg(close, slopeLen, 1)
cvdSlope = ta.linreg(cvdSmooth, slopeLen, 0) - ta.linreg(cvdSmooth, slopeLen, 1)
```
In plain English:
* Is price trending up or down?
* Is CVD trending up or down?
The dangerous setup is:
> **Price slope up, CVD slope down.**
That means price is rising, but buying pressure is fading.
That is buyer exhaustion.
## 4. It calculates price/CVD correlation
```pinescript
corrCvd = ta.correlation(ta.change(close), cvdDelta, corrLen)
```
This checks whether price movement and CVD movement agree.
Correlation ranges from:
* **+1.00** = price and CVD strongly agree
* **0.00** = no clear relationship
* **-1.00** = price and CVD are moving opposite
Then your script converts it into a 0–100 visual score:
```pinescript
corrScore = (corrCvd + 1.0) * 50.0
```
So:
* **100** = very strong agreement
* **50** = neutral/choppy
* **0** = strong disagreement
This is your blue line.
If price is rising but the blue line is falling hard, the rally may be unhealthy.
## 5. It checks volume strength
```pinescript
volRatio = volume / averageVolume
```
This tells you whether current volume is strong or weak compared to normal.
Examples:
* **0.50x** = half normal volume
* **1.00x** = normal volume
* **2.00x** = double normal volume
A breakout on low volume is suspicious.
A dump on high volume is more serious.
## 6. It finds swing highs and swing lows
This part:
```pinescript
ph = ta.pivothigh(high, pivotLen, pivotLen)
pl = ta.pivotlow(low, pivotLen, pivotLen)
```
It detects local tops and bottoms.
If `pivotLen = 5`, the script waits for a swing high/low confirmed by 5 candles on each side.
That means the divergence markers appear late by design, because Pine needs confirmation.
## 7. It detects bearish divergence
Bearish divergence means:
> Price makes a higher high, but CVD or volume makes a lower high.
That tells you buyers pushed price higher, but the pressure behind the move was weaker.
The script checks:
```pinescript
currPH > prevPH and currPHCvd < prevPHCvd
```
That means:
* Current price high is higher than previous high
* But current CVD is lower than previous CVD
That creates a **Bear Div** marker.
Bear Div means:
> “Do not chase long. Buyers may be weakening.”
It does **not** mean instant short.
## 8. It detects bullish divergence
Bullish divergence means:
> Price makes a lower low, but CVD improves or sell volume weakens.
The script checks:
```pinescript
currPL < prevPL and currPLCvd > prevPLCvd
```
That means:
* Price made a lower low
* But CVD made a higher low
That creates a **Bull Div** marker.
Bull Div means:
> “Sellers may be weakening. Watch for reclaim.”
It does **not** mean instant buy.
## 9. It builds the Buyer Loss Score
This is the red line.
The script adds points when bearish warning signs appear.
### Buyer Loss gets +25 if:
```pinescript
priceSlope > 0 and cvdSlope < 0
```
Price is rising but CVD is falling.
That is a big warning.
### Buyer Loss gets +20 or +10 if:
```pinescript
corrCvd < 0
corrCvd < 0.25
```
Price and CVD are not agreeing.
### Buyer Loss gets +10 if:
```pinescript
close > close and volRatio < 0.80
```
Price is rising on weak volume.
### Buyer Loss gets +10 if:
```pinescript
rsi > 55 and rsiSlope < 0 and priceSlope > 0
```
Price is rising, RSI is above 55, but RSI is weakening.
### Buyer Loss gets +25 if:
```pinescript
recentBearDiv
```
A recent bearish divergence happened.
### Buyer Loss gets +10 if:
```pinescript
close < emaControl
```
Price is below the control EMA.
So the red line is basically saying:
> “How many buyer weakness signs are stacking together?”
## 10. It builds the Seller Exhaustion Score
This is the green line.
It adds points when sellers may be running out of pressure.
Seller Exhaustion rises when:
* Price is falling but CVD is rising
* Bullish divergence appears
* Price drops on weak volume
* RSI starts improving while price is still weak
* Price reclaims the EMA
So the green line tells you:
> “Are sellers weakening enough for a possible bounce?”
## How to trade it
### For longs
Good long environment:
* Buyer Loss under **40**
* Seller Exhaustion rising after a dump
* Bull Div appears
* Price reclaims EMA/VWAP/midline
* CVD/correlation improves
* Price makes a higher low
Bad long environment:
* Buyer Loss above **65**
* Bear Div appears
* Price below EMA/VWAP/midline
* Blue correlation line falling
* CVD not confirming price
## Main score meanings
| Score | Meaning |
| --------------------------- | ----------------------------- |
| **Buyer Loss 0–40** | Buyers okay |
| **Buyer Loss 40–65** | Buyers stalling / caution |
| **Buyer Loss 65+** | Buyers likely losing control |
| **Seller Exhaustion 0–40** | Sellers still okay |
| **Seller Exhaustion 40–65** | Sellers slowing |
| **Seller Exhaustion 65+** | Possible bottom/reclaim setup |
## Important limitation
Your script is not true CVD.
It is a **candle-direction CVD proxy**.
So it can help you see pressure changes, but you should always confirm with:
* price structure
* support/resistance
* VWAP or Bollinger basis
* BTC direction
* actual volume
* reclaim/failure candles
## The cleanest way to use it
For a top/reversal warning:
> **Bear Div + Buyer Loss over 65 + price breaks EMA/VWAP = buyers lost control.**
For a bottom/reclaim warning:
> **Bull Div + Seller Exhaustion rising + price reclaims EMA/VWAP = sellers may be losing control.**
The script’s job is not to tell you “buy now” or “sell now.”
Its job is to tell you:
> **Is the move healthy, or is pressure starting to diverge?**
Indicator

Market Microstructure Pulse [JOAT]MARKET MICROSTRUCTURE PULSE
A composite microstructure oscillator that fuses three lower-timeframe-reconstructed flow primitives into a single bounded pulse line — the tick imbalance, the aggressive ask/bid streak, and the single-bar massive imbalance event. The pulse tells you in one number whether buyers or sellers are currently dominant at the tape level, and whether that dominance is at warning or extreme intensity.
Lower-timeframe reconstruction
Real microstructure lives below the chart timeframe. The pulse engine pulls intrabar prints from a configurable LTF (default 1 minute; auto-mode picks ~1/20 of the chart TF) and classifies each tick via the standard tick rule. The classified ticks are then EMA-smoothed by a configurable pulse length (default 14) and optionally volume-weighted (default ON) so a heavy print contributes proportionally more to the read than a light one.
The output is a smoothed signed value bounded approximately in where:
+1 — all recent ticks were buy-classified.
−1 — all recent ticks were sell-classified.
0 — perfectly balanced flow.
Aggressive streak histograms
Two separate counters track consecutive same-side ticks — one for aggressive asks, one for aggressive bids. When a streak exceeds the Aggressive Streak Min threshold (default 5), it qualifies as institutional persistence. The two histograms are rendered as a colour-coded background to the pulse line so you can see at a glance which side has been running consecutively. EMA-smoothed for visual stability.
Massive imbalance event
A single-bar event: when one side's share of total bar volume exceeds imbalancePct (default 80%), a Massive Imbalance event fires. This is the script's strongest single-bar read — institutional decisiveness landing on the tape.
Two-tier threshold system
Pulse Warning — |pulse| above the warning threshold (default 0.50). Inner band, visual reference.
Pulse Extreme — |pulse| above the extreme threshold (default 0.70). Triggers the Pulse Extreme alert and tints the chart background.
A toggleable Aggression Flip Marker prints a glyph at the bar where the pulse sign actually flips — useful for catching the moment dominance rotates sides.
Visual system
Pulse line in the iridescent palette (magenta buy / cyan sell) with configurable width.
Aggressive streak histograms — two-sided coloured columns behind the pulse (transparency configurable).
Threshold levels at ±warning and ±extreme (toggleable).
Gradient fill from pulse line to zero, coloured by current sign (transparency configurable).
Background tint on extreme — magenta or cyan tint when |pulse| is above extreme threshold (transparency configurable).
Aggression flip markers at sign-change bars (toggleable).
A locked Iridescent palette (magenta buy aggression / cyan sell aggression / yellow extreme accent on pure black) gives the pane a distinctive cyberpunk-tape identity.
Dashboard
Monospaced 11-row table positionable to any of nine corners. Surfaces:
Current pulse value with sign.
Buy streak count and sell streak count.
Aggressive side dominance with bar age.
Last extreme event direction with bars-ago.
Last flip direction with bars-ago.
Last massive imbalance event with bars-ago.
LTF in use, volume-weighting flag, pulse EMA length.
Threshold values for warning and extreme.
Alerts
Three alert conditions, each independently controllable:
Pulse Extreme — fires when |pulse| crosses above extreme threshold.
Aggression Flip — fires when pulse sign flips (positive ↔ negative).
Massive Imbalance — fires when a single bar's directional share exceeds the imbalance threshold.
How to read it
Three reads, in order of conviction:
Massive Imbalance alert at a structural level — the highest-conviction single read. Institutional decisiveness landed on the tape at a known S/R; the next directional move is more conviction-aligned with the imbalance side.
Pulse Extreme + matching aggressive streak — sustained dominance. The pulse is decisively past its extreme threshold AND the streak histograms show consecutive same-side runs above the streak minimum. This is the regime where momentum tools have their largest edge.
Aggression Flip after extreme — exhaustion read. The pulse hit extreme then flipped sign; the institutional commitment that drove the extreme has just rotated. Often produces clean reversals.
Suggested settings
Defaults (1m LTF, pulse EMA 14, streak EMA 7, volume-weighted ON, ±0.50 / ±0.70 thresholds, 80% imbalance, 5-tick streak min) are tuned for 5m–15m charts on liquid futures and crypto. For lower-timeframe scalping, drop LTF to 15s or 30s (Premium plan required) and pulse EMA to 8. For HTF, set LTF auto-mode and raise streak min to 10. The volume-weighting is the recommended default — without it, equal-tick instruments dominate the read regardless of size.
Originality
The implementation — the LTF tick-rule reconstruction with optional volume weighting, the bounded pulse formulation, the dual aggressive-streak histograms with EMA smoothing, the two-tier (warning / extreme) threshold system, the single-bar massive-imbalance detector, the aggression-flip marker logic, the chart-overlay extreme tinting, and the iridescent dual-hue palette — is JOAT-original. No third-party code reused. The pulse is the original composite formulation.
Limitations
Reconstructed tick direction is an inference — the tick rule is the accepted public-market proxy but it is not a direct read of bid/ask volume. Sub-minute LTFs require a TradingView Premium or Ultimate plan. The pulse is bounded approximately in but extreme volume-weighted reads can briefly exceed those bounds; this is intentional and not a bug. EMA smoothing introduces a small lag; turn pulse length to 1 to see the raw imbalance.
—
-made with passion by jackofalltrades
Indicator

RSI Divergence ScoutRSI Divergence Scout is a pivot-based RSI divergence study designed to mark potential disagreement between price movement and RSI momentum directly on the price chart.
The purpose of this script is to make bullish and bearish RSI divergences easier to see without requiring a separate oscillator pane or a large visual dashboard.
What the script detects
The study looks for two common RSI divergence conditions:
Bullish RSI divergence
A bullish divergence is detected when:
– price forms a confirmed pivot low below the previous confirmed pivot low
– RSI forms a higher value compared with the RSI value at the previous pivot low
– the previous RSI value was below the lower RSI context threshold
This can suggest that downside momentum is weakening, even though price has made a lower low.
Bearish RSI divergence
A bearish divergence is detected when:
– price forms a confirmed pivot high above the previous confirmed pivot high
– RSI forms a lower value compared with the RSI value at the previous pivot high
– the previous RSI value was above the upper RSI context threshold
This can suggest that upside momentum is weakening, even though price has made a higher high.
How the calculation works
The script uses confirmed pivot highs and pivot lows.
For bearish divergence, it compares the current confirmed pivot high with the previous confirmed pivot high:
– current pivot high price is higher than the previous pivot high price
– current RSI value is lower than the previous RSI value
– the previous RSI value is above the upper RSI context threshold
For bullish divergence, it compares the current confirmed pivot low with the previous confirmed pivot low:
– current pivot low price is lower than the previous pivot low price
– current RSI value is higher than the previous RSI value
– the previous RSI value is below the lower RSI context threshold
When a divergence is detected, the script draws a dashed line between the two relevant price pivots and places a label on the current confirmed pivot. The label can also show the RSI value at that pivot.
Why pivot confirmation matters
The script waits for a pivot high or pivot low to be confirmed using the selected left/right pivot sensitivity.
This means a signal appears only after the pivot is confirmed, not at the exact live high or low. This delay is intentional. It helps reduce noise and avoids marking every small candle fluctuation as a swing point.
Inputs
RSI length
Controls the RSI calculation period.
Pivot left bars
Controls how many bars to the left are required for pivot confirmation.
Pivot right bars
Controls how many bars to the right are required for pivot confirmation.
Higher pivot values produce fewer signals and focus on larger swings. Lower values produce more signals and make the script more sensitive to smaller price movements.
Upper RSI context threshold
Used as a context filter for bearish divergence. The previous pivot high RSI must be above this threshold.
Lower RSI context threshold
Used as a context filter for bullish divergence. The previous pivot low RSI must be below this threshold.
Display settings
The script allows bullish and bearish divergence labels to be shown or hidden independently. Pivot-to-pivot lines and RSI values on labels can also be enabled or disabled.
Alerts
The script includes basic alert conditions for bullish and bearish RSI divergence.
Because the script uses confirmed pivots, alerts trigger only after the pivot confirmation process is complete.
How to use it
RSI divergence should be treated as an early warning signal, not as a complete trade trigger.
A divergence can show that momentum is changing, but it does not confirm that price must reverse. In strong trends, multiple divergences can appear before price actually changes direction.
This study is most useful when combined with additional market context, such as:
– trend structure
– support and resistance
– volume behavior
– higher-timeframe direction
– risk management rules
Limitations
The script does not predict future price direction.
It does not generate complete buy or sell signals.
Pivot-based signals appear only after the pivot is confirmed.
Divergence can fail during strong trends, low-liquidity conditions or news-driven price movement.
The study should be used as one part of a broader analysis process.
Educational content only. Not financial advice.
Indicator

DUAL MOMENTUMdual momentum
dual momentum is a visual momentum oscillator built to compare a fast momentum line and a slow momentum line inside a symmetric oscillator range.
the goal of this tool is to help traders read momentum expansion, momentum compression, bullish pressure, bearish pressure, crossovers, overbought areas and oversold areas in a clean separate pane.
this indicator is not a strategy and does not place trades. it does not predict the future and does not guarantee buy or sell signals. it is designed as a technical analysis tool for reading momentum context.
main idea
dual momentum uses a normalized price calculation to transform price movement into a bounded oscillator.
the fast line reacts more quickly to price movement.
the slow line reacts more slowly and gives a smoother momentum reference.
when the fast line is above the slow line, momentum is generally stronger on the bullish side.
when the fast line is below the slow line, momentum is generally stronger on the bearish side.
the distance between both lines helps show whether momentum is expanding or compressing.
what the indicator displays
fast momentum line
slow momentum line
bullish and bearish gradient fill
fast and slow spread ribbon
higher and lower flow bands
bull and bear rails
optional cross triangles
ob and os text markers
glow effect
separate buy and sell alert conditions
how to read the oscillator
the oscillator is centered around zero.
above zero, momentum is generally stronger.
below zero, momentum is generally weaker.
when the fast line crosses above the slow line, bullish momentum may be increasing.
when the fast line crosses below the slow line, bearish momentum may be increasing.
when both lines are far from zero, momentum is extended.
when both lines return toward zero, momentum is cooling down.
input guide
engine
source
selects the price source used for the main calculation.
common choices are close, open, high, low, hl2, hlc3 or ohlc4.
normalization window
sets how many bars are used to normalize price movement.
a higher value creates a smoother and more stable oscillator.
a lower value makes the oscillator more reactive but also more sensitive to noise.
fast smoothing
controls the speed of the fast momentum line.
lower values make the fast line react quickly.
higher values make the fast line smoother.
slow smoothing
controls the speed of the slow momentum line.
lower values make the slow line more reactive.
higher values make the slow line smoother and slower.
amplitude
controls how much the oscillator expands vertically.
higher values make the lines move farther from zero.
lower values keep the lines closer to the center.
range cap
sets the maximum positive and negative range of the oscillator.
this keeps the display symmetrical and prevents the lines from expanding too far.
flow bands
show higher / lower bands
shows or hides the upper and lower flow bands.
these bands help visualize where the oscillator is moving inside its higher and lower zones.
band length
sets the calculation length used for the flow bands.
a higher value makes the bands smoother.
a lower value makes the bands more reactive.
band smoothing
smooths the flow band calculation.
higher smoothing reduces noise.
lower smoothing reacts faster.
band inner edge
controls how deep the flow bands extend toward the center.
higher values create tighter bands.
lower values create larger bands.
bull / bear fill
gradient fill under line
shows or hides the bull and bear gradient fill around the oscillator.
this fill helps identify whether the oscillator is leaning bullish or bearish.
gradient transparency
controls the visibility of the gradient fill.
higher values make the fill lighter.
lower values make the fill stronger.
fast / slow spread ribbon
shows the colored ribbon between the fast and slow lines.
when fast is above slow, the ribbon uses the bullish color.
when fast is below slow, the ribbon uses the bearish color.
ribbons
show bull / bear rails
shows or hides the rail markers at the top and bottom of the oscillator pane.
these rails help show when the fast and slow spread becomes strong enough.
rail min strength
sets the minimum strength required before the rails appear.
higher values show fewer rail signals.
lower values show more rail signals.
signals
show cross triangles
shows or hides triangle markers when the fast line crosses the slow line.
this input is off by default to keep the chart cleaner.
show ob / os text
shows or hides overbought and oversold text markers.
the script displays only text markers, without boxes.
ob text appears above the upper rail.
os text appears below the lower rail.
overbought level
sets the level where the script can mark an ob event.
an ob event appears when the fast line crosses above this level.
oversold level
sets the level where the script can mark an os event.
an os event appears when the fast line crosses below this level.
glow
neon glow
shows or hides the glow around the fast and slow lines.
glow intensity
controls the strength of the glow.
higher values make the glow stronger.
lower values make it softer.
colors
fast / bull color
sets the color of the fast line and bullish visuals.
slow / bear color
sets the color of the slow line and bearish visuals.
buy triangle color
sets the color of the bullish triangle when cross triangles are enabled.
ob / os gold
sets the color of the ob and os text markers.
signals and alerts
buy condition
a buy condition happens when the fast line crosses above the slow line.
this does not mean automatic entry.
it only means the fast momentum line moved above the slow momentum line.
sell condition
a sell condition happens when the fast line crosses below the slow line.
this does not mean automatic exit or short entry.
it only means the fast momentum line moved below the slow momentum line.
ob condition
an ob condition happens when the fast line crosses above the overbought level.
this can show strong upside extension.
os condition
an os condition happens when the fast line crosses below the oversold level.
this can show strong downside extension.
beginner tutorial
step 1: start with the default settings
keep the default settings at first.
the default setup gives a balanced view between speed and smoothness.
step 2: watch the fast and slow lines
the fast line reacts first.
the slow line confirms the broader momentum direction.
when fast is above slow, bullish momentum is stronger.
when fast is below slow, bearish momentum is stronger.
step 3: use the zero line as balance
when both lines are above zero, momentum is generally positive.
when both lines are below zero, momentum is generally negative.
when both lines are close to zero, the market may be neutral or compressing.
step 4: read the spread ribbon
the ribbon between fast and slow shows the momentum spread.
a wider ribbon means stronger separation.
a smaller ribbon means momentum is compressing.
step 5: read the rails
rails appear when the fast and slow difference becomes strong enough.
bull rails show stronger bullish spread.
bear rails show stronger bearish spread.
step 6: use ob and os as extension warnings
ob means the fast line has reached an overbought extension area.
os means the fast line has reached an oversold extension area.
these markers are not automatic reversal signals.
they only show that momentum reached an extreme area.
step 7: use cross triangles only when needed
cross triangles are off by default.
turn them on only if you want visual markers for fast and slow crosses.
for a cleaner chart, keep them disabled and focus on the lines and ribbon.
step 8: confirm with price action
before using any signal, check the price chart.
look for trend direction, support and resistance, market structure, candle close and volume reaction.
do not use the oscillator alone.
example 1: bullish momentum shift
the fast line crosses above the slow line.
the spread ribbon turns bullish.
the oscillator is moving above zero.
this can suggest that bullish momentum is increasing.
a beginner should then check if price is also making higher highs or higher lows.
example 2: bearish momentum shift
the fast line crosses below the slow line.
the spread ribbon turns bearish.
the oscillator is moving below zero.
this can suggest that bearish momentum is increasing.
a beginner should then check if price is also making lower highs or lower lows.
example 3: overbought extension
the fast line crosses above the overbought level.
the script prints ob text above the rail.
this means momentum is stretched upward.
it does not mean price must reverse immediately.
a beginner should wait for rejection, loss of momentum or a structure shift before making any decision.
example 4: oversold extension
the fast line crosses below the oversold level.
the script prints os text below the rail.
this means momentum is stretched downward.
it does not mean price must reverse immediately.
a beginner should wait for support reaction, momentum recovery or a structure shift before making any decision.
example 5: compression before expansion
the fast and slow lines move close together near zero.
the spread ribbon becomes small.
this can show momentum compression.
if the fast line later separates strongly from the slow line, momentum may begin expanding again.
recommended beginner workflow
first, identify the market trend on the price chart.
second, check whether the oscillator is above or below zero.
third, compare the fast line with the slow line.
fourth, read the spread ribbon.
fifth, check for ob or os extension.
sixth, confirm with support, resistance, structure and candle close.
seventh, define risk before any trade idea.
best use cases
reading momentum direction
spotting momentum expansion
spotting momentum compression
watching fast and slow line crosses
identifying overbought and oversold extensions
supporting trend continuation analysis
supporting reversal watch zones
building simple momentum alerts
important notes
ob does not automatically mean sell.
os does not automatically mean buy.
cross triangles are only visual momentum markers.
the oscillator should be used with price action and risk management.
higher settings make the tool smoother.
lower settings make the tool faster.
no indicator can guarantee future market direction.
risk note
this indicator is for technical analysis and educational market study only. it does not provide financial advice, investment advice or guaranteed trading signals. all signals, levels, labels and alerts are references that require independent confirmation and proper risk management.
Indicator
