Path Signature Regime Engine# Path Signature Regime Engine (PSRE)
**What it does**
Path Signature Regime Engine reads the *geometry* of recent price action and
labels the current market state as **Trending up**, **Trending down**,
**Range / chop**, or **Turning (reversion)**. Instead of smoothing price with a
moving average, it measures the shape of the path itself using the low-order
**path signature** — a description of a curve by its iterated integrals from
rough-path theory.
Two terms do the work:
- **Level 1 — drift:** the net displacement of the path over a lookback window.
- **Level 2 — Lévy area:** the signed area the path sweeps relative to its own
chord. A path that keeps curling the same way (a trend) accumulates area; a
path that oscillates back and forth (a range) cancels it out. The sign and
size of this area is the core regime signal.
Both terms are turned into 0–100 percentiles over a rolling window, so the read
adapts to each symbol and timeframe automatically.
**How it works (one method, three views — not a mashup)**
This is deliberately **not** a bundle of independent indicators stitched
together. Every component calls the same internal routine that computes the
drift + Lévy-area read. The "extra" layers are that single computation pointed
at different data:
- **Chart timeframe** — the primary regime read.
- **Multi-timeframe confluence** — the *identical* read evaluated on two higher
timeframes (default 1H and 4H). It is reported as **agreement** ("aligned
2/3"), explicitly *not* as independent confirmation, because nested
timeframes share information. "Aligned" requires at least two of the three
views to agree with the chart.
- **Cross-asset comparison** — the same iterated-integral area computed between
*two return streams* (your symbol and a benchmark) instead of price-vs-time.
This yields a geometric lead/lag read plus a relative-strength sign.
Because the higher-timeframe and cross-asset views are projections of one
geometric primitive rather than separate tools, they reinforce a single
conclusion: what is the path doing, and does that hold up when seen from a
slower clock or against a related instrument.
**The honesty layer (why this differs from a typical regime indicator)**
Markets are noisy, so the engine carries its own reality checks rather than
asking you to take the colours on faith:
- **In-sample base rates** — for each regime it tracks, on the history loaded
on your chart, how often price actually continued over a chosen horizon, with
sample counts shown.
- **"Aligned vs not"** — a side-by-side that can reveal the multi-timeframe
layer adding *nothing* on a given instrument (if the two numbers are equal,
alignment isn't helping — and the panel will tell you so).
- **Transition log** — a table of recent regime flips with their realised
forward return (in ATR units) and a ✓/✗ result. With one toggle it also
emits `log:*` series so you can right-click → *Export chart data* and study
the full transition history offline.
These are descriptive statistics on past data, not predictions.
**How to use it**
1. Add it to any chart. It reads the chart's own symbol, so it works on any
market — equities, futures, FX, crypto, indices.
2. Defaults are tuned for **NIFTY** (benchmark `NSE:BANKNIFTY`, same trading
session). For any other asset, open settings group **4 · Cross-asset
comparison** and set a benchmark that trades in the *same hours* as your
instrument, and adjust the two higher timeframes in group **3** relative to
your working timeframe.
3. Read the panel top-down: regime → strength → bias → path quality →
timeframe agreement → relative strength → flow tilt → base rates.
4. Treat the output as **context**, not a trade trigger. The base-rate rows are
there so you can judge, per instrument and timeframe, whether the read has
any historical edge before relying on it.
5. Optional alerts fire on a new reversion setup and on any regime change.
**Inputs are organised in workflow order:** Data & source, Signature engine,
Multi-timeframe confluence, Cross-asset comparison, Regime base-rate study,
Transition log, Appearance. The panel theme adapts to your chart background
luminance for readability on light or dark themes.
**Concept credits**
The mathematics is not mine; the implementation and the regime/honesty
framework are. Path signatures and the Lévy-area interpretation come from the
rough-path and signature-method literature:
- K.-T. Chen — iterated integrals (1957).
- T. Lyons — rough-path theory and the path signature (1998).
- I. Chevyrev & A. Kormilitzin — *A Primer on the Signature Method in Machine
Learning*.
- J. Morrill, A. Fermanian, P. Kidger & T. Lyons — *A Generalised Signature
Method for Time Series* (the basepoint + time augmentation used here).
Only the interpretable Levels 1–2 are computed directly from cumulative sums.
This is a descriptive geometric read, not a full signature and not a machine-
learning model.
---
## Disclaimer (include at the end of the description)
This script is an educational and analytical tool. It is **not financial
advice**, not a recommendation to buy or sell, and not a signal service. All
statistics it shows (base rates, transition forward returns) are **in-sample**,
computed close-to-close on the history loaded on your chart, with no execution
costs or slippage, and are **not** a backtest and **not** a forecast. Past
behaviour does not guarantee future results. Test thoroughly and trade your own
plan and risk.
Indicator

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

Nadaraya-Watson Envelope [Gabremoku]Nadaraya-Watson Envelope
This indicator builds a non-repainting Nadaraya-Watson envelope using a one-sided Gaussian kernel, so every value is computed from the current bar and past bars only. The goal is to provide a smoother adaptive baseline than a standard moving average while keeping the script operationally honest and suitable for live use.
What makes this script different:
- The central basis is a kernel-weighted Nadaraya-Watson estimate, not a classic SMA/EMA baseline.
- The main envelope is not built from standard deviation by default. It uses kernel-weighted mean absolute deviation (MAD), which is generally less sensitive to single-bar outliers and often produces a more stable channel.
- Standard deviation bands can still be enabled as an optional overlay, so users can compare MAD-based and Stdev-based dispersion around the same kernel basis.
- Signal logic is configurable. Breakout labels can be triggered by close crossing the band, wick piercing the band, or full body breakout, which makes the visual behavior easier to align with the trader’s interpretation.
How it works:
The script applies Gaussian weights to past bars inside the selected window. More recent bars receive the highest weight, while older bars progressively contribute less. The Bandwidth input controls how fast those weights decay. In practice, the effective lookback is usually much shorter than the full Window setting when Bandwidth is low. A practical rule of thumb is that the effective lookback is about 3 × Bandwidth bars, capped by the Window value.
The indicator computes:
1. A kernel-weighted mean, used as the Nadaraya-Watson basis.
2. A kernel-weighted MAD, used as the primary envelope width.
3. An optional kernel-weighted standard deviation, displayed only when the comparison bands are enabled.
The upper and lower MAD bands are then filled with a gradient that increases in strength as price moves away from the basis toward the envelope edges. This makes the visual intensity reflect displacement magnitude, not just bullish or bearish direction.
Compression logic:
The compression zone is based on min-max normalization of envelope width over a lookback period. This is not a statistical percentile rank. A threshold of 0.15 means the current envelope width is near the lower end of the observed width range over the selected compression lookback.
Signal modes:
- Close Cross: triggers only when the close crosses a band.
- Wick Pierce: triggers when the candle’s high or low exceeds a band.
- Body Breakout: triggers when the candle body exceeds a band.
Use Wick Pierce if you want signal labels to match the visible moment where candles extend outside the envelope.
How to use it:
- Use the basis as an adaptive trend reference.
- Use the MAD envelope to judge whether price is stretched relative to recent kernel-weighted behavior.
- Watch compression zones for narrow-range conditions that may precede expansion.
- Compare MAD and Stdev bands when you want to evaluate whether recent volatility is dominated by isolated spikes or by broader dispersion.
Practical notes:
- This script is non-repainting by construction because it does not use centered calculations or future bars.
- Low Bandwidth values create a more reactive basis and shorter effective memory.
- High Bandwidth values create a smoother basis and wider historical influence.
- Increasing Window far beyond roughly 3 × Bandwidth usually has little additional effect.
- Signal labels are state-machine filtered, so they are designed to mark sequence transitions rather than every repeated touch outside the bands.
This indicator is intended as a visual decision-support tool, not as a standalone trading system. It helps traders study adaptive trend, envelope displacement, compression, and breakout structure in a cleaner way than a standard volatility channel. Indicator

Indicator

Aegis Kinetic Trend Matrix [wjdtks255]Aegis Kinetic Trend Matrix
■ OVERVIEW
The Aegis Kinetic Trend Matrix is a professional-grade trend-following framework designed to unify macroeconomic bias filters, micro-execution entry triggers, and volatility boundaries into a single, cohesive candle-overlay system.
By integrating three robust open-source concepts—CM_EMA Trend Bars, HalfTrend, and the Nadaraya-Watson Envelope (NWE)—this system provides traders with a multi-layered filtration process to capture structural market swings with precision.
■ KEY FEATURES
CM_EMA Trend Bars: Dynamically shifts candlestick colors based on a 34-period EMA algorithm to isolate core macro direction and eliminate market noise.
HalfTrend Execution Spine: High-precision trailing anchor that tracks micro-trend pivots, offering distinct, instant BUY and SELL execution labels.
Nadaraya-Watson Envelope: Uses non-parametric kernel regression bounds to highlight overextended pricing and filter volatility exhaustion zones at major structural extremes.
■ 개요 (Korean)
Aegis Kinetic Trend Matrix는 거시적 추세 필터링, 미세 타점 포착, 그리고 변동성의 한계 구간을 단 하나의 캔들 오버레이 시스템으로 결합한 하이브리드 트레이딩 프레임워크입니다.
CM_EMA 트렌드 바, 하프트렌드(HalfTrend), 나다라야-왓슨 엔벨로프(NWE) 시스템을 유기적으로 결합하여, 거친 시장 소음을 여과하고 구조적 변곡점을 정밀하게 잡아내도록 설계되었습니다.
■ 핵심 기능
CM_EMA 트렌드 바: 34선 기준 가격 배열에 따라 캔들 색상을 직관적으로 변경하여 시장의 대추세 방향성을 명확히 정의합니다.
하프트렌드 실행 축: 단기적인 마이크로 추세 전환을 정밀하게 추적하며, 즉각적인 BUY/SELL 진입 라벨을 제공합니다.
Nadaraya-Watson 엔벨로프: 커널 회귀 분석 기반의 동적 밴드를 통해 가격의 과도한 이격을 감지하고 추세적 극한 구간의 반전 포인트를 필터링합니다.
■ Credits & Acknowledgments
This indicator is a combined integration based on public domain open-source works. Special credits and gratitude go to the original authors of CM_EMA, HalfTrend, and Nadaraya-Watson Envelope (AlexGrozav) for sharing their invaluable source code with the global community. Indicator

Aegis SMRT Hybrid Spectrum System [wjdtks255]🛡️ Aegis SMRT Hybrid Spectrum System
■ OVERVIEW**
The Aegis SMRT Hybrid Spectrum System is a professional-grade all-in-one trading framework designed for high-clarity market analysis. By consolidating three powerful consensus tools—SMRT Volatility Bands, Chandelier Exit, and Zero Lag LSMA (ZLSMA)—into a single, highly optimized Pine Script v6 architecture, it completely eliminates chart clutter and reduces dynamic calculation lag.
This system provides a multi-layered approach to trend identification, dynamic trailing stops, and responsive momentum tracking simultaneously.
---
■ KEY FEATURES
1. SMRT Volatility Layers: Utilizes a 3-tier standard deviation ribbon centered on a core EMA to capture overextended market conditions and volatility expansions.
2. Chandelier Trailing Exit: Tracks systemic trend direction changes and provides objective trailing stop-loss coordinates with dynamic background state coloring.
3. ZLSMA Momentum Spine: A zero-lag least squares moving average (rendered in bold yellow) that offers ultra-responsive price tracking, helping traders isolate the true trend direction without mathematical delay.
---
■ 개요 (Korean)
Aegis SMRT Hybrid Spectrum System은 차트의 시각적 명확성과 분석의 정밀도를 극대화하기 위해 설계된 올인원 트레이딩 프레임워크입니다. 검증된 세 가지 메커니즘인 SMRT 변동성 밴드, 샹들리에 출구(Chandelier Exit), 제로랙 LSMA(ZLSMA)를 단 하나의 초경량화 스크립트로 통합하여 차트의 복잡함을 없애고 연산 효율을 높였습니다.
■ 핵심 기능
1. SMRT 변동성 레이어**: 중심 EMA를 기준으로 한 3단계 표준편차 리본을 통해 시장의 과매수/과매도 구간 및 변동성 확장을 포착합니다.
2. 샹들리에 트레일링 엑싯: 추세의 구조적 전환을 추적하고, 동적인 배경색 전환을 통해 객관적인 익절/손절 기준선을 제시합니다.
3. ZLSMA 모멘텀 라인: 반응성이 극대화된 노란색 제로랙 최소제곱이동평균선이 수학적 시차(Lag) 없이 실제 가격 추세의 중심축을 잡아줍니다.
---
■ Credits & Acknowledgments
This script is a modified integration based on public open-source concepts. Respect and credits go to the original creators of SMRT Algo, Chandelier Exit (Everget), and ZLSMA. Indicator

Keltner Channel ATR StretchKeltner Channel ATR Stretch is a Keltner Channel variant designed to show trend bias, price stretch, and volatility width in one compact view.
The script uses an EMA basis with ATR-scaled upper and lower bands. In addition to the channel itself, it normalizes the selected Source's distance from the EMA basis as Stretch, normalizes the EMA basis slope in ATR units as Bias, and ranks the current channel width against its recent min-max range as Width Rank.
The goal is not to create trade signals. The goal is to make the current chart state easier to read: whether price is inside the channel, moving with a trend bias, pulling back toward the basis, stretching beyond the outer band, reaching an extreme band, or returning inside the channel after an outside move.
Dashboard reading:
Bias shows the EMA basis direction normalized by ATR:
Bullish, Bearish, or Neutral.
Position shows where the selected Source is relative to the channel:
Trend Zone, Pullback, Upper Stretch, Lower Stretch, Extreme, or Inside.
Volatility shows the current channel width regime:
Quiet, Normal, or Expanded.
Stretch shows the distance from the EMA basis in outer-channel units.
A value near +1 means price is near the upper outer band.
A value near -1 means price is near the lower outer band.
Slope shows the EMA basis slope in ATR units.
Width Rank shows the current channel width relative to its recent min-max range.
It is a simple 0-100 rank of the current width inside its own recent range, not a statistical percentile.
How it works:
The basis is an EMA of the selected Source.
The outer bands are calculated as:
Basis plus or minus ATR multiplied by the ATR Multiplier.
The inner bands are a fractional zone inside the outer channel.
The optional extreme bands are a wider reference zone outside the outer channel.
Stretch is calculated as:
Source minus Basis, divided by the outer channel half-width.
Slope is calculated as:
Current EMA basis minus the basis from the selected lookback, divided by ATR.
Width Rank compares the current channel width to the lowest and highest channel width over the selected Width Rank Lookback.
Markers and alerts:
Upper stretch and lower stretch mark movement beyond the outer bands.
Upper extreme and lower extreme mark movement beyond the optional extreme band level.
Upper return inside and lower return inside mark when the selected Source moves back inside the outer channel after being outside it.
Trend bias changed marks a change in the ATR-normalized EMA basis direction.
Width regime changed marks a change between Quiet, Normal, and Expanded width states.
The Confirmed bars only setting is enabled by default. When it is enabled, markers and alerts evaluate only on closed bars. The dashboard reflects the current chart state, including the still-forming bar.
This is not a trading system. It is a visual analysis tool for reading channel position, trend bias, and volatility context. It does not provide trade instructions, entries, exits, or performance claims.
Limitations:
Keltner Channels are volatility-based bands and can expand or contract as ATR changes.
A stretch beyond a band does not necessarily mean price must reverse.
A quiet width regime does not guarantee expansion.
A bullish or bearish bias does not predict future direction.
Use this tool together with your own market context and risk management.
No financial advice.
This open-source script was written from scratch using Pine Script built-ins. No third-party Pine code was reused.
日本語補足:
Keltner Channel ATR Stretch は、EMAを中心にATR幅のチャネルを表示しながら、価格の伸び、EMAの傾き、チャネル幅の状態を同時に確認するためのインジケーターです。
右上のDashboardでは、Bias、Position、Volatilityを中心に、現在のチャート状態をすばやく確認できます。
Bias はATRで正規化したEMAの傾きです。
Position は価格がチャネル内、トレンドゾーン、押し目、上方向または下方向の伸び、極端な伸びのどこにあるかを示します。
Volatility はチャネル幅がQuiet、Normal、Expandedのどの状態にあるかを示します。
このスクリプトは売買システムではありません。
BUY/SELL、エントリー、利確、損切りを指示するものではなく、トレンド・行き過ぎ・ボラティリティの状態を読みやすくするための視覚補助ツールです。 Indicator

Confluence Matrix Multi-Timeframe RegimeCONFLUENCE MATRIX — Multi-Timeframe Regime & Accuracy-Weighted Bias
================================================================================
WHAT THIS SCRIPT IS
A multi-timeframe decision panel. Across a fixed ladder of nine timeframes
(1m, 3m, 5m, 15m, 30m, 60m, 120m, 240m, Daily) it measures the same five
technical factors — trend, momentum, structure, volume flow and mean-reversion —
normalises each to a comparable scale, and fuses them into one directional bias
per timeframe. It then compares the timeframes to each other: how strongly they
agree (a confluence meter), how many of the nine are aligned, and whether the
fast timeframes are turning against the slow ones (a transition). It flags moves
that are exhausted, shows where volatility is compressing, and reports past-only
how often the overall bias has actually been followed through on the current
symbol, with a confidence interval.
WHY THE COMPONENTS ARE COMBINED (how the parts work together)
These are not separate indicators stacked in one pane. They are five reads of
the same question — "what is price doing and should I trust it?" — chosen
because they fail in different conditions, so combining them removes each
other's blind spots, and reading them across a full timeframe ladder removes the
blind spot of any single chart:
- TREND: an ATR SuperTrend blended with a moving-average stack. The SuperTrend
flips with less lag than a moving average alone; the stack confirms direction.
- MOMENTUM: MACD histogram + RSI + Stochastic. A three-oscillator read is harder
to whipsaw than any one of them.
- STRUCTURE: location of price within the recent range — acceptance in the
middle versus pressure at the edges.
- VOLUME FLOW: money-flow combined with position relative to the anchored VWAP,
i.e. whether price is above or below the session's volume-weighted fair value.
- MEAN-REVERSION: deviation from an adaptive equilibrium whose responsiveness
scales with the efficiency ratio. This is the counterweight that fades
extension — correct in a range, wrong in a trend.
Because a factor that helps in one regime hurts in another, the fusion is
governed by two layers that decide how much to trust each factor:
1. REGIME WEIGHTING. Each timeframe classifies its own regime from the
efficiency ratio, ADX and relative volatility, and reweights the factors
accordingly — trend and momentum lead in a trend, mean-reversion leads in a
range, and confidence is damped when volatility is elevated. A daily that is
trending and a 5-minute that is ranging are therefore scored by different
logic, which is the whole point of a multi-timeframe read.
2. PROVEN-ACCURACY WEIGHTING. The script tracks, on past bars only, how often
each individual factor's signal has been followed through on THIS symbol, and
scales that factor's weight by its measured hit-rate. So the fusion becomes
regime x proven-accuracy: on a symbol where, historically, mean-reversion has
paid and trend has not, the panel learns that and weights accordingly. This
is what turns a generic vote into a calibrated, symbol-aware read.
Two further layers handle the traps and the timing:
- EXHAUSTION. A fully-aligned stack that is also over-extended is the classic
"everything agrees right at the turn" trap. Exhausted timeframes are marked,
and the confluence meter is damped so that alignment-with-exhaustion is not
mistaken for high conviction.
- SQUEEZE. A read of where Bollinger bands sit inside Keltner channels —
volatility compression that tends to precede expansion. This adds timing
(when a move may start) to the directional read (which way).
The cross-timeframe layer then turns the nine composites into one verdict:
overall direction, a confluence meter, an alignment count, and a fast-versus-slow
transition flag. Calibration of the overall bias keeps the headline honest by
measuring its real follow-through on the current symbol.
HOW IT WORKS (mechanics, briefly)
Each timeframe's factors are computed with standard confirmation and requested
non-repainting; history does not change after the fact. The per-symbol accuracy
weights and the headline follow-through are built by recording a signal's
direction when it forms and checking, a fixed number of bars later, whether
price travelled a chosen ATR multiple in that direction, then aggregating into a
rate with a Wilson confidence interval. All thresholds are ATR-relative, so
nothing is tied to a particular price scale.
HOW TO USE
1. Read the headline bar (overall bias) and the CONFLUENCE meter, then scan the
Bias column down the ladder for a long aligned run.
2. A "!" on a Bias cell means that timeframe is exhausted; high alignment with
exhaustion is lower conviction, and the meter already reflects that.
3. Watch STATE (FULL STACK / TRANSITION) and the SQUEEZE row for timing.
4. Weight the read by FOLLOW-THROUGH — the overall bias's measured hit-rate here.
5. Everything is descriptive context, not a signal to act on.
USE ON ANY MARKET
The Price source input drives the trend, momentum, mean-reversion and structure
reads, so you can run the panel on standard candles, Heikin-Ashi, or another
price series across stocks, indices, futures, forex and crypto. High, low and
volume stay native for the range and flow factors, and a volume-borrow input
supplies volume for symbols that report none.
WHAT MAKES IT ORIGINAL
The contribution is the fusion, not the individual factors, which are standard.
Here the same regime-adaptive, volatility-normalised composite is computed
identically across a timeframe ladder, then weighted further by each factor's
past-only, per-symbol accuracy, with exhaustion damping and explicit alignment,
transition and squeeze context. A multi-timeframe panel that learns which
factors to trust on each symbol, and that damps alignment when a move is
exhausted, is the part that is not available elsewhere.
SETTINGS WORTH KNOWING
- Timeframe Ladder: the nine timeframes are editable.
- Fusion: toggle proven-accuracy weighting, exhaustion damping and the squeeze
read; the higher-timeframe emphasis slider controls how much slow timeframes
count in the overall (0 = equal weighting).
- Calibration: horizon and minimum follow-through define what counts as a
"followed-through" signal for both the accuracy weights and the headline rate.
- External signals (optional): three source inputs accept directional exports
from other indicators and blend them into the overall composite at the chart
timeframe; price sources are auto-ignored.
- Visuals: theme is auto/dark/light; size is Tiny/Small/Normal; the identity
strip shows the script name, symbol and timeframe.
NOTE ON TIMEFRAMES BELOW THE CHART
A timeframe lower than the chart returns its most recent value rather than a full
aggregated history. For a fully historical view of the fast rows, load the
indicator on a low chart timeframe; for a live current-state read, every row is
valid at any chart timeframe.
LIMITATIONS
Higher-timeframe values reflect the developing bar in real time; history is
non-repainting. Volume flow and anchored VWAP need real (or borrowed) volume. The
accuracy weighting and follow-through describe PAST behaviour only — they are not
a backtest and not a probability of future results. Every read is probabilistic
context, never a certainty.
DISCLAIMER
This is a study / indicator for chart analysis and education only. It is not a
strategy, not a recommendation, and not financial advice. It places no orders and
guarantees no outcome. Markets carry risk, and the past behaviour of a signal
does not assure its future behaviour. Do your own research and manage your own
risk.
Indicator

Auto Andrews' Pitchfork Adaptive Channel# Auto Andrews' Pitchfork — Adaptive Median-Line Channel, Regime & Calibration
## What it is
On PulseWire an Andrews' Pitchfork is a manual drawing tool: you place three points by hand and it draws a median line with two parallel tines. This script automates that geometry and, more importantly, surrounds the raw lines with the decision context a drawn pitchfork can never give you — whether the channel currently fits the market, whether a touch is likely to revert or break, and how the median and tines have actually behaved on the symbol you are looking at.
It detects the swing pivots, builds the channel, auto-selects the variation (Standard / Schiff / Modified Schiff) whose median best bisects the recent price path, and then runs a regime, reversion, break-strength and calibration stack on top of that one channel. It works on any symbol and any timeframe; every raw-data series is user-selectable in Settings.
## Why these components are combined (how the parts work together)
A bare auto-pitchfork only answers "where are the lines." On its own it shows the same picture in a quiet range, where price rotates back to the median, and in a strong trend, where price rides a tine and keeps going — the classic median-line failure. Every layer in this script exists to remove one specific blind spot of the bare geometry, and each layer feeds the next. They are not independent indicators stacked together; they are all derived from, or applied to, the same auto-built channel.
- **Auto-geometry (pivot detection + variation fit)** draws the channel and chooses the variation that best fits the actual price path, so the median is meaningful rather than an arbitrary hand placement.
- **Regime (efficiency ratio + ADX + volatility clustering)** decides whether a tine touch should be expected to fade (revert) or be ridden (continue) — the question the geometry alone cannot answer.
- **Reversion math (variance ratio + Ornstein-Uhlenbeck half-life)** is the statistical check on that decision: is the series actually mean-reverting, and if so, in roughly how many bars does a stretch to the median decay.
- **Break-strength scoring** rates how decisive a move beyond a tine is — magnitude versus ATR, volume participation, range expansion, the close's position within the bar (an anti-wick check), and a compression-then-release pattern. This turns "price crossed the tine" into a graded Fade / Ride / Invalid read instead of a binary one.
- **Volume nodes (POC, HVN/LVN)** classify whether each tine sits on a high-volume acceptance shelf (reaction likely) or a low-volume gap (likely sliced through), so proximity becomes a quality read.
- **Confluence (anchored VWAP, volume POC, higher-timeframe swing levels)** marks where the auto-geometry agrees with independent reference levels.
- **Calibration** measures, past-only, how often the median and each tine were actually respected on this symbol, reported with Wilson confidence intervals and a containment percentage, so the reliability read is earned from data rather than assumed.
The histogram of these reads is the synthesis: the dashboard ranks and states the channel's current condition in plain terms, but every figure is descriptive context, never a trade instruction.
## How to use it
1. Add it to any chart and set your data sources under "Data Source (any market)." For symbols with no native volume (some cash indices and FX feeds), enter a volume-bearing proxy in "Borrow volume from symbol."
2. Read the channel as a map: the median is equilibrium, the tines are the channel edges, and the warning lines mark over-extension.
3. Read the Status row: FADE means expect rotation inside the channel; RIDE means a strong break in a trend (the tine is being ridden); INVALID means the channel broke and a re-anchor is expected.
4. Use Regime, Half-life and Var-ratio to judge whether a tine touch is a fade or a continuation; use the volume-node tag and Confluence to judge whether a level is likely to hold; use Respect and Containment to judge whether the fork fits this symbol at all.
5. Treat every value as probabilistic context to combine with your own analysis and risk management.
## Optional context (off by default)
Two optional layers extend the tool without cluttering the default view:
Higher-timeframe context forks overlay lightweight median-and-tine outlines of the same auto-geometry on 5× and/or 15× the chart timeframe, so you can see how the current channel sits inside the larger structure. Only the higher-timeframe pivots are pulled (non-repainting, confirmed bars), and the outlines are drawn in time coordinates so they align across resolutions. They are intentionally minimal — no fills, glow, or analytics — because the full regime, break-strength and calibration stack stays on the current-timeframe fork, which is the one the dashboard describes. Enable them only when you want the multi-scale picture; on very high chart timeframes a 15× resolution can be non-standard and that outline will not populate.
Re-anchor on break lets a fresh fork begin building from post-break structure whenever the channel is invalidated, rather than only when new prominent pivots form. The broken channel stays on screen (dashed) until enough post-break pivots confirm to render the new one — there is an inherent pivot-confirmation lag, so the new fork appears a few bars after the break, not at the exact break bar. A minimum-bars guard prevents repeated re-anchoring in choppy conditions.
## Settings for any market
The High, Low and Price source inputs select the raw series the engine runs on, so it is not tied to one instrument. The volume-borrow input is blank by default and only activates on symbols that truly report no native volume. All optional layers degrade gracefully when their data is unavailable, and a data-health read flags when volume is unreliable.
## Originality
This is an original implementation. The contribution is not any single layer but the closed loop built around an automatically generated pitchfork: auto-geometry feeds a regime and break-strength engine that classifies the channel state, a half-life and variance-ratio core that quantifies reversion, volume-node context that grades each tine, and a past-only calibration tracker that reports how the lines have actually behaved — all from the one channel, rather than as separate tools placed side by side.
## Limitations (honest)
Pivots confirm after the configured right-bars lag and are non-repainting by construction. Volume-based layers require real volume. Calibration figures are descriptive of past behaviour only — they are not a backtest and not a probability of future results. Every read is probabilistic context.
## Disclaimer
This is a study / indicator for chart analysis and education only. It is not a strategy, not a recommendation, and not financial advice. It places no orders and guarantees no result. Markets involve risk, and a level's past behaviour does not assure future behaviour. Do your own research and manage your own risk.
Indicator

BOS & CHoCHA clean, no-nonsense market structure indicator that automatically detects Break of Structure (BOS) and Change of Character (CHoCH) on any asset and any timeframe.
How it works
The script tracks swing highs and lows using pivot detection. When price breaks the last swing level, it's labeled as:
BOS — break in the direction of the current trend (continuation)
CHoCH — break against the current trend (potential reversal)
Since the logic is fully relative (pivot-based, no fixed values), it behaves identically on crypto, forex, indices, or stocks — from 1-minute charts to weekly.
Features
- BOS & CHoCH detection with clear on-chart labels
- Break confirmation mode: Close (filters fakeouts) or Wick
- Dotted extension of unbroken swing highs/lows — these act as resting liquidity targets
- Optional trend background & bar coloring
- Alerts for all four events (Bullish/Bearish BOS & CHoCH)
- Non-repainting: once printed, labels never change
Settings
Swing Length — higher values = only major structure, lower = more granular
Break Confirmation — Close is recommended to avoid wick fakeouts
Market structure is the foundation of any SMC or orderflow-based approach. Use CHoCH as an early warning for trend shifts and BOS as confirmation of continuation ideally combined with your own confluence (liquidity sweeps, volume, higher timeframe bias). Indicator

Volatility Trail [BOSWaves]Volatility Trail - Hull-Anchored ATR Trail with Gradient Cloud Radiation and Multi-Mode Candle Scoring
Overview
Volatility Trail is a Hull-anchored trend trailing system that constructs an ATR-scaled ratcheting trail from a Hull Moving Average baseline, where trend state, gradient cloud geometry, and candle coloring intensity are driven by the relationship between price and the adaptive trail rather than by fixed thresholds or static band crossovers.
Instead of relying on conventional moving average crossovers or symmetric bands, trend state is determined by a one-directional ratcheting trail that advances in the trend direction and locks in progress, only flipping when price closes through the trail level in the opposing direction. The trail distance from the Hull baseline scales with ATR, ensuring the ratchet respects current volatility conditions rather than applying a fixed distance regardless of market behavior.
This creates a trailing trend framework that combines a responsive Hull baseline with a volatility-calibrated ratchet mechanism, a radiating four-layer gradient cloud that visually maps the space between trail and price, and a configurable candle coloring system that scores each bar by distance from the trail, trail acceleration, or both, producing a chart where candle brightness communicates conviction intensity rather than merely indicating direction.
Price is therefore evaluated not just for its position relative to the trail but for how far it has extended from it and how fast the trail itself is advancing, providing a multi-dimensional conviction reading through the visual layers of the indicator.
Conceptual Framework
Volatility Trail is founded on the principle that a trailing trend system should do three things simultaneously: define trend state through a ratcheting mechanism that locks in directional progress, communicate the spatial relationship between price and the trail through a graduated visual field, and score candle conviction based on measurable characteristics of that relationship rather than applying uniform coloring regardless of momentum state.
Traditional trailing indicators provide a line that defines trend direction but offer no framework for understanding how convincingly price is separated from that line or whether the trail itself is accelerating. This framework adds those dimensions through the gradient cloud and candle scoring systems, transforming a single trail line into a complete visual conviction map that reveals both where price is relative to the trail and the dynamic quality of the separation between them.
Three core principles guide the design:
The trail should ratchet in the trend direction using ATR-scaled distance from a Hull baseline, locking in progress and only reversing when price demonstrates a genuine closing breach rather than a temporary excursion.
The space between the trail and price should be visualized as a graduated gradient field with multiple opacity layers that radiates from the trail toward price, communicating proximity and separation depth visually rather than numerically.
Candle coloring should reflect measurable conviction characteristics through configurable scoring modes, dimming bars with weak conviction and brightening bars with strong distance or acceleration readings to encode momentum quality into the candlestick display.
This shifts trailing trend analysis from single-line direction tracking into a multi-layer conviction visualization where the trail, cloud, and candles collectively communicate trend state, spatial conviction, and momentum quality simultaneously.
Theoretical Foundation
The indicator combines Hull Moving Average baseline construction, ATR-scaled ratcheting trail mechanics, four-layer gradient cloud construction using proportional gap interpolation, and a dual-mode candle scoring system based on distance normalization and trail acceleration measurement.
The Hull Moving Average provides a low-lag directional baseline that reduces the smoothing delay of standard moving averages while maintaining noise resistance. The trail ratchets by advancing the lower band as a minimum during uptrends and the upper band as a maximum during downtrends, preventing the trail from retreating against price and locking in each bar's progress. The gradient cloud divides the gap between trail and price into four proportionally spaced bands at 20, 40, 65, and 85 percent of the total gap, filling each interval with progressively increasing transparency to create a radiating visual field. Candle scoring normalizes either distance from trail or trail advancement speed against ATR, applies a power transformation to suppress weak readings, and maps the result to a gradient between a neutral dim color and the full trend color.
Four internal systems operate in tandem:
Hull ATR Trail Engine : Calculates the Hull MA baseline and derives upper and lower ATR-scaled bands, maintaining a ratcheting trail that advances with the trend and flips to the opposing band only when price closes through the current trail level.
Gradient Cloud System : Computes four proportional interpolation points between the smoothed trail and price, plots invisible bands at each point, and fills the intervals with opacity-graduated fills that intensify near the trail and fade toward price, producing a radiating cloud effect.
Candle Scoring Engine : Measures distance from trail normalized by ATR and trail advancement speed normalized by ATR fraction, applies a power exponent to crush weak scores, and maps the resulting score to a gradient from a dim neutral color to the full trend color through configurable distance, acceleration, or combined scoring modes.
Retest Detection System : Monitors price proximity to the trail after the signal buffer period, triggering retest diamonds when price approaches within an ATR-fraction zone of the trail without crossing it, with per-side cooldown enforcement between consecutive signals.
This design allows the trail to provide clean directional state through ratcheting mechanics while the cloud and candle systems layer spatial and momentum conviction context onto the same chart space.
How It Works
Volatility Trail evaluates price through a sequence of trail-aware and conviction-scoring processes:
Source Selection : The price source used for Hull calculation and trail comparison is selected from Close, HL2, HLC3, or OHLC4, allowing the baseline to be anchored to the most appropriate price representation for the target instrument.
Hull Baseline Calculation : The Hull Moving Average is calculated over the configured length from the selected source, providing a low-lag directional reference that minimises the lag penalty of standard moving averages.
ATR Band Derivation : Upper and lower bands are calculated by adding and subtracting ATR multiplied by the configured factor from the Hull baseline, producing volatility-scaled boundaries that adapt to changing market conditions.
Trail Ratcheting : During an uptrend the trail advances as the maximum of the lower band and the prior trail, preventing retreat against price. During a downtrend it advances as the minimum of the upper band and the prior trail. When price closes through the current trail the trend flips and the trail resets to the opposing band.
Trail Display Smoothing : An EMA smoothing pass over the configurable length is applied to the trail for display purposes, producing a visually cleaner line while signals continue to fire from the raw unsmoothed trail.
Gradient Cloud Construction : The gap between the smoothed trail and close is calculated and four interpolation points are derived at proportional fractions of that gap. Each interval between adjacent points is filled with a directional color at progressively increasing transparency, producing a graduated cloud that radiates from the trail outward toward price.
Distance Scoring : The absolute distance between close and the smoothed trail is divided by three times ATR to produce a normalized 0-1 distance score, measuring how far price has extended from the trail relative to recent volatility.
Acceleration Scoring : Trail advancement speed is measured as the absolute change in trail position over the acceleration lookback, normalized by a fraction of ATR, producing a 0-1 score reflecting how quickly the trail is currently advancing.
Score Combination and Power Transform : Depending on the selected candle mode, the distance score, acceleration score, or their maximum is selected, then raised to the power of 2.5 to suppress low-conviction readings and concentrate brightness at genuinely strong bars.
Candle Color Mapping : The transformed score maps from a fixed dim neutral color at zero to the full trend color at one, producing candles that are nearly invisible during low-conviction conditions and fully saturated during strong extension or acceleration events.
Retest Diamond Detection : After the signal buffer period from the most recent flip, price approaching within a fraction of ATR of the trail without crossing it triggers a directional retest diamond, with per-side cooldown enforced between consecutive signals.
Together, these elements form a continuously updating trail system where ratcheting mechanics define direction, gradient cloud layers map spatial conviction, and candle scoring communicates momentum quality across every bar of the trend.
Interpretation
Volatility Trail should be interpreted as a ratcheting trend system with radiating conviction geometry and multi-mode candle intensity scoring:
Bullish Trend State (Green) : Active when the trail has ratcheted below price and price has not closed below it, with the gradient cloud radiating upward from the trail toward the current bar.
Bearish Trend State (Red) : Active when the trail has ratcheted above price and price has not closed above it, with the gradient cloud radiating downward from the trail toward the current bar.
Trail Line : The smoothed ratcheting trail provides the primary directional boundary, advancing with the trend and serving as the structural invalidation level for the current directional state.
Gradient Cloud : Four fills between the trail and price create a radiating opacity field that intensifies near the trail and fades toward price, visually encoding the spatial relationship between the ratchet boundary and current price action. A thick, prominent cloud indicates substantial separation, while a thin cloud suggests price is close to the trail and near potential retest territory.
Distance Mode Candles : Candle brightness reflects how far price has extended from the trail relative to ATR. Bright candles indicate substantial separation, dim candles indicate proximity to the trail.
Acceleration Mode Candles : Candle brightness reflects how fast the trail itself is advancing. Bright candles indicate the trail is moving quickly with the trend, dim candles indicate the trail is stalling.
Both Mode Candles : Candle brightness reflects the maximum of distance and acceleration scores, brightening when either strong extension or strong trail advancement is present.
▲ Buy Signals : Green triangles mark upward trail flips where trend has switched from bearish to bullish and the trail has reset to the lower ATR band.
▼ Sell Signals : Red triangles mark downward trail flips where trend has switched from bullish to bearish and the trail has reset to the upper ATR band.
◆ Retest Diamonds : Small diamonds plotted below bars during bullish retests and above bars during bearish retests when price approaches within the retest zone of the trail after the signal buffer period, identifying potential continuation interaction points with the trailing boundary.
Trail position, cloud depth, candle brightness, and retest diamond placement collectively provide more conviction information than trend direction alone.
Signal Logic & Visual Cues
Volatility Trail presents two primary trail flip signals alongside continuous retest zone monitoring:
Buy Signal (▲) : Green triangle appears when the trail ratchet flips from bearish to bullish, indicating price has closed above the upper ATR band and the trail has reset to the lower band to begin a new bullish ratchet cycle.
Sell Signal (▼) : Red triangle appears when the trail ratchet flips from bullish to bearish, indicating price has closed below the lower ATR band and the trail has reset to the upper band to begin a new bearish ratchet cycle.
Retest diamond detection provides continuous secondary monitoring, marking proximity to the trail after the signal buffer period with independent per-side cooldown enforcement, identifying potential continuation setups at the ratchet boundary throughout the established trend.
Alert generation covers bullish and bearish trail flips and both bullish and bearish retest events for systematic trend monitoring workflows.
Strategy Integration
Volatility Trail fits within volatility-adaptive trailing and momentum conviction approaches:
Trail Flip Entries : Use trail flip signals as primary trend initiation triggers where price has closed through the ATR-scaled boundary and the ratchet has reset in the new direction, with the newly positioned trail providing an immediate structural invalidation reference.
Candle Mode Selection for Instrument Type : Use Distance mode on instruments where price extension from the trail is the primary conviction indicator, Acceleration mode on instruments where trail advancement speed is more consistent, and Both mode for instruments where either characteristic can signal high conviction depending on market phase.
Cloud Depth Assessment : Use gradient cloud depth as a real-time spatial conviction reading. A deep cloud with multiple visible layers indicates substantial separation and trend momentum. A thin cloud with minimal fill depth indicates price is compressing toward the trail and a retest is increasingly probable.
Retest Diamond Re-entry : Use retest diamonds as lower-risk continuation entry references within established trends, entering in the trend direction when price approaches the trail boundary after the signal buffer period rather than chasing extended price action far from the trail.
ATR Factor Calibration : Adjust the ATR factor to match the instrument's typical volatility behavior at the target timeframe, using higher factors for instruments requiring more room between price and trail and lower factors for tighter ratchet tracking.
Multi-Timeframe Trail Alignment : Apply higher-timeframe trail direction as a bias filter, engaging with lower-timeframe flip signals and retest diamonds only when they align with the established higher-timeframe ratchet direction.
Technical Implementation Details
Core Engine : Hull Moving Average baseline with configurable source and ATR-scaled ratcheting trail mechanics
Trail Logic : One-directional ratchet advancing as band maximum or minimum in respective trend directions with flip on close breach
Gradient Cloud : Four proportional gap interpolation points with interval fills at graduated transparency levels radiating from trail toward price
Candle Scoring : ATR-normalized distance and acceleration scoring with power transform and gradient mapping to dim-to-trend-color range
Retest System : ATR-fraction proximity zone detection with signal buffer and independent per-side cooldown enforcement
Visualization : Smoothed trail line, four-layer gradient cloud fills, flip signal labels, retest diamond markers, and multi-mode intensity-scored candle coloring
Signal Logic : Raw trail flip detection with smoothing applied to display only, preserving signal timing accuracy
Performance Profile : Optimized for real-time execution across all timeframes with stateful trail variable maintaining ratchet progress between bars
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday trail tracking for scalping with shorter Hull length and tighter ATR factor for fast ratchet response to intraday momentum shifts
15 - 60 min : Session-level trend identification with balanced Hull length and moderate ATR factor for reliable directional framing across typical session moves
4H - Daily : Swing-level trailing with longer Hull length and higher ATR factor for sustained ratchet persistence across multi-session directional moves
Suggested Baseline Configuration:
Hull Length : 72
ATR Length : 9
ATR Factor : 1.7
Source : Close
Trail Smoothing : 4
Show Gradient Cloud : Enabled
Color Candles : Enabled
Candle Color Mode : Distance
Show Buy/Sell : Enabled
Retest Diamonds : Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, Hull responsiveness at the target timeframe, and preferred signal frequency, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Trail flips too frequently : Increase ATR Factor to widen the distance between the Hull baseline and the trail boundary, requiring more significant price displacement before a flip is registered.
Trail flips too slowly : Decrease ATR Factor toward 0.5 for a tighter trail that responds faster to directional changes, or decrease Hull Length for a more reactive baseline.
Hull baseline too laggy : Decrease Hull Length toward 20 for a faster baseline that captures directional shifts earlier, accepting increased sensitivity to short-term price fluctuations.
Hull baseline too reactive : Increase Hull Length for a smoother baseline that filters minor oscillations and produces a more stable trail ratchet with fewer noise-driven flips.
Candles too uniformly dim : Switch to Acceleration mode if the instrument's trail advancement speed is more variable than its price extension, or reduce ATR Factor so distance scores normalize against a tighter trail range.
Too many retest diamonds : Increase Retest Cooldown to enforce greater bar separation between consecutive diamond markers, or increase Signal Buffer to delay retest detection further from each flip event.
Retest diamonds not firing : The retest zone is sized as a fraction of ATR multiplied by the ATR Factor. On instruments with very consistent trail distance this zone may be narrow. Increasing ATR Factor slightly widens the retest detection zone relative to the trail boundary.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with sustained directional moves where the Hull baseline advances consistently and the trail ratchets without frequent resets, producing deep gradient clouds and bright high-conviction candles throughout the move
Instruments with consistent ATR behavior where the volatility-scaled trail distance produces reliable flip signals without excessive noise-driven reversals
Momentum continuation strategies that benefit from the retest diamond system identifying pullback interactions with the trail boundary as lower-risk continuation entry points
Multi-mode candle scoring approaches where distance or acceleration scoring provides additional conviction context that supplements the directional trail signal
Reduced Effectiveness:
Choppy, low-momentum markets where price oscillates near the Hull baseline, causing frequent trail flips and preventing the ratchet from establishing meaningful directional progress
Extremely volatile instruments where ATR spikes produce wide trail distances that delay flip detection relative to the actual structural change in price direction
Consolidation environments where the Hull baseline moves sideways and the trail ratchet stalls, producing minimal cloud depth and uniformly dim candles without directional conviction scoring
News-driven or gap-heavy markets where instantaneous price displacements trigger trail flips that immediately reverse before the ratchet can establish sustained directional progress
Mean-reversion dominant conditions where trail flips occur rapidly in alternating directions without the sustained follow-through required for gradient cloud development or sequential retest patterns
Integration Guidelines
Confluence : Combine with BOSWaves structural tools, order flow analysis, or momentum oscillators to validate trail flip signals with broader analytical context before committing to directional positions
Cloud Depth Monitoring : Track gradient cloud depth evolution throughout the trend as a spatial conviction indicator. Progressively deepening cloud layers suggest sustained separation and trend health while thinning cloud depth warns of price compression toward the trail and potential retest or flip conditions.
Candle Mode Selection : Match the candle scoring mode to the instrument's typical conviction expression. Instruments that show conviction through large extension moves favor Distance mode; instruments that show conviction through accelerating trail advancement favor Acceleration mode; instruments that express conviction through either mechanism favor Both mode.
Ratchet Progress Awareness : Recognize that the trail only advances and never retreats against price within a trend. Rapid trail advancement reflected in bright Acceleration mode candles indicates strong directional follow-through, while a stalling trail with minimal advancement suggests momentum is flattening before potential reversal.
State Discipline : Maintain directional bias aligned with the current trail trend state until a confirmed closing breach of the trail triggers a flip. Retest diamonds and cloud thinning within an established trend represent continuation context rather than reversal signals and should not override the ratchet-defined directional state.
Disclaimer
Volatility Trail is a professional-grade Hull-anchored trend trailing and conviction visualization tool. It uses ATR-scaled ratcheting trail mechanics with gradient cloud construction and multi-mode candle scoring but does not predict future price movements. Results depend on market conditions, instrument volatility characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates order flow context, structural analysis, and comprehensive risk management. Indicator

Indicator

NLMS Adaptive Trend Filter [BackQuant]NLMS Adaptive Trend Filter
Overview
The NLMS Adaptive Trend Filter is a machine learning inspired trend-following indicator built around one of the most important adaptive filtering algorithms in signal processing: the Normalized Least Mean Squares (NLMS) filter .
Unlike traditional moving averages that use fixed weighting schemes, the NLMS filter continuously learns from incoming market data and updates its internal coefficients in real time. Rather than assuming that price behavior remains constant, the filter attempts to adapt its structure as market conditions evolve.
This approach originates from the field of digital signal processing, where adaptive filters have been used for decades in applications such as:
• Telecommunications
• Radar systems
• Echo cancellation
• Noise reduction
• Speech processing
• Control systems
• Financial signal extraction
The goal of this indicator is to bring one of these adaptive filtering concepts into market analysis by creating a trend model that continually adjusts itself based on prediction error rather than relying on static averaging methods.
Historical Background
The roots of the NLMS filter can be traced back to the work of Bernard Widrow and Ted Hoff in the late 1950s and early 1960s.
While working at Stanford University, they developed what became known as the:
Least Mean Squares (LMS) Algorithm
The LMS algorithm was revolutionary because it provided a computationally simple method for training adaptive systems using gradient descent.
Rather than solving a complex optimization problem all at once, the LMS algorithm updates its weights incrementally after each observation.
The basic concept was:
1. Make a prediction.
2. Measure the prediction error.
3. Adjust the model slightly.
4. Repeat indefinitely.
This idea eventually became one of the foundational concepts behind modern machine learning and online optimization.
Many modern neural networks still rely on the same underlying principle:
Error → Gradient → Weight Update
The LMS algorithm later evolved into several variants, one of the most important being:
Normalized Least Mean Squares (NLMS)
NLMS improves stability by scaling weight updates according to the energy of the input signal.
This prevents learning rates from becoming too aggressive during high-volatility periods and too weak during low-volatility periods.
As a result, NLMS became one of the most widely used adaptive filtering algorithms in engineering.
What Makes NLMS Different From Moving Averages?
Traditional moving averages use predetermined weights.
For example:
Simple Moving Average (SMA)
Every observation receives equal weight.
Example:
20-period SMA
Each bar contributes:
1 / 20 = 5%
regardless of market conditions.
Exponential Moving Average (EMA)
Recent observations receive more weight.
The weighting structure is fixed and never changes.
Weighted Moving Average (WMA)
Uses linearly decreasing weights.
Again, the weighting scheme is fixed.
The problem is that markets do not operate under fixed conditions.
Volatility changes.
Trend persistence changes.
Noise levels change.
Market structure changes.
Yet traditional moving averages continue using the exact same weighting model.
NLMS takes a different approach.
Instead of assigning permanent weights, it learns them dynamically.
The filter constantly asks
"What weighting structure would have predicted the current market best?"
It then updates itself accordingly.
The Core Idea Behind Adaptive Filters
Imagine trying to forecast today's price using the previous 20 bars.
A normal moving average assumes a fixed weighting pattern.
An adaptive filter attempts to learn the optimal weighting pattern.
At every bar:
• A prediction is generated.
• Actual price is observed.
• Prediction error is measured.
• Weights are adjusted.
The process repeats indefinitely.
Over time, the filter learns which historical observations are most useful and which are less important.
Understanding Filter Taps
One of the most important concepts in adaptive filtering is the idea of:
Taps
A tap is simply a historical observation used as an input.
If the indicator uses:
20 taps
it means:
Price
Price
Price
...
Price
are all being used to generate the prediction.
Each tap receives a learned weight.
Instead of:
Current Estimate =Average of past 20 bars
the filter becomes:
Current Estimate =
(w1 × Price ) +
(w2 × Price ) +
(w3 × Price )
...
(w20 × Price )
The weights are continuously adjusted through learning.
How Prediction Works
The indicator attempts to estimate current price using previous observations.
Mathematically:
Prediction = Σ(weight × historical price)
This prediction becomes the filter output.
If the prediction is accurate:
Weights change very little.
If the prediction is poor:
Weights adjust more aggressively.
This allows the model to gradually adapt to changing market conditions.
Prediction Error
The engine measures:
Error = Actual Price − Predicted Price
This error drives all learning.
Large error means:
The model is wrong.
Small error means:
The model is performing well.
The objective is to minimize prediction error over time.
The LMS Learning Rule
The original LMS update rule is:
New Weight =Old Weight + Learning Rate × Error × Input
This is effectively a form of gradient descent.
The filter moves its weights in the direction that reduces future prediction error.
This is conceptually identical to many machine learning optimization methods.
Why Normalization Matters
The original LMS algorithm has a weakness.
When input values become very large:
Weight updates can become unstable.
This is particularly problematic in financial markets where volatility constantly changes.
NLMS solves this problem by normalizing updates according to signal energy.
Instead of:
Weight Update ∝ Error
it becomes:
Weight Update ∝ Error / Signal Power
This creates adaptive scaling.
When volatility expands:
Updates automatically shrink.
When volatility contracts:
Updates automatically expand.
This improves stability significantly.
How the Indicator Uses NLMS
The script implements an online one-step predictor.
For every new bar:
1. Previous M bars are gathered.
2. Current price is predicted.
3. Prediction error is calculated.
4. Weight vector is updated.
5. New estimate becomes available.
This process occurs continuously as new data arrives.
Because no future data is used, the filter remains fully causal and suitable for live trading.
Weight Initialization
Initially all weights are equal:
1 / M
This effectively starts the model as a simple moving average.
Over time the filter learns a custom weighting structure based on market behavior.
The initial equal-weight state acts as a neutral prior.
Step Size (μ)
The learning rate controls how aggressively the filter adapts.
Lower values:
• More stable
• Smoother output
• Slower adaptation
Higher values:
• Faster adaptation
• More responsiveness
• Greater noise sensitivity
Think of μ as controlling the intelligence speed of the model.
Small values make it conservative.
Large values make it reactive.
Regularization (ε)
Regularization prevents division by very small values.
Without it:
Periods of extremely low signal power could create unstable updates.
Regularization improves numerical stability and robustness.
It acts as a safety mechanism for the learning process.
Output Smoothing
After the NLMS estimate is generated, an optional EMA can be applied.
This smoothing is not part of the NLMS algorithm itself.
It exists purely for visual clarity.
The raw adaptive filter already contains the learning logic.
The smoothing stage simply reduces small fluctuations.
Setting smoothing to 1 effectively disables it.
Trend Detection
Trend direction is derived from the slope of the adaptive filter.
Bullish:
NLMS Output > Previous Output
Bearish:
NLMS Output < Previous Output
This creates a directional state machine.
Unlike crossover systems, trend changes occur whenever the adaptive estimate changes slope.
Bullish Flips
A bullish signal occurs when:
Trend changes from bearish to bullish.
This means the adaptive filter has transitioned from declining to rising.
Bearish Flips
A bearish signal occurs when:
Trend changes from bullish to bearish.
This means the adaptive filter has transitioned from rising to falling.
Visual Components
The indicator includes several visualization layers.
Adaptive Filter Line
The main output of the NLMS model.
This represents the learned trend estimate.
Gradient Fill
The space between price and filter is colorized.
Price Above Filter:
Bullish shading.
Price Below Filter:
Bearish shading.
This provides immediate visual context regarding trend alignment.
Edge Glow
An ATR-based glow surrounds price.
This helps emphasize directional conditions while improving chart readability.
Trend Candles
Candles can optionally inherit trend coloration.
Green:
Adaptive trend rising.
Red:
Adaptive trend falling.
This allows traders to visualize the model's directional state directly on price.
How It Differs From Traditional Trend Filters
Most trend indicators answer:
"What is the average price?"
NLMS attempts to answer:
"What weighting structure best predicts current price?"
This distinction is extremely important.
The indicator is not simply smoothing price.
It is continuously learning how price behaves.
Traditional indicators use fixed mathematics.
NLMS uses adaptive mathematics.
Strengths
• Self-adjusting weighting structure.
• Adapts to changing market conditions.
• Based on established signal-processing theory.
• Stable due to normalization.
• Less reliant on arbitrary moving-average formulas.
• Learns continuously.
• Fully causal and non-lookahead.
Limitations
• Not a predictive model in the forecasting sense.
• Can still lag during major regime shifts.
• Excessively large learning rates may introduce noise.
• Small tap counts can become unstable.
• Large tap counts can become sluggish.
Like all adaptive systems, there is a tradeoff between responsiveness and stability.
Best Use Cases
The NLMS Adaptive Trend Filter is particularly effective for:
• Trend identification.
• Regime classification.
• Dynamic support/resistance visualization.
• Adaptive trend following.
• Noise reduction.
• Signal confirmation.
Summary
The NLMS Adaptive Trend Filter applies one of the most important adaptive algorithms in modern signal processing to financial markets. Rather than relying on fixed moving-average weights, it continuously learns from prediction error and updates its internal model in real time. Built upon the pioneering work of Widrow and Hoff, the indicator combines adaptive filtering, normalized gradient descent, and online learning principles into a practical trend-following tool that evolves alongside changing market conditions. The result is a trend model that is fundamentally different from traditional moving averages, not because it smooths price differently, but because it learns how to smooth price as new information arrives.
Indicator

Elaris Auto Trend Fibonacci ProElaris Auto Trend Fibonacci Pro
Overview
Elaris Auto Trend Fibonacci Pro is an advanced market structure and Fibonacci analysis tool designed to automatically identify directional trends, detect significant swing points, and project professional-grade Fibonacci retracement and extension levels directly on the chart.
Unlike manual Fibonacci drawing tools that require traders to constantly adjust anchor points, this indicator continuously analyzes confirmed swing structure and automatically maps the most relevant Fibonacci framework based on the current market trend.
The goal is to help traders quickly identify potential pullback zones, trend continuation areas, profit targets, and key reaction levels without manually redrawing Fibonacci levels throughout the trading session.
---
How The Indicator Works
1. Swing Structure Detection
The indicator first identifies confirmed swing highs and swing lows using a configurable pivot confirmation algorithm.
A swing is only considered valid after confirmation, which helps eliminate many false or premature swing points that often appear during volatile market conditions.
The minimum swing size can also be filtered using ATR-based validation, ensuring that insignificant market fluctuations are ignored.
---
2. Trend Identification
After detecting valid market structure, the indicator determines the dominant directional trend.
Bullish trends are identified when recent confirmed swing lows lead into higher confirmed swing highs.
Bearish trends are identified when recent confirmed swing highs lead into lower confirmed swing lows.
An optional EMA trend filter can be enabled to require alignment between price structure and moving average direction.
This additional layer helps reduce counter-trend Fibonacci projections.
---
3. Automatic Fibonacci Mapping
Once a valid trend is detected, Fibonacci levels are automatically projected between the most relevant confirmed swing points.
The indicator plots:
• 0.236 Retracement
• 0.382 Retracement
• 0.500 Midpoint
• 0.618 Golden Ratio
• 0.786 Deep Retracement
• 1.000 Retracement
These levels represent areas where pullbacks, reactions, trend continuations, or reversals may occur.
---
4. Golden Zone Highlighting
The area between the 50% and 61.8% retracement levels is automatically highlighted as the Golden Zone.
Many traders monitor this region because it often represents an area where institutional participants may re-enter an existing trend after a pullback.
The highlighted zone provides a quick visual reference for potential trend continuation opportunities.
---
5. Extension Targets
The indicator can optionally project Fibonacci extension levels beyond the current trend.
Available extension targets include:
• 1.272 Extension
• 1.618 Extension
• 2.000 Extension
These levels can be used as potential profit-taking areas, trend continuation objectives, or future reaction zones.
---
6. Trend Dashboard
A built-in dashboard provides real-time information including:
• Current trend direction
• Swing strength relative to ATR
• Fibonacci anchor direction
• Golden zone status
• Indicator operating mode
The dashboard helps traders evaluate current market conditions without needing additional analysis tools.
---
How To Use
Trend Continuation
1. Wait for a confirmed bullish or bearish trend.
2. Allow price to retrace toward the highlighted Fibonacci levels.
3. Monitor the Golden Zone for potential continuation setups.
4. Use extension levels as potential target areas.
Pullback Analysis
The 38.2%, 50%, and 61.8% retracement levels can help identify areas where temporary corrections may end and the primary trend may resume.
Target Projection
The Fibonacci extensions can be used to estimate possible future trend objectives after a successful continuation move.
---
Important Notes
• The indicator uses confirmed swing points and does not rely on future-looking calculations after confirmation.
• Fibonacci levels automatically update when a new confirmed market structure is established.
• The indicator is designed for trending markets and may generate fewer meaningful projections during prolonged ranging conditions.
• This tool is intended for technical analysis and should not be used as a standalone trading system.
---
Best Markets
The indicator can be applied to:
• Cryptocurrency Markets
• Forex Markets
• Stock Markets
• Index Markets
• Commodity Markets
It is particularly effective on higher liquidity instruments where market structure tends to be more consistent.
---
Best Timeframes
Recommended timeframes:
• 15 Minutes
• 1 Hour
• 4 Hours
• Daily
Higher timeframes generally produce more reliable market structure and Fibonacci projections.
---
Alerts
The indicator includes alerts for:
• Trend direction changes
• Golden Zone interactions
• Key Fibonacci level breaks
These alerts can be integrated into trading workflows for additional monitoring and confirmation.
---
Thank you for using Elaris Auto Trend Fibonacci Pro.
Indicator

Gabremoku CloudsGabremoku Clouds is a volume-driven equilibrium cloud built to highlight fair-value zones, directional acceptance, and compression/expansion phases in a cleaner and more forward-looking way than traditional cloud indicators. Instead of using classic Ichimoku spans or standard deviation bands, this script builds its structure around a custom volume-weighted equilibrium line and a surrounding cloud whose width is based on Volume-Weighted Average Spread (VWAS). The result is a cloud that reacts not only to price movement, but also to how price is distributed under volume, making it useful for reading consensus, imbalance, and market acceptance.
A key idea behind this indicator is that not all price movement has the same meaning. When volume concentrates inside a tighter range, the cloud compresses and signals balance or consensus. When price expands with broader spread and weaker concentration, the cloud widens and reflects uncertainty or directional transition. This gives the indicator a different purpose from standard volatility envelopes: it is designed less as a generic overbought/oversold tool and more as a market structure and equilibrium map.
The script also includes a 26-period forward projection of the equilibrium cloud. This projected area is calculated from current and historical information only, then shifted forward visually to provide a future reference zone without using lookahead logic. Its purpose is not to predict price in an absolute sense, but to suggest where balance may migrate next if the current slope and cloud conditions remain consistent.
What it helps identify
Trend acceptance when price holds above or below the cloud with supporting volume.
Fair-value reclaims when price rotates back into equilibrium after displacement.
Squeeze-to-expansion transitions when the cloud compresses and then releases into directional movement.
Exhaustion when price reaches a fresh extreme while volume momentum decelerates.
How to use it
Use the current cloud to judge whether price is trading in balance, in directional acceptance, or in transition.
Use the projected cloud as a forward reference area for continuation, reversion, or future balance.
Treat the signals as contextual tools, not standalone trade instructions. They work best when combined with price structure, market context, and risk management.
What is new
Gabremoku Clouds is not a mashup of existing tools. Its core logic is built around a custom equilibrium model that combines volume-weighted price location with volume-weighted spread behavior, then extends that structure into a forward cloud projection. The goal is to give traders a more informative cloud: one that reflects where value is forming now, how stable that value is, and where it may shift next. Indicator

Market Structure (BOS / CHOCH), Advanced & ImprovedMarket Structure (BOS / CHOCH)
A clean, dual-layer market structure tool that labels Break of Structure and Change of Character from a single, internally consistent trend engine, then projects the resting liquidity those swings leave behind.
The core idea
BOS and CHOCH are the same break. What separates them is direction relative to the current trend, so this script tracks one trend state and derives the label from it:
BOS (Break of Structure) : price breaks a swing level in the direction of the trend. Continuation.
CHOCH (Change of Character) : price breaks a swing level against the trend. Reversal, and it flips the trend state.
Because both signals come from one state machine, you never get contradictory labels: a break with the trend is always BOS, a break against it is always CHOCH.
Dual-layer structure
The engine runs twice at the same time:
Swing structure (longer pivot length) : the major skeleton, drawn bold, with trailing watched-level lines and HH / HL / LH / LL swing labels.
Internal structure (shorter pivot length) : the minor continuation breaks inside each swing leg, drawn thin and faded so they read as secondary.
This lets you see a minor bullish BOS unfolding inside a major downtrend, which is the context most single-length tools miss.
Liquidity pools
Every unbroken swing high (buy-side) and swing low (sell-side) is projected to the right as a resting liquidity line, and removed the moment price wicks through it. What stays on screen is only live, untaken liquidity, the levels most likely to be targeted next.
Features
BOS / CHOCH detection with a single coherent trend state
Dual-layer swing and internal structure
Trailing lines marking the exact levels currently being watched
HH / HL / LH / LL swing labels, color coded by structural meaning
Buy-side and sell-side liquidity pools with auto removal on sweep
Top-right trend table showing the swing and internal trend state
Close or Wick break confirmation
Eight alert conditions: swing and internal, BOS and CHOCH, bullish and bearish
Inputs
Swing length and Internal length : pivot lookback for each layer. Lower values catch more structure, higher values show only major moves.
Break confirmation : Close requires a close beyond the level, Wick accepts any wick beyond it.
Toggles for BOS, CHOCH, active levels, swing labels, liquidity, internal layer and the trend table.
How to use
Trade with the swing trend, use internal CHOCH for early reversal warnings and internal BOS for continuation entries.
Watch the liquidity pools as targets, a sweep of one followed by a CHOCH in the opposite direction is a classic reversal setup.
Tune the swing length to your timeframe so the major structure matches the moves you actually trade.
Notes
Swing pivots confirm a fixed number of bars after they print, which is inherent to all structure tools and not repainting. On the live, unclosed bar a break can update until the bar closes, so set alerts to "Once Per Bar Close" for confirmed signals.
This script is a market analysis tool, not financial advice. Always do your own research and manage risk. Indicator

Session King - ALMA with Session FilterA session-gated trend strategy that restricts entries to high-liquidity
session windows using ALMA direction bias, with standardised ATR exits
(3 ATR stop, 6 ATR take profit — 2R fixed).
WHAT MAKES THIS ORIGINAL
Most trend strategies fire entries continuously throughout the trading day.
This strategy gates every entry through two independent filters before a
signal is accepted: a directional bias filter (ALMA) and a session timing
filter. Neither filter alone is the edge — the combination is. ALMA without
the session gate fires too many signals in low-liquidity periods. The session
gate without a directional filter trades noise in both directions. Together
they restrict entries to directional moves inside high-liquidity windows
where volume and participation are highest.
COMPONENTS
ALMA (Arnaud Legoux Moving Average, length 9): Direction baseline. Price
above ALMA = long bias; price below = short bias. ALMA applies Gaussian
weighting to reduce lag compared to EMAs of equivalent length, producing
fewer whipsaws at signal transitions.
Session Filter (toggleable): Entries are only permitted during defined
high-liquidity windows. London open (05:45-09:45 GMT), NY AM (12:00-16:00
GMT), and NY PM (19:00-21:00 GMT) can each be toggled independently.
Outside these windows the strategy does nothing. Most false signals in
forex and gold occur during low-volume inter-session periods.
TTM Squeeze (optional, off by default): Based on John Carter's published
TTM Squeeze concept. Compression detection (BB inside KC) is an independent
implementation using Pine built-ins only; Keltner Channel uses ATR via
Wilder's method. No momentum histogram is included — only the compression
gate is used. When Bollinger Bands contract inside the Keltner Channel the
market is in compression and entries are blocked. When BB expands back
outside the KC entries are permitted again. Enables lower-frequency,
post-compression entries when toggled on.
Exits: Fixed 3 ATR stop-loss and 6 ATR take-profit (2R) on every trade.
Position size is calculated so that 1% of equity is risked per trade at
the 3 ATR stop distance.
WHY THIS COMBINATION
ALMA provides direction bias with reduced lag. The session gate ensures
entries only occur when volume and institutional participation are highest.
Fixed ATR exits keep risk consistent across instruments and timeframes and
allow meaningful comparison of strategy performance across different market
conditions.
HOW TO USE
Enable the sessions that match your instrument. London + NY AM is the
default for forex and gold. Enable TTM Squeeze for lower-frequency,
higher-conviction setups. Best suited to 4H and 1H timeframes on XAUUSD,
GBPUSD, EURUSD, and major indices.
DEFAULT PROPERTIES
ATR Length: 14 | Stop: 3x ATR | Take Profit: 6x ATR (2R) | Risk: 1%
Commission: 0.01% per side | Slippage: 1 tick | Initial capital: 10,000
LIMITATIONS
Session filtering significantly reduces trade count. On 4H timeframes
expect 15-40 trades per year. To reach 100+ trades for a statistically
meaningful sample, backtest a minimum of 3-5 years on 1H or 8-10 years
on 4H. Past results do not guarantee future performance.
Strategy

Adaptive Momentum Strength Score (AMSS)There is a specific kind of frustration that every serious trader knows.
The setup looks right. The candle closes with conviction. The oscillator confirms. You enter and the move immediately stalls, reverses, or dissolves into noise. Later you realize the volume was weak, volatility never truly expanded, or directional pressure had already started fading before the entry.
That frustration is not a discipline problem. It is an information problem.
Most momentum indicators measure one piece of the puzzle. RSI measures price velocity. Volume indicators measure participation. Bollinger Bands measure volatility state. Each tells part of the story. The Adaptive Momentum Strength Score was built on the conviction that momentum quality can only be evaluated meaningfully when several complementary market forces are read together, not after the fact, but simultaneously, on every bar.
The Core Framework
The purpose of the composite score is straightforward: to answer not just whether price is moving, but whether the move is supported by the conditions that tend to give momentum its staying power.
The score is normalized between 0 and 100 and built from three independent components. The first measures candle impulse relative to ATR not raw candle size, but how decisive the current bar is in the context of what normal looks like for this asset right now. The second measures volume participation by comparing current volume against its moving average, distinguishing genuine momentum expansion from the kind of low-participation drift that precedes failed breakouts far more often than it precedes continuation. The third measures volatility expansion through Bollinger Band width relative to its own average, detecting the transition from compression into expansion as a market begins releasing stored energy.
Each component is independently normalized before combining. By default, volume participation carries the greatest weight of the three — a deliberate choice reflecting the observation that genuine participation tends to be the most reliable differentiator between momentum that follows through and momentum that fades. Candle impulse and volatility expansion carry equal secondary weight, acknowledging that decisive price movement and volatility expansion both contribute meaningfully to momentum quality without either being treated as a primary condition on its own. All weights remain fully adjustable for traders who prefer a different emphasis across different assets or timeframes.
What separates this framework from most traditional oscillators is that momentum strength, directional pressure, market regime, momentum acceleration, and signal confirmation are kept as independent layers that work together while remaining individually interpretable. The goal is not to compress everything into a single binary output but to provide a structured view of how momentum is developing and whether broader conditions are genuinely supportive.
Adaptive Thresholds
A composite score is only as useful as the threshold that determines when it becomes meaningful.
The indicator supports two threshold modes. Fixed mode works cleanly in stable trending environments where volatility expression is consistent. Adaptive mode the recommended default calculates the threshold dynamically using rolling score averages and standard deviation scaling, then clamps it within a defined range. As market character shifts, the threshold recalibrates automatically rather than forcing traders to manually adjust a static level every time volatility conditions change.
The practical consequence is worth understanding directly. In a static-threshold oscillator, a compression phase floods the chart with false crossovers while a genuine expansion phase can produce delayed or missed signals. The adaptive threshold adjusts to both conditions without intervention. The active level is always displayed as the orange reference line, there is never ambiguity about where the signal boundary sits.
The score is additionally classified into Weak, Moderate, and Strong states relative to the active threshold, allowing momentum quality to be evaluated quickly without relying on raw numerical values alone.
Directional Pressure
The score measures momentum magnitude. Direction is handled through a completely separate layer.
Directional bias is established through a two-part confirmation test on every bar. Price must sit on the correct side of a short-period directional EMA, and the average ATR-normalized candle direction over the recent lookback must clear a pressure threshold, meaning a single extended wick or isolated candle cannot flip the directional label on its own. The result is a three-state classification that updates in real time: Bullish, Bearish, or Neutral. This label colors the score line and feeds directly into the signal confirmation logic.
Regime Classification
Not all momentum signals carry equal weight. A score crossover during an expanding market is a categorically different event from the same crossover inside a compressed, coiling environment and treating them identically is one of the more common ways momentum-based approaches produce inconsistent results.
The indicator measures the range of the score over a lookback window and classifies conditions into three states. Compressed means the score has been operating within a narrow band, the market is coiling, energy may be building, and momentum signals in this state generally exhibit lower follow-through and greater variability, although strong expansions can emerge from prolonged compression. Balanced reflects normal trending or ranging conditions. Expanding means the score range has broken above the expansion threshold the market is releasing energy, and momentum signals carry stronger continuation characteristics during this state.
Regime classification can be applied as a filter to triangle signals or used purely as context within the dashboard.
Momentum Velocity
Knowing where the score is tells you the current momentum level. Knowing how fast it is changing tells you something more useful, where momentum is likely heading before price makes it obvious.
The velocity engine calculates the rate of change of the score relative to its own standard deviation, producing a normalized reading that classifies momentum as Accelerating, Decelerating, or Flat. When the score is rising rapidly against its recent volatility baseline, conditions are classified as Accelerating. When the score is fading even if it remains above the threshold the label shifts to Decelerating, and the score line renders at reduced opacity as a visual signal that underlying momentum may be exhausting before price visibly reacts.
For traders who have held into momentum reversals that showed no obvious price-level warning, this layer provides an early internal warning signal within the indicator's architecture that conditions are beginning to shift.
Two Signal Tiers
The indicator produces signals on two distinct levels, and the distinction between them is worth understanding precisely.
Threshold dots appear whenever the score crosses the active threshold while directional pressure is already aligned. They are intentionally sensitive as early directional momentum awareness signals indicating that conditions are beginning to strengthen, even though the broader filter stack may not yet be confirmed. Experienced traders use them to shift attention and begin evaluating whether a fuller setup is developing.
Triangle signals are the fully confirmed output. A triangle only appears when the score crosses the threshold, directional pressure agrees, and every enabled filter in the active gate stack also confirms simultaneously. This is not a smoothed version of the dot signal. It is a categorically different signal type representing the convergence of multiple independent conditions at the same moment.
The separation is deliberate. Dots keep traders informed of developing momentum. Triangles reserve the strongest visual output for the moments that genuinely earn it.
The Signal Gate Stack
Before any triangle reaches the chart it passes through up to four independent gates, stackable in any combination.
The current-timeframe EMA filter blocks signals running counter to local trend structure. The higher-timeframe EMA filter adds a structural second opinion from a broader timeframe, 4-hour by default with an option to use only confirmed closed bars to avoid incomplete higher-timeframe calculations. The regime filter restricts signals during compressed conditions or limits them to expanding phases only. The cooldown gate enforces a minimum bar gap between consecutive signals, suppressing the cluster of repeat triggers that commonly fire around a single momentum event and dilute signal quality.
The dashboard always displays exactly which gates are active. Traders never need to guess why a triangle did or did not appear, the filter logic is visible at all times.
Reading the Indicator: A Practical Workflow
1. Assess market regime first . Check the Info Table before anything else. Compressed conditions mean the score has been coiling in a tight range crossovers here often require greater selectivity, as follow-through tends to be less reliable until expansion begins, and participation should be approached more selectively. Expanding conditions deserve closer attention, as momentum signals generally carry stronger continuation characteristics during these phases.
2. Verify directional alignment. Confirm that the score line color and the Direction label in the dashboard match your intended trade direction. A technically valid score crossover against prevailing directional pressure is a lower-quality setup by design.
3. Watch for the threshold dot on the score pane . A small circle plots on the score line the moment momentum crosses the active threshold while directional pressure is already aligned. This is your early awareness signal. It means conditions are beginning to strengthen, but the broader confirmation stack may not yet be complete. Use it to shift attention to the price chart, not necessarily to trigger execution.
4. Wait for the triangle on the price chart . The triangle is the confirmed execution signal. It only appears when the score has crossed the threshold, directional pressure agrees, and every enabled gate in your active filter stack has confirmed simultaneously. Depending on your settings, this may include EMA alignment, regime validation, and cooldown logic. No triangle means at least one required condition has not been met, regardless of how the score looks in the pane below.
5. Check momentum velocity before entry. An Accelerating label at the point of the triangle adds meaningful weight to the setup. A Decelerating label on an otherwise valid triangle is a caution not necessarily a reason to avoid the trade, but a reminder that momentum quality may be less aggressive, follow-through may develop more gradually, or reversal risk may be beginning to increase.
6. Manage the trade with velocity as context, not as a standalone exit signal . If the score remains above or near the threshold but the line has dimmed signaling Decelerating momentum the move may be losing force even while price continues in the same direction. This does not automatically invalidate the trade or imply immediate exit. Instead, use velocity as an additional layer of context alongside price structure, trend conditions, and your existing risk-management framework.
What This Indicator Is Designed For
The Adaptive Momentum Strength Score is not a standalone trading system and does not attempt to be one. It is a momentum context engine — a structured framework for evaluating whether the conditions behind a price move reflect genuine strength and participation or whether they represent the kind of isolated, low-quality momentum that tends to produce less reliable continuation.
Every design decision in this script traces back to a single conviction: durable edge in trading does not come from reacting faster to a single signal. It comes from reading multiple independent market forces simultaneously and acting only when they converge. That is what this indicator was built to do and that is the only thing it claims to do well.
My Scripts/Indicators/Systems are for educational purposes only! Indicator

Double ATR Reversal// ════════════════════════════════════════════════════════════════════════════
// DOUBLE ATR REVERSAL — Chandelier-style trailing stop + ATR expansion scanner
// ────────────────────────────────────────────────────────────────────────────
// METHOD
// 1. Trailing stop. A ratcheting stop is computed from the rolling extreme
// (highest src_h or lowest src_l over N bars) offset by a multiple of
// Wilder's ATR. The long stop only ratchets up; the short stop only
// ratchets down. When price crosses the opposite side's stop, the
// trend "flips." This is the same construction as the standard
// Chandelier Exit; the "Double ATR" naming refers to the default
// multiplier of 2.0 (faster reversals than the conventional 3.0).
//
// 2. Reversal events. A bull reversal fires on the bar where the trend
// flips from -1 to +1; a bear reversal on +1 to -1. These are
// point-in-time events, distinct from the persistent trend state.
//
// 3. Volatility expansion overlay. Current ATR is compared to a rolling
// SMA of ATR over `expand_len` bars. A separate signal fires when
// current ATR exceeds expand_mult × baseline. This catches news /
// volatility events that are independent of trend direction and is
// the primary addition over a plain trailing-stop indicator.
//
// SOURCE TOGGLE
// `use_close` selects whether the rolling extremes use closing prices
// (smoother, fewer whipsaws) or wicks (more sensitive to spikes). This
// meaningfully changes signal frequency on noisy instruments and is
// exposed as an input rather than hard-coded.
//
// OUTPUTS
// • Trailing stop line, color-coded by trend state
// • Optional bar coloring by trend
// • Bullish / bearish reversal triangles + optional price-annotated labels
// • Yellow background flash + diamond marker on ATR expansion bars
// • Info table: trend, ATR (absolute and as % of price), trail stop,
// multiplier, and expansion state
// • Four alertconditions: bull reversal, bear reversal, any reversal,
// and volatility expansion — suitable for cross-symbol scanning via
// PulseWire alert lists
//
// NOT A STRATEGY: orders, slippage, and returns are not modeled.
// ════════════════════════════════════════════════════════════════════════════
Indicator

EMA Trend Dash Board by [Itto Ryu]# EMA Trend Dash Board — Trend stage classifier on a 5-EMA stack
A pure-EMA trend dashboard. Five exponential moving averages (10/20/50/100/200)
plus three derived signals — stack alignment, EMA50 slope, and the fast-vs-trend
gap — classify the market into one of four trend stages: ACCEL → MATURE → DECEL
→ REVERSAL. A 0-to-100 Bull/Bear score and a state-machine VERDICT row summarise
all of it in a single glance.
## What's different from a generic EMA ribbon
Most EMA-ribbon scripts only colour the EMAs. This one adds:
1. **Stage classification** — instead of "trending vs ranging", the script tells
you *where in the trend you are*. Stage 1 (ACCEL) is for adds; Stage 3 (DECEL)
warns to trim; Stage 4 (REVERSAL) tells you the stack has lost alignment.
2. **Bull/Bear score (0–100)** — composed of:
- Price-above-EMA: 8 pts each (max 40)
- Stack-pair ordering: 10 pts each (max 40)
- Trend-EMA slope direction: 10 pts
- Gap expansion (only when stack aligned): 10 pts
3. **Verdict state machine** — combines stage + score into one action label
(STRONG SETUP, SIGNAL CLEAR, TREND ACCEL, EASE, WATCH, EXIT, ...).
## Defaults (and why)
| Input | Default | Reasoning |
|---|---|---|
| EMA lengths | 10 / 20 / 50 / 100 / 200 | Classic Stan Weinstein / Mark Minervini ladder |
| Slope/Gap lookback | 5 bars | Catches turns without over-smoothing on intraday |
| Slope flat threshold | 0.1% | Below this magnitude the trend EMA is treated as flat — avoids false up/down on chop |
| Gap expansion threshold | 0.05% | Min change in |gap| to count as expanding/compressing |
| Dashboard | top_right, normal | Standard placement; tiny/small for low-res screens |
## Visual elements
| Element | Meaning |
|---|---|
| 5 EMA lines | EMA 1 (fast, yellow) → EMA 5 (long, slate). EMA 3 (Trend, pink) drawn thicker as the slope reference |
| Fast-Trend fill | Green when EMA1 > EMA3, red otherwise. Quick visual on momentum direction |
| Right-edge labels | EMA name tags at the latest bar |
| Dashboard | Trend / EMA Stack / Trend Dynamics / Scoring / Signal / Verdict sections |
## Who this is for
- Trend-following swing traders who already use EMA stacks but want a state read-out
- Discretionary traders who want a "what stage am I in?" check without staring at the chart
- Anyone replacing 3-4 separate EMA indicators with one consolidated dashboard
## Who this is NOT for
- Pure mean-reversion / range traders — EMAs are the wrong tool
- Tick scalpers — the stage/gap thresholds are tuned for swing+intraday, not sub-minute
- Anyone needing entry/exit signals automated — this is a *read-out*, not a strategy
## How to use
1. Apply on standard candle chart, any timeframe (works best 15m → Daily)
2. Read the **Stage** row first — that's your context
3. Cross-check with **Verdict** row — that's your action
4. The Bull/Bear bars give a confidence reading; the SIGNAL row gives the discrete label
5. Configure alerts on STRONG Long/Short or Stack Broken for hands-off monitoring
## Common mistakes
- **Entering on Stage 4 just because Verdict says STRONG SETUP** — Stage 4 = stack lost alignment, by design it forces a re-check. Wait for re-alignment.
- **Reading dashboard on Heikin Ashi** — EMAs are calculated on HA close (a smoothed value), not real close. Numbers will not match a standard-chart EMA. Use standard candles for the dashboard.
- **Tuning EMA lengths for one symbol and assuming portability** — re-test on each instrument; trend EMAs are regime-dependent.
## Disclosure
- **Pine version**: v6
- **Repaint**: NO — all calculations use confirmed-bar data. Dashboard and right-edge labels refresh on the last bar (cosmetic only) and do not modify historical bars.
- **Lookahead**: NONE — no `request.security` calls.
- **Chart type**: Designed for standard candle charts. On Heikin Ashi / Renko / Range / PnF / Kagi the EMA values are calculated against the chart's synthetic close and will not match a standard-chart EMA.
- **Originality**: Generic 5-EMA inputs; novel additions are the Stage classifier, Bull/Bear scoring weights, and Verdict state machine.
- **Predecessor**: Extracted from the author's earlier "Ichimoku Trend Dash Board" (Ichimoku + EMA combined). This EMA-only variant strips Ichimoku, ADX, RSI, MACD, and SL/TP logic for a focused trend-stage read.
## Disclaimer
For educational purposes only. Not financial advice. Trading involves
substantial risk of loss — past performance does not guarantee future results.
You are solely responsible for your own trading decisions. Script provided
"as is" with no warranty; author is not liable for any losses. Indicator

Structure & Trend ContextStructure & Trend Context is a clean overlay that visualises market structure and trend direction without cluttering the chart. It is built as a context tool to support your own analysis, not as a signal system.
What it shows
- Trend filter: a fast and a slow EMA define the prevailing direction. The slow EMA is colour-coded by bias (up / down / neutral).
- Volatility band: an ATR band around the fast EMA gives a sense of normal price travel and dynamic over-/under-extension.
- Swing structure: the most recent confirmed swing high and swing low are tracked and drawn as reference levels.
- Structure breaks (BoS): a marker appears only when price closes beyond the prior swing by an ATR buffer while in trend. Each level is locked after it breaks, so markers stay rare and meaningful rather than firing on every minor poke.
- Context panel: a compact top-right table showing current trend bias, last higher high and last lower low.
How to use it
Read the chart first. Use the trend filter and band for context, the swing levels for reference, and treat a structure break as one piece of confluence, not a standalone trigger. Raise "Swing sensitivity" on higher timeframes or noisy assets to keep only the larger structure.
Inputs
Every layer (band, swing levels, structure markers, raw pivots, panel, bar tint) has its own toggle, and the EMA, ATR and pivot lengths are fully adjustable.
Notes
This indicator is a visualisation aid for discretionary analysis. It does not predict price, does not generate buy or sell recommendations, and is not financial advice. Markers are confirmed on bar close and do not repaint. Open-source — adapt it to your own workflow. Indicator

Ribbon Conviction SystemRibbon Conviction System — Trend, Flow, Value and Adaptive Stop
Overview
This is a single decision-support system for intraday traders. It answers three questions on one chart: which way is the trend, how much conviction is behind the current move, and where a logical trailing stop sits. A moving-average ribbon defines direction, a conviction score from 0 to 100% grades every signal, and an adaptive volatility stop marks risk. The components are designed to work together as one filtered signal, not as a loose collection of separate indicators.
Why these components are combined
A moving-average crossover on its own fires constantly in sideways markets and gives no sense of whether a cross is meaningful. Each part added here exists to fix a specific weakness of the part before it, so the result is one filtered signal rather than several indicators stacked on a chart.
Ribbon (direction). Five Fibonacci-length averages — 8, 13, 21, 34, 55 — using a mix of Hull, EMA and Kaufman Adaptive Moving Average (KAMA). The KAMA anchors deliberately flatten in choppy conditions, so the ribbon stops giving direction when there is no trend. Weakness it leaves open: a crossover can still fire on a weak, low-conviction move.
Conviction score (filter). Instead of taking every crossover, each signal is graded 0–100% by blending four independent readings of the same bar, chosen because they measure different things rather than repeat each other:
Buy/sell flow — net buying versus selling pressure, inferred from lower-timeframe price-and-volume behaviour.
Effort vs move — how far price travelled for the volume spent; absorption and churn are penalised.
Trend quality — Kaufman Efficiency Ratio: directional travel divided by total path, separating trend from noise.
Price location — is price on the right side of value? Blends session VWAP slope, a swing-anchored VWAP, the session volume-profile value area (VAH/VAL/POC), and the prior session's VWAP and unfilled POC.
A flow-toxicity proxy (VPIN-style) then lowers the score when flow looks one-sided and unstable. Weakness it leaves open: all four readings come from the chart timeframe, so they can agree for the wrong reason.
Higher-timeframe agreement (independent confirmation). The same volatility-stop direction is computed on 3×, 5× and 15× the chart timeframe and folded in as a multiplier, not a fifth blended input. It is kept separate precisely because it is the one genuinely independent check on the chart-timeframe score: full agreement raises conviction, disagreement lowers it.
Adaptive volatility stop (risk). A Chande-style volatility stop whose ATR period and multiplier adapt through the Efficiency Ratio, so the stop tightens in clean trends and widens in chop. This turns the tool from "where is the signal" into "where is my risk if I take it."
How they work together
Direction (ribbon) decides the side. The conviction score decides whether a crossover on that side is worth showing and how strongly. Higher-timeframe agreement scales that conviction up or down. The adaptive stop shows the exit reference. Every signal is the product of all four stages working in sequence.
What it plots
The five-average ribbon with shaded bands; the 55 line is the bold trend-reference band.
Signal badges at qualifying crossovers, labelled with the band crossed and the conviction percent (for example "21 65%").
Optional value references: session VWAP, swing-anchored VWAP with bands, volume-profile VAH/VAL/POC, and the prior session's VWAP and POC.
The adaptive volatility stop as a step line with a live distance label.
A compact dashboard summarising trend, conviction and each component, higher-timeframe agreement, the stop, and the data mode.
A small higher-timeframe agreement ribbon.
How to use
Add it to an intraday chart. The defaults suit index futures, but direction works on any symbol.
Spot vs futures: many spot indices publish no real volume, which the flow, value-area and toxicity parts depend on. Under "Data source" the script auto-detects this and switches the volume-based parts to a time-at-price method so everything still works; you can also set the mode manually. The dashboard "Data" row shows which mode is active.
Trade in the ribbon's direction. Prefer signals with a higher conviction percent and higher-timeframe agreement, and treat low-conviction crosses as noise. Use "Hide signals weaker than" to suppress them.
Use the adaptive stop as a trailing-risk reference, sized to your own plan.
The "Look & size" group controls signal size, dashboard size and position, a "Minimal" preset (ribbon + signals + stop only), and band lightness.
Originality
The individual techniques — adaptive moving averages, the Efficiency Ratio, effort-versus-result, VWAP, volume profile and volatility stops — are publicly documented. What is original here is the integration: a single conviction score that fuses chart-timeframe flow, effort, efficiency and value, damps it by flow toxicity, and scales it by independent higher-timeframe agreement, then gates an adaptive-stop-aware signal on that score. The components were selected so each covers a distinct weakness, and redundant filters were deliberately left out to keep one clear signal.
Credits
Perry Kaufman — Adaptive Moving Average and Efficiency Ratio. Tushar Chande — Volatility Stop concept. The effort-versus-result component is an original, compact reimplementation inspired by the publicly described effort-versus-result method from the volume-spread-analysis lineage.
Disclaimer
This script is for education and information only. It is not financial, investment or trading advice and does not guarantee any outcome. Signals describe current conditions; they do not predict the future. Markets carry substantial risk of loss. Volume-based readings depend on the data feed and are unreliable on instruments without real volume. Always test on your own market and timeframe, and manage risk with your own stops and position sizing. The author is not a licensed financial advisor; consult a qualified professional before making financial decisions. You are solely responsible for your own trading decisions. Indicator

STWP Market MatrixOverview
STWP Market Matrix is a multi-factor market dashboard designed to consolidate several commonly used technical concepts into a single visual framework.
Most technical indicators focus on one aspect of market analysis, such as trend, volume, volatility, or support and resistance. STWP Market Matrix combines these factors into a structured dashboard so traders can evaluate market conditions from multiple perspectives without switching between several indicators.
The objective is not to generate buy or sell signals, but to provide a quick and organized view of trend direction, participation, relative strength, volatility conditions, and key market reference levels.
________________________________________
Why This Indicator?
Market decisions are often influenced by multiple factors rather than a single indicator. A stock may show a bullish trend but weak participation, strong volume but poor relative strength, or favorable structure while trading below key reference levels.
STWP Market Matrix brings together:
• Trend Analysis (EMA Structure)
• VWAP Positioning
• Buyer vs Seller Participation
• Volume Assessment
• Market Structure Analysis
• Multi-Timeframe Confirmation
• Relative Strength vs NIFTY
• Daily Volume Context
• Pivot Reference Levels
• Volatility Assessment
into one dashboard to help users evaluate these conditions simultaneously.
________________________________________
Dashboard Components
Trend
Trend is determined using Fast and Slow Exponential Moving Averages (EMA).
Bullish: Fast EMA above Slow EMA
Bearish: Fast EMA below Slow EMA
This provides a simple directional bias.
________________________________________
VWAP
Displays whether price is trading above or below the Volume Weighted Average Price (VWAP).
VWAP is commonly used by traders to assess intraday strength and market positioning.
________________________________________
Buyers & Sellers
These metrics evaluate the balance between bullish and bearish candle pressure.
The goal is to provide a simple visual indication of whether buyers or sellers currently have greater influence on price movement.
________________________________________
Volume
Current volume is compared against average volume to identify participation levels.
Higher-than-average volume may indicate stronger market participation, while lower volume may suggest reduced activity.
________________________________________
Market State
The indicator classifies market conditions into:
Breakout
Breakdown
Range
based on recent price structure and historical highs/lows.
________________________________________
Price Structure
Price structure evaluates whether the market is producing:
Higher Highs and Higher Lows
Lower Highs and Lower Lows
Sideways Conditions
This provides additional context beyond simple trend analysis.
________________________________________
Multi-Timeframe Alignment
The dashboard evaluates whether higher timeframe EMA conditions support the current chart timeframe.
This helps identify whether trends are aligned across multiple timeframes.
________________________________________
Relative Strength (RS)
Relative Strength compares the selected symbol against the NIFTY Index.
Possible interpretations:
Outperforming
Underperforming
This helps identify whether a symbol is displaying relative leadership or weakness compared to the broader market.
________________________________________
Daily Volume
Daily volume is compared against its historical average to provide additional participation context.
________________________________________
Pivot Reference Framework
The dashboard includes classic pivot calculations based on the previous trading session's:
High
Low
Close
Displayed levels include:
Pivot
R1 to R5
S1 to S5
These levels are intended as objective reference zones that may help identify potential areas of support, resistance, reaction, or expansion.
The levels are not intended as price targets or predictions.
________________________________________
STWP Matrix Panel
Grade
A composite score derived from:
Trend Alignment
VWAP Position
Volume Participation
Relative Strength
Multi-Timeframe Confirmation
Grades range from D to A+.
Higher grades indicate stronger alignment among the evaluated factors.
________________________________________
Flow
Flow evaluates participation bias using candle position and volume behavior.
Possible states:
Accumulation
Distribution
Balanced
________________________________________
Energy
Energy evaluates volatility conditions using:
Bollinger Band Width
Average True Range (ATR)
Possible states:
Building
Normal
Exploding
This can help identify periods of contraction and expansion.
________________________________________
Risk
Risk provides a simplified assessment of current market conditions using momentum and volatility characteristics.
Possible states:
Low
Medium
High
________________________________________
Opportunity
Opportunity summarizes overall market conditions based on the dashboard's underlying factors.
Possible states:
Excellent
Good
Average
Avoid
This metric is intended to provide context and should not be interpreted as a trading recommendation.
________________________________________
Suggested Workflow
A possible workflow for using the dashboard:
Review Trend and VWAP alignment.
Evaluate Market State and Price Structure.
Check Relative Strength versus NIFTY.
Assess volume participation.
Review Pivot and Support/Resistance levels.
Evaluate Grade, Flow, Energy, Risk, and Opportunity readings.
Combine observations with personal analysis, trade planning, and risk management.
________________________________________
Limitations
The indicator relies entirely on historical price and volume data.
Pivot levels are reference zones and not guarantees of future market reactions.
Relative Strength readings may vary across instruments and timeframes.
Market conditions can change rapidly during periods of elevated volatility.
No technical indicator can predict future price movement with certainty.
The dashboard should be used as an analytical aid rather than a standalone decision-making system.
________________________________________
Disclaimer
This script is provided strictly for educational and informational purposes.
The indicator does not provide investment advice, research reports, trading recommendations, portfolio management services, or buy/sell calls.
All calculations are derived from historical price and volume data and are intended solely to assist technical analysis.
Users should conduct their own independent research, analysis, and risk assessment before making any trading or investment decisions.
Past performance does not guarantee future results. Financial markets involve risk, and losses may occur.
For users subject to SEBI regulations, this indicator should not be interpreted as a recommendation, solicitation, stock tip, investment advisory service, or research report.
Any trading or investment decision remains solely the responsibility of the user.
© Simple Trade With Patience (STWP)
Indicator
