Indikator

ADR% + ATR/Price %ADR% + ATR/Price % — Dual Volatility Reading
Two complementary volatility measures in one pane, with a live legend showing current readings.
ADR% (Average Daily Range %) — The classic equity trader's volatility filter. Calculates the average ratio of daily high to daily low over N days (default 20), expressed as a percentage. Always uses daily data regardless of your chart timeframe. A stock with ADR% of 5 typically moves ~5% intraday. Popularized by traders like Qullamaggie and Pradeep Bonde as a screening tool — if ADR% is too low, the stock isn't moving enough to be worth trading.
ATR / Price % — Standard ATR (default 14) divided by current close, expressed as a percentage. Unlike ADR%, this adapts to your chart timeframe — on a 4H chart you get 4H ATR%, on daily you get daily ATR%. Also captures gaps via true range, which ADR% misses. Useful for cross-instrument position sizing and risk normalization.
Why both?
ADR% gives you the daily "is this thing moving" read, frozen to daily regardless of chart.
ATR/Price% gives you the timeframe-aware volatility you're actually trading on.
On a daily chart they'll track closely. Drop to lower timeframes and the divergence shows how much of the daily range your timeframe is capturing.
Features
Independent length settings for each indicator
Toggle either line on/off
Customizable colors
On-pane legend with live values and parameters (position configurable: top/bottom × left/right)
Daily security calls use lookahead_off to prevent repainting
Use cases
Stock screening: filter for ADR% above some threshold (e.g. > 4) to ensure tradeable range
Position sizing: use ATR/Price% to normalize risk across instruments at different prices
Timeframe selection: compare the two to gauge whether your execution timeframe captures enough of the daily move
Volatility regime detection: watch for expansion/contraction in both measures
Works on any market — equities, crypto, futures, FX. Built in Pine v5. Indikator

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

Traq APEX EMA System + ConfluenceFull Description:
Traq APEX EMA System + Confluence is a discretionary trading indicator designed to evaluate trend pullbacks using a combination of EMA structure, market structure, liquidity context, and risk-reference levels.
The script is built around the idea that an EMA pullback signal is more useful when it occurs in the presence of supporting structure. Instead of treating an EMA rejection alone as a trade signal, the script checks whether additional conditions are present, such as recent break of structure, internal liquidity sweeps, active fair value gap retests, higher-timeframe EMA alignment, session context, VWAP direction, and previous day/week liquidity levels.
Main Components
EMA Ribbon and Bias
The script plots an EMA ribbon using multiple moving averages. The ribbon is used to evaluate trend structure, compression, expansion, and pullback location. A separate bias EMA is used to judge broader directional context. The script can optionally require the price to agree with the bias EMA and can also require the bias EMA slope to support the trade direction.
Higher-Timeframe EMA Context
The indicator includes two configurable higher-timeframe EMA states. By default, these use the last closed higher-timeframe candle to avoid live higher-timeframe flicker. Users can choose between “No Opposition” and “Strict Alignment” modes.
“No Opposition” allows neutral higher-timeframe conditions but blocks signals when the selected higher timeframes oppose the trade direction. “Strict Alignment” requires both selected higher timeframes to align.
Pullback Signal Engine
The Traq APEX signal engine looks for pullbacks into the EMA ribbon followed by a rejection candle. Users can choose shallow, mid, or deep pullback depth. A minimum body-size filter based on ATR is included to reduce weak rejection candles.
The plotted signal is not intended to be a market-entry instruction. The displayed entry reference uses a stop-entry concept: above the signal candle high for long setups and below the signal candle low for short setups.
Break of Structure Context
The script tracks confirmed swing highs and swing lows using pivot logic. A bullish BOS occurs when the price closes above a prior swing high by a minimum point threshold. A bearish BOS occurs when the price closes below a prior swing low by a minimum point threshold. BOS is used as a structure filter and dashboard condition, not as a separate visual clutter layer.
Internal Liquidity Sweeps
The script tracks internal swing liquidity using pivot highs and lows. A buy-side sweep occurs when price trades through a recent swing high. A sell-side sweep occurs when the price trades through a recent swing low. These sweeps can be required as part of the confluence layer.
Internal liquidity drawings are capped through managed line and label arrays so that old liquidity markings do not consume the script’s drawing budget.
Active FVG Retest Tracking
The script detects bullish and bearish fair value gaps and stores multiple active FVGs in arrays. FVGs are only added and removed on confirmed bars to avoid intrabar rollback artifacts. Users can choose the mitigation mode: Touch, Midline, or Full Fill.
FVG retests can be used as a score component or required as a stricter filter.
External Liquidity Map
The script includes previous day high/low, previous week high/low, and previous week equilibrium. These levels are used as external liquidity context and optional score components.
External liquidity sweeps can be used to increase confluence but are not required by default.
Confluence Score
The script scores long and short conditions separately using available components such as BOS, internal sweep, FVG retest, session, VWAP direction, and external liquidity sweep. Users can set a minimum score threshold. This allows the script to be tested as either a broad pullback tool or a stricter confluence filter.
Risk Reference Levels
When a final signal appears, the script can display a stop reference and fixed R:R target. Stops are based on recent liquidity sweep levels when available, otherwise a fallback swing/ATR reference is used. These levels are visual references only and should be evaluated against each trader’s own risk plan.
How to Use
Start by using the script as a visual decision-support tool, not as an automated signal system.
Suggested starting settings for testing:
Use Closed HTF Bars: ON
MTF Mode: No Opposition
Require Recent BOS: ON
Require Internal Sweep: ON
Require Active FVG Retest: OFF
Require External Sweep: OFF
Minimum Confluence Score: 3
FVG Mitigation Mode: Midline
Max Internal LIQ Drawings: 20 to 30
Show Base Debug: ON during testing
The base debug markers can help show where the EMA pullback engine wanted to fire but the confluence layer blocked the signal.
Limitations
This script does not predict future price movement. It does not guarantee profitable trades, accuracy, win rate, or any specific trading result.
The indicator is designed for discretionary analysis and requires user judgment. Signals can fail, especially during choppy, low-volume, news-driven, or range-bound conditions.
Swing structure and liquidity levels are based on pivot confirmation, which means they are confirmed with delay. This avoids repainting after confirmation but does not identify swings instantly.
Higher-timeframe context defaults to closed HTF bars for stability. If users disable closed HTF mode, higher-timeframe arrows and context may update intrabar.
Risk labels and target labels are references only. They should not be treated as financial advice or as a substitute for proper position sizing, market context, and independent testing.
Chart Setup
For publication, use a clean candlestick chart with only this script applied. Avoid adding unrelated indicators, extra drawings, logos, promotional text, or contact references. The script output should be clearly visible, including the EMA ribbon, dashboard, liquidity labels, and a small number of example signals.
Disclaimer
This script is for educational and analytical use only. It does not provide financial advice, does not predict future market movement, and does not guarantee trading results. Users should test settings on their own markets and timeframes before relying on any output.
Indikator

ChachinBot SP&500 V3.5OVERVIEW
SPX500 SmartSignal Pro is an intraday signal and trade-management tool built specifically for the S&P 500 index (reference: OANDA:SPX500USD) on the 5-minute chart. It only prints a long or short signal when trend, momentum, trend-strength and participation all agree, and then lays out ATR-based stop/target levels and a risk-based position size for the trade.
WHY SO MANY FILTERS — AND HOW THEY WORK TOGETHER
This is not a pile of indicators stacked for the sake of it. Each filter exists to block one specific way a trade goes wrong, and a signal appears only when all of them line up:
Triple EMA (21 / 50 / 200) — direction. The 200 EMA sets the macro bias, the 50 the intermediate trend, the 21 the immediate momentum. Longs are only considered when the EMAs are stacked bullishly and shorts when stacked bearishly, so the tool never fights the prevailing trend.
RSI + MACD — momentum confirmation. Direction alone doesn't tell you whether there's fuel behind the move. RSI checks that immediate momentum isn't already exhausted, and MACD confirms momentum is turning or continuing in the signal's direction. Using two momentum tools from different families filters out single-indicator false reads.
ADX — trend strength (the key filter for an index). The S&P 500 spends much of the intraday session chopping sideways, where EMAs can still look stacked and momentum can flicker with no real trend behind it. ADX gates this out: signals are blocked when ADX is below threshold, and the background turns yellow as a no-trade / chop warning. Because index moves come in shorter bursts than forex, the threshold here is 20 — deliberately lower than the 25 used on major FX pairs and gold.
Volume filter — participation. Confirms the move has genuine participation behind it rather than being a thin, low-conviction drift.
ATR — volatility-adaptive risk. Stop-loss and three take-profits (TP1 / TP2 / TP3) are set as ATR multiples instead of fixed points, so they automatically widen in a fast session and tighten in a quiet one.
Put together, it is a confluence system: trend (EMAs) + momentum (RSI/MACD) + strength (ADX) + participation (volume) must all align before a signal prints, and ATR + reward-to-risk + position sizing handle the management once it does. Each layer removes a failure mode the others can't see on their own.
WHAT YOU SEE ON THE CHART / DASHBOARD
Long / short signal markers, printed only when every condition aligns.
ATR-based SL and TP1 / TP2 / TP3 levels, designed for partial closes (e.g. scaling out at each target and trailing the rest).
A live ADX monitor so current trend strength is always visible, plus the yellow chop-warning background.
A colour-coded reward-to-risk readout: green when R:R ≥ 2.0, orange ≥ 1.5, red < 1.5 — so a setup can be judged at a glance.
A position-size calculator: enter your account balance and risk %, and it returns the size for the trade based on the ATR stop distance. Useful for keeping risk consistent, including on funded / prop-firm accounts with fixed risk rules.
HOW TO USE IT
Apply it to the S&P 500 (OANDA:SPX500USD or equivalent) on the 5-minute chart, during the US cash session.
Wait for a signal — by design it will not fire in chop (yellow background = stand aside).
Check the R:R readout and favour setups showing green or orange.
Manage with the ATR SL and TP1/TP2/TP3 (for example, move the stop to breakeven at TP1).
Size the trade with the built-in calculator according to your own risk rules.
SETTINGS
EMA lengths, RSI and MACD parameters, the ADX threshold, the volume filter, the ATR multiples for SL/TP, session hours, and the account balance / risk % for the calculator are all configurable.
This is an educational tool. The signals are potential setups for your own analysis, not automatic buy/sell instructions and not financial advice. The past behaviour of any setup does not guarantee future results. Indikator

Indikator

Quartile Footprint Bubbles @MaxMaseratiQuartile Levels Volume Acceptance/Rejection @MaxMaserati
This highly technical order flow tool merges quartile-based market structure with intrabar footprint analytics. It reveals the exact micro-price levels where liquidity resides and exposes whether buyers or sellers are seizing control at critical structural boundaries.
─── QUARTILE MARKET STRUCTURE ───
The indicator calculates the absolute trading range over a defined lookback period and mathematically divides it into four equal quartiles, projecting five dynamic structural zones:
100% (Upper Extremity) — Extreme Bearish Dynamic Resistance * 75% (Upper Quartile) — Bullish Dynamic Range / Support
50% (Midpoint) — Dynamic 50% Range / Equilibrium
25% (Lower Quartile) — Bearish Dynamic Range / Resistance
0% (Lower Extremity) — Extreme Bullish Dynamic Support
These quartile boundaries act as algorithmic tripwires. When price touches any of these levels, the indicator activates its footprint engine.
─── EXACT INTRABAR POC ───
Unlike basic indicators that plot blindly on the high or low of a candle, this tool scans a Lower Timeframe (LTF) inside the live bar to locate the exact Point of Control (POC).
Bubbles and text labels are plotted precisely at the micro-level where the heaviest volume transacted, revealing hidden pockets of liquidity just above or just below the quartile lines.
─── CONCENTRIC FOOTPRINT BUBBLES ───
When a quartile line is tested, concentric bubbles appear at the POC, sized dynamically using an advanced 5-tier percentile algorithm (50th, 75th, 90th, and 97th percentiles) to filter out market noise:
Outer Bubble (Volume Mass): Represents total market participation. A massive outer bubble indicates intense liquidity and institutional interest.
Inner Bubble (Delta Pressure): Represents the true bid/ask delta. Green indicates aggressive buying dominated the POC; Red indicates aggressive selling dominated.
Dual Text Labels: Cleanly displays the Total Volume (top, neutral color) over the Net Delta (bottom, colored) directly at the POC coordinate.
─── HOW TO TRADE IT ───
Defending the Extremes: Look for large green inner bubbles at the 0% or 25% quartiles (buyers defending support) and large red inner bubbles at the 75% or 100% quartiles (sellers defending resistance).
The 50% Equilibrium: The 50% Structural Pivot dictates trend context. Price holding above it with green bubbles on pullbacks is bullish. Price holding below it with red bubbles on retracements is bearish.
Spotting Absorption: A massive outer volume bubble containing a tiny inner delta bubble means huge volume was traded, but neither side won decisively. This signals institutional absorption, not a directional breakout.
─── KEY SETTINGS ───
Structure Lookback: The rolling window used to calculate the highest highs and lowest lows for the quartile grid.
LTF Resolution: The micro-timeframe used to scan for the Intrabar POC and Delta (e.g., 1-minute is optimal for a 15-minute chart).
Bubble Size Offset: Shift the visual scaling of all bubbles up or down (+1 to enlarge, -1 to shrink) to perfectly fit the visual density of your specific asset.
Targeted Toggles: Individually turn specific quartile lines, outer/inner bubbles, and text labels on or off for a perfectly clean workspace. Indikator

50% High-Probability M15 WicksDescription
This indicator isolates high-probability liquidity grabs and institutional reference points by tracking M15 (15-minute) candle wicks that exhibit unusual size and volume. It automatically calculates and projects the 50% equilibrium level of these specific wicks as key horizontal support/resistance areas.
Engineered for multi-temporal flexibility, it allows you to scale down to lower execution timeframes (M1, M5) or up to macro views (H1, H4) while maintaining the precise M15 levels fixed on your chart.
What it tracks & Why:
High-Probability Wick Filter: It calculates the average wick size over a specific period and only triggers when a 15-minute wick exceeds this average by a custom multiplier, ensuring it only flags significant market expansions.
Liquidity Sweeps: It validates the setup by confirming that the wick successfully swept the previous candle's high or low, signaling a true hunt for stops before a reversal.
Smart Proximity Mitigation: To maintain a clean workspace and avoid false signals, the indicator automatically deletes active levels in real-time if the price mitigates the 50% level or approaches it within a custom % ATR threshold (pre-mitigation zone).
Key Features:
True MTF Precision: Swap between any timeframe without lines shifting, breaking, or disappearing.
Real-time Price Labels: Displays floating current prices next to active levels for quick execution.
Fully Customizable Visuals: Easily toggle line styles (dotted, dashed, solid), thickness, transparency, and text sizes directly from the settings menu. Indikator

Indikator

V-AEMA VMR [LB]Concept
The V-AEMA VMR (Volume-Adaptive Exponential Moving Average with Volatility-Modulated Regime) is a hybrid trend-following indicator that combines an EMA baseline with a volatility-based drift component. It produces a dynamic core line whose colour reflects the trend regime, surrounded by two levels of adaptive bands that expand or contract based on volume intensity. The indicator generates directional entry signals when price breaks the first band in the direction of the trend, and projects take-profit zones when price fully exits both bands.
Mathematical Foundation
The core line (Hybrid Line) is a weighted blend of a standard EMA and a volatility-shifted version of that same EMA :
HybridLine = EMA * W + (EMA + Drift) * (1 - W)
where the drift is derived from the Z-Score of price relative to the EMA, scaled by ATR :
Drift = Z_Score * ATR * 0.35
Z_Score = (Price - EMA) / StdDev(Price, L_vola)
Band width starts from a base volatility measure combining standard deviation and ATR :
BaseWidth = StdDev * 0.65 + ATR * 0.35
This base is then adjusted by a volume ratio and user-defined multipliers :
UpperWidth = BaseWidth * (BaseUpMult + (VolRatio - 1) * VolImpactUp)
LowerWidth = BaseWidth * (BaseDnMult + (VolRatio - 1) * VolImpactDn)
where VolRatio = min(max(Volume / SMA(Volume, L_vol), 0.35), 2.50) .
Two band levels are generated : Band 1 at HybridLine +/- Width, and Band 2 (extreme) at HybridLine +/- Width * 1.55 (upper) / 1.40 (lower).
What Problem Does It Solve ?
Conventional envelope indicators (Bollinger Bands, Keltner Channels) apply fixed multipliers to a single volatility metric and ignore volume dynamics. The V-AEMA VMR adapts its band width to both volatility and volume surges, producing wider bands during high-participation moves and narrower bands during quiet periods. The hybrid core line reduces pure EMA lag by incorporating a volatility offset, while the dual-band structure filters signals by strength : a break of Band 1 triggers an entry, while a break of Band 2 confirms an explosive move and projects a take-profit zone.
How To Interpret
Core line colour – cyan/green indicates the hybrid line is rising (bull regime) ; magenta/red indicates it is falling (bear regime).
Cloud and bands – the area between Band 1 and Band 2 forms a halo that thickens when volume expands. Narrow bands suggest low conviction or consolidation.
Entry signals – a triangle appears below the bar when price crosses above Upper Band 1 while the hybrid line is rising (long). A triangle appears above the bar when price crosses below Lower Band 1 while the hybrid line is falling (short). These signals are confirmed by the trend direction.
Take-profit zones – when the entire bar (high and low for shorts, low and high for longs) clears the extreme band (Band 2) in the direction of the signal, a coloured box is projected forward. The box represents a potential target zone based on the breakout amplitude and ATR, scaled by the TP Factor.
Info panel – displays the current regime (BULL/BEAR), the volume ratio (values above 1.0 indicate above-average participation), and the current upper/lower deviation values in price units.
Parameters
EMA Length – period of the base exponential moving average (default 55).
Volatility Length – period for the standard deviation used in the Z-Score calculation (default 34).
Volume Length – period for the volume moving average used in the volume ratio (default 34).
EMA Weight – blend ratio between the pure EMA and the volatility-drifted version. Higher values produce a smoother line ; lower values make it more reactive to volatility (default 0.80).
Upper Base Deviation – core multiplier for the upper band width before volume adjustment (default 1.55).
Lower Base Deviation – core multiplier for the lower band width before volume adjustment (default 1.05).
Volume Impact Upper/Lower – sensitivity of the upper and lower bands to the volume ratio. Higher values make bands expand more aggressively when volume surges (default 0.95 / 0.55).
ATR Length – period of the Average True Range used in band width and TP zone calculations (default 14).
Show Cloud – toggles the filled areas between bands.
Show Info Panel – toggles the real-time dashboard.
Show Signals – toggles the entry triangles.
Show TP Zones – toggles the take-profit projection boxes.
TP Projection Bars – how many bars forward the TP zone extends.
TP Factor – scales the height of the TP zone relative to the breakout range.
Max Historical TP Zones – limits the number of TP boxes kept on the chart.
Reference
This indicator is a proprietary design synthesising concepts from adaptive moving averages (Kaufman, Ehlers), volatility envelopes (Bollinger, Keltner), and volume-weighted band models. It does not correspond to a single academic publication. Indikator

Celestial Mean Reversion Envelopes [Pineify]Celestial Mean Reversion Envelopes
This indicator identifies mean reversion opportunities by wrapping an adaptive moving average in standard deviation envelopes and signaling when price snaps back inside after piercing a band. Rather than using a fixed-period moving average as the baseline, the central line adapts its speed based on how frequently price is setting new highest highs or lowest lows — it tracks price quickly in trending conditions and almost freezes in ranges, so the bands shift organically with market character.
Key Features
Adaptive mean that responds to trend intensity rather than time alone — sluggish during consolidation, responsive during strong moves
Standard deviation envelopes calibrated to actual recent volatility, not fixed ATR multiples
Buy and sell signals generated on band crossunders/crossovers, confirming the reversal rather than anticipating it
Translucent overbought/oversold shading between the mean and each band for quick visual context
Built-in alerts for both reversion directions
How It Works
The calculation runs in two stages: first building the adaptive mean, then constructing the envelopes around it.
Extreme tracking — On each bar, the indicator checks whether a new highest high or lowest low has formed over the lookback window. Bars where a fresh extreme appears are marked with a value of 1; all other bars get 0. The SMA of these binary values over the same window gives the fraction of recent bars that produced a new extreme.
Squaring the fraction — Raising that fraction to the power of 2 produces a nonlinear smoothing coefficient. When trends are strong and new extremes appear on most bars, the coefficient approaches 1 and the adaptive mean tracks price closely. In a choppy range where few new extremes form, the coefficient collapses near zero and the mean barely moves. This technique is inspired by TRAMA (Trend Regularity Adaptive Moving Average) by e2e4mfck.
Adaptive mean update — Each bar the mean nudges toward the source price by the amount determined by the coefficient. The result is an average that effectively switches between "responsive" and "parked" behavior depending on what the market is doing.
Standard deviation envelopes — The upper and lower bands are placed at ±(StdDev × multiplier) from the adaptive mean, where StdDev is computed over the same lookback period. This makes the band width proportional to recent volatility: wider when price has been swinging, tighter during quiet periods.
Signal generation — A buy signal fires when source crossesunder the lower band (price dipped below, then closed back above it). A sell signal fires on a crossover of the upper band. The crossunder/crossover logic requires price to actually breach and then retrace — a bar that merely touches the band without closing through it does not trigger.
How the Components Work Together
The adaptive mean solves a problem that conventional envelope indicators ignore: when a market trends hard, a static EMA or SMA falls behind, making the upper band a poor reference for "too far, too fast." Because the adaptive mean accelerates during trends, the envelopes stay anchored to current price levels rather than lagging. This means the bands are more likely to represent genuine statistical extremes rather than just momentum riding.
The standard deviation layer adds a second dimension. Instead of a fixed pip or percentage offset, the band width expands when the market is volatile and contracts when it is calm — naturally suppressing signals during low-volatility compression and allowing wider moves during active sessions before flagging exhaustion.
Together these two layers create a filter that roughly says: "price reached a statistically unusual distance from where the trend currently sits, then pulled back." That combination reduces fakeout signals compared to using static bands on a lagging baseline.
Trading Ideas and Insights
On higher timeframes (daily, 4H), buy signals at the lower band that coincide with a key support level or volume spike may offer higher-confidence entries. Look for the adaptive mean to be flattening — it suggests the trend is pausing rather than reversing.
In intraday trading, signals that appear after a sharp impulsive leg tend to perform better than signals generated inside a choppy range. The adaptive mean will often be steeply sloped after an impulse, indicating the signal is against the micro-trend — exercise more caution and use tighter risk.
When price oscillates between the bands repeatedly without triggering signals, the market is likely in a low-volatility squeeze. A breakout attempt that immediately pulls back (triggering a sell or buy signal) at the edge of that range can mark the failed breakout early.
The gradient fill zones serve as a running reference for where price stands relative to the mean. Price persistently in the upper (red) fill with a rising adaptive mean suggests a strong trend; consider fading only when price crosses back into the neutral zone.
Past performance of any signal pattern does not guarantee future results. Always combine signals with broader context — structure, volume, and higher-timeframe bias. These signals indicate potential exhaustion; they do not predict reversal magnitude.
Unique Aspects
The squaring of the trend-regularity fraction is the core differentiator. Most adaptive averages use linear coefficients; squaring creates a much sharper distinction between trending and ranging states, so the mean spends more time "frozen" during ranges and snaps to price quickly when momentum genuinely kicks in.
Signals require price to close back inside the band, not just touch it — this one-bar confirmation step reduces noise from wicks that briefly pierce a band and immediately reverse without a real close-to-close move.
Band width is purely standard-deviation based rather than ATR-derived, which means the scaling responds to the actual statistical dispersion of the source series rather than the high-low range. On instruments with many gaps this can produce meaningfully different widths than ATR bands.
How to Use
Add the indicator to any chart. It overlays directly on the price pane.
The blue line is the adaptive mean. When it is rising steeply the market is in an upward trending mode; when flat or slightly sloped, it is ranging.
The red-shaded zone above the mean is the overbought area; the green-shaded zone below is the oversold area. Price spending extended time in one zone suggests momentum, not necessarily exhaustion.
A green BUY label below a bar means price closed back above the lower band after briefly breaking it — potential reversion entry. A red SELL label above a bar means the opposite.
To set alerts, use the "Buy Alert" or "Sell Alert" conditions from the indicator's alert panel (Once Per Bar Close recommended to avoid premature triggers on intrabar wicks).
Customization
Adaptive Mean Length (default: 99) — Controls both the highest/lowest lookback and the SMA averaging window for the smoothing coefficient. Higher values slow the mean considerably and widen bands; lower values increase reactivity but also produce more frequent and less reliable signals.
Envelope Multiplier (default: 2.5) — Scales the standard deviation distance. 2.0 suits instruments with tighter typical ranges; raise to 3.0+ on highly volatile assets to avoid constant band touches that don't represent genuine extremes.
Source (default: close) — Change to hl2 or hlc3 to incorporate high and low into the baseline; close is typically sufficient for most reversion setups.
Color inputs — Adjust bullish/bearish/mean colors and toggle the gradient fill on or off depending on visual preference.
Conclusion
Celestial Mean Reversion Envelopes pairs an adaptive mean that adjusts its responsiveness to trend regularity with volatility-scaled deviation bands, targeting the specific moment when a stretched move closes back inside its statistical boundary. The approach is best suited to traders who wait for confirmation — the crossunder/crossover trigger ensures you're acting on a completed reversal bar, not an open wick. As with any mean-reversion tool, it works best when context confirms the extension is exhaustion rather than breakout continuation.
Indikator

Market Breadth Trend StrategyOverview
Many traders focus on major indexes such as the S&P 500 or Nasdaq when evaluating market conditions. While indexes show overall price movement, they do not always reflect how broadly that movement is supported across the market.
Market breadth is a way of studying participation. It can help traders understand whether strength or weakness is concentrated in a small group of stocks or spread across a wider portion of the market.
A market move supported by broad participation may provide different context than a move driven by only a few heavily weighted stocks.
Understanding Market Participation
Market breadth generally refers to the number of securities contributing to a market move.
Examples of breadth-related observations include:
The balance between advancing and declining stocks
The number of stocks reaching new highs or lows
The percentage of stocks trading above key moving averages
These measurements can provide additional perspective alongside price action and trend analysis.
Why Traders Monitor Breadth
Participation Matters
Strong participation may indicate that market activity is occurring across a wider group of stocks rather than being concentrated in a few names.
Additional Context
Breadth can be used as a supplementary tool when evaluating trends, momentum, and overall market conditions.
Market Observation
Some traders monitor breadth metrics to better understand changes in participation over time and how those changes compare with index performance.
Strategy Concept
This script uses a simplified breadth-style proxy derived from the chart's relationship to a long-term moving average.
It is important to note that this script does not use actual exchange-wide market breadth data. Instead, it creates a participation-style filter using price behavior on the current chart.
The strategy combines:
Trend identification using moving averages
A breadth-style participation filter
ATR-based risk management
The objective is to demonstrate how participation concepts can be incorporated into a trend-following framework for research and testing purposes.
Important Notes
This script uses a simplified participation-style filter and is not a substitute for exchange-wide breadth indicators.
Results will vary across symbols, timeframes, and market conditions.
The script is intended for educational, research, and testing purposes.
Disclaimer
This script is provided for educational and research purposes only. It demonstrates one way to combine trend analysis with a breadth-style participation filter. It is not financial advice and should be tested across different symbols, market conditions, and timeframes before being used in any trading workflow.
This version avoids performance claims, avoids implying predictive ability, and clearly explains the limitations of the breadth proxy. Strategi

Technofunda Here's what the **Technofunda Dashboard** indicator does, feature by feature:
**1. VStop (Volatility Stop) — feature 1**
ATR(20) × 2 trailing stop, plotted as dots that track price: green dots below the candles when the trend is positive (LONG), red dots above when negative (SHORT). It flips when price crosses the stop. Built with na-safe guards so it computes correctly from the start.
**2. Auto-switching moving averages — feature 5**
The indicator detects your timeframe automatically: on a daily chart it shows 21 / 50 / 200 **SMA**; on a weekly chart it switches to 10 / 20 / 40 **EMA**. Three lines — fast (aqua), medium (orange), trend (fuchsia).
**3. Distance from the MAs — feature 2**
A table (top-right) shows how far price is from each MA, measured down from price to the MA as a % of price — positive when above, negative when below, colour-coded green/red.
**4. Weinstein Stage — feature 3**
Classifies the stock into Stage 1 (Basing), 2 (Advancing), 3 (Topping) or 4 (Declining) using the long-term MA (200 DMA / 40W EMA) and its slope: price above + MA rising = Stage 2, etc. Shown in the table, colour-coded.
**5. 52-week high / low — feature 4**
Green triangle above a bar that makes a new 52-week high, red triangle below a bar that makes a new 52-week low (252 bars on daily, 52 on weekly). The table also shows current distance to the 52W high and low.
**6. Relative strength vs Nifty 500 — feature 6**
Compares the stock to a benchmark (default `NSE:CNX500`) over a lookback window. The chart background tints light green when outperforming, light red when underperforming, and the table shows OUTPERFORM / UNDERPERFORM.
**7. Per-candle letter states — feature 7**
Each candle is tagged with one letter based on its live condition:
- **A** — VStop positive (baseline / just flipped up)
- **B** — positive *and* beating Nifty 500 by ≥5%
- **C** — positive *and* beating Nifty 500 by ≥10%
- **X** — VStop negative (baseline)
- **Y** — negative *and* price below the medium MA (20W EMA / 50 DMA)
- **Z** — negative *and* price below the slow MA (40W EMA / 200 DMA)
Higher tiers win (a stock up 12% shows C, not A+B+C; one below the 40W EMA shows Z, not X+Y). The 5% / 10% thresholds are adjustable inputs.
**Extras**
A summary table consolidating MA distances, Stage, VStop status, RS status and 52W proximity; alerts for VStop flips and new 52-week highs/lows; and editable inputs for ATR length/multiplier, benchmark symbol, RS lookback, B/C thresholds, and MA slope length.
Indikator

Indikator

Adaptive Regime Detector [4-State] [TSL]════════════════════════════════════════════════════════════
RELEASE NOTES — paste into TradingView's "Publish update" box
Script: Adaptive Regime Detector
Version: v1.3 — Volume Z-Score & High-Conviction Alerts
════════════════════════════════════════════════════════════
v1.3 — Volume Z-Score & High-Conviction Alerts
Added a same-time-of-day volume z-score reading to the dashboard, plus a new alert that fires when unusual participation lines up with a favorable regime.
The regime engine tells you WHAT kind of market you're in. The anchored VWAP from v1.2 tells you WHERE fair value sits within it. Neither answers WHO is actually showing up at the current bar. A trending regime on thin volume is a different trade than the same regime on conviction flow — and the z-score is what makes that distinction visible at a glance.
Implementation matches the standalone Volume Z-Score Readout: the script tracks the volume seen at each bar's position within the session across the trailing 21 sessions, then computes z = (current volume − same-time-of-day mean) / same-time-of-day stdev. The 09:30 cash open is benchmarked against past 09:30 opens, the lunch lull against past lunch lulls. Volume that's "high" only counts as unusual for that specific moment.
New "Volume Z-Score" input group:
· Show volume z-score row (default on) — adds a row to the dashboard with the live signed z-score, color-coded by tier: gray for |z| under 1.0, blue for 1.0 to 2.0, orange for 2.0 to 3.0, red for 3.0 and above. Displays "—" until at least 5 sessions of data have accumulated at the current slot.
· Sessions for baseline (default 21) — number of past sessions used for the mean and stdev calculation. 21 ≈ one trading month.
· High-conviction z threshold (default 2.0) — z-score above which counts as unusual enough to alert.
· Alert on high-conviction setups (default on) — fires once when the z-score crosses above the threshold WHILE the regime is TREND or TREND+VOL. Uses the same transition-detection pattern as the regime-change alert, so you won't get spammed on every bar where the condition continues to hold.
The dashboard auto-resizes between 7 and 8 rows based on whether the z-score row is shown — toggle it off and the table is identical in layout to v1.2. Existing dashboard position and size preferences carry over unchanged.
No changes to the regime classification engine or the anchored VWAP. Percentile scoring, the confirmation buffer, VWAP anchor logic, and the existing regime-change alert all behave identically to v1.2. The z-score is additive — disable it and the indicator behaves exactly as it did before the update. Indikator

Gap [Zemu]Gap
1. Description
Zemu is a gap continuation indicator focused on the relationship between overnight displacement and intraday follow-through. The indicator visualizes whether the opening imbalance was accepted, rejected, or faded during the session by comparing the gap against the subsequent intraday move. The goal is structural clarity, using a compact visual format to make continuation and failed continuation regimes easier to identify.
2. Features
Zemu plots the opening gap as a stepped bar structure, allowing overnight displacement to remain visually persistent throughout the session. Intraday follow-through and the combined net position are plotted as column structures using directional coloring derived from the intraday move. This allows continuation, disagreement, and reversal states to remain visually distinct without additional overlays or complexity.
Gap Calculation:
(Open - Previous Close) / Previous Close
Intraday Move:
(Close - Open) / Open
The indicator intentionally uses a minimal visual architecture focused on readability and interpretation.
3. Context
Overnight session gaps and subsequent intraday continuation dynamics are most pronounced due to exchange-based trading hours. Whilst primarily designed for stocks on the daily timeframe, this indicator can also be applied to indices, futures, and forex markets, although gap behavior in these instruments may exhibit weaker continuation characteristics depending on session overlap and trading structure. Cryptocurrency markets are generally less suited to the framework due to their continuous 24/7 trading environment.
4. Framework
Zemu is part of the ETMassif framework that is focused on price displacement and participation. Related work within the same research space examines how volume and price vectors interact during and after gap events, how wick-local participation reveals institutional activity at price extremes, and how persistent gap and wick levels continue to influence price structure over time.
日本語概要 (Japanese Summary)
Zemuは、ギャップ(窓開け)と当日の値動きの関係を可視化するためのインジケーターです。寄付き後にトレンドが継続したのか、ダマシ(失敗)に終わったのか、あるいはもみ合い(吸収)となったのかをシンプルな構造で表示します。ギャップはステップ(階段)構造として表示され、日中の値動きと合成されたネットポジションはカラム(柱状)形式で描画されます。視認性と構造の把握を重視し、不要な複雑化を避けた設計となっています。
中文概要(Chinese Summary)
Zemu 是一款用於分析跳空缺口與日內走勢關聯性的指標。本指標透過比較跳空缺口(Gap)與後續的日內走勢,藉此觀察市場對開盤失衡的延續、失敗或反轉表現。缺口以階梯式結構呈現,日內延續與淨位移則以柱狀圖(Column)形式顯示。整體設計強調簡潔、高可讀性與價格結構本身,避免過度複雜化。
Disclaimer:
This script is a research tool for market structure analysis and educational purposes only. It does not constitute financial advice. Trading involves risk. Indikator

Explainable Quant Scorecard [TradeDots]Explainable Quant Scorecard
Summary
This indicator computes a composite 0 to 100 evidence score by combining seven independent normalized sub-scores: Trend, Momentum, Volatility Regime, Participation, Relative Strength, Exhaustion Risk, and Multi-Timeframe Alignment. The composite is regime-dependent: when ADX indicates a trending regime, the trend and momentum weights are boosted; when ADX indicates a range regime, the exhaustion-risk weight is boosted instead. All factor weights are exposed as inputs so the model is fully auditable and tunable. A flagship dashboard panel displays every sub-score, the composite, the active regime, and a one-line interpretation.
The intent is to give traders a transparent multi-factor reading on every bar rather than another single-indicator signal. The composite is an evidence score, not a probability or prediction.
What is original here
Composite indicators that mash several oscillators together exist in the public library. This script's contributions are:
Honest factor separation. Each sub-score measures a different dimension (trend, momentum, volatility, participation, relative strength, exhaustion, multi-timeframe). Many composites silently combine correlated readings (such as two momentum oscillators) and present the result as if it were multi-factor confirmation. This script's seven factors are deliberately chosen to be diverse.
Regime-dependent weighting. The composite is not a fixed weighted average. When the market is trending, trend and momentum factors carry more weight; when ranging, exhaustion-risk carries more. This addresses the well-known problem that trend-following inputs and mean-reversion inputs should not be weighted equally in all conditions.
Sub-score divergence detection. The script tracks the maximum deviation of any sub-score from the composite. A large deviation triggers a "sub-score divergence" alert, warning the trader that the factors disagree even when the composite looks clean.
Full transparency. All weights, all thresholds, and the regime trigger levels are user inputs. No black-box.
How it works
Each bar, seven sub-scores are computed.
1. Trend score. EMA slope over a configurable lookback, normalized to 0 to 100 via min-max over a percentile window.
2. Momentum score. Rate-of-change of close over a configurable length, min-max normalized.
3. Volatility regime score. Bollinger Bandwidth percentile mapped to a discrete numeric: compressed BBW (below the lower threshold) maps to 30, expanding BBW (above the upper threshold) maps to 70, normal BBW maps to 50. A label ("Compressed", "Normal", "Expanding") is generated alongside the numeric.
4. Participation score. Volume percentile multiplied by a close-location alignment factor. For a bullish-direction reading, a close near the bar's high earns full alignment; for a bearish-direction reading, a close near the bar's low. The result is a 0 to 100 score that rewards volume and direction-consistent closes.
5. Relative strength score. The asset's return over a configurable horizon, minus the benchmark's return over the same horizon, divided by the asset's own volatility. The result is percentile-ranked over a longer lookback (default 252 bars) to produce a 0 to 100 reading. The benchmark symbol is a user input.
6. Exhaustion risk score. Distance from the trend EMA in ATR units, mapped inversely to 0 to 100 (high exhaustion gives a low exhaustion-score, which is consistent with the convention that high scores are "good" for the composite). The dashboard inverts the label so users see "Exhaustion: High" rather than "Exhaustion: 20".
7. Multi-timeframe alignment score. The trend direction (EMA-fast vs EMA-slow) is fetched at three user-configurable higher timeframes. Each HTF's agreement with the chart-timeframe direction contributes 100, 50, or 0 to the alignment score. The final factor is the average across three timeframes.
The composite is the weighted average. When regime_weighting is enabled and ADX indicates a trending regime (above the user threshold), the trend and momentum weights are multiplied by 1.5 and the exhaustion-risk weight by 0.5. When ADX indicates a range regime (below the lower threshold), the trend and momentum weights are multiplied by 0.5 and the exhaustion-risk weight by 1.5. In a "Mixed" regime, weights are unchanged.
A four-line interpretation is assigned by composite range:
75 or higher : "Constructive, multi-factor agreement"
60 to 74 : "Mixed but constructive"
40 to 59 : "Mixed — wait for alignment"
below 40 : "Bearish or unclear"
Repainting and data integrity
All sub-scores are computed on confirmed bar values. Alerts are gated by barstate.isconfirmed. The benchmark and the three multi-timeframe trend references are fetched with request.security() using prior-bar sources together with barmerge.lookahead_on — the standard non-repainting idiom that returns the last confirmed value from the requested context. These calls do not access future data.
How to read the chart
The composite is plotted as a line in the indicator pane, color-shifted on a red-to-green gradient based on the score.
Horizontal reference lines at 25, 50, and 75 demarcate bearish, midpoint, and bullish zones.
Sub-score plots are available but off by default to keep the pane clean. They can be enabled via input toggle.
The dashboard panel shows the direction in the header, then a row for each of the seven sub-scores (numeric or labelled), then a divider, then the composite score, then the interpretation line and the active regime.
Inputs
Inputs are grouped into seven sections.
Core Settings : trend EMA lengths and norm lookback, momentum ROC length, generic norm lookback, BB length and multiplier, ATR length, ADX length.
Relative Strength : benchmark symbol, RS return horizon, RS volatility length, RS percentile lookback.
Multi-Timeframe : three HTF inputs (default 60-minute, 240-minute, daily).
Factor Weights : a 0 to N weight for each of the seven sub-scores.
Regime Modulation : regime-weighting enable toggle, trend ADX threshold, range ADX threshold.
Visual Settings : dashboard toggle, panel position, panel size, panel background color, composite-plot toggle, sub-score-plot toggle.
Any Alert() function call conditions : per-alert toggles.
Alerts
Four alert conditions are provided:
Score ≥ 75 Bullish (composite at or above 75 with trend direction up)
Score ≥ 75 Bearish (composite at or above 75 with trend direction down)
Score Regime Flipped (composite crossed the 50 midpoint in either direction)
Sub-Score Divergence (any sub-score moves more than 30 points from the composite — a warning that factors disagree)
Each is declared via alertcondition() and fired programmatically through alert() when the corresponding input toggle is enabled, with alert.freq_once_per_bar_close. Alert messages include {{ticker}}, {{interval}}, and {{close}} placeholders.
How to use this script
Read this indicator as your master "is the evidence stack constructive" check, not as an entry trigger.
A composite of 75 or higher with trend direction up is the suite's highest-conviction long setup; the inverse for shorts.
Read the regime cell. In a trending regime, weight your decision toward the trend and momentum sub-scores. In a range regime, weight toward exhaustion risk and relative strength.
If the dashboard shows a high composite but the "Sub-Score Divergence" alert is firing, the agreement is shallow — investigate which factor disagrees before sizing up.
Pair with a setup-specific indicator (sweep, breakout, zone) for entry timing. This script does not give entries.
Limitations and honest caveats
The composite is a weighted heuristic combination of normalized factors, not a calibrated probability. A composite of 80 does not imply an 80% probability of any outcome.
Regime detection uses ADX, which is lagging. The regime label will not reflect a fresh regime change on the first bar.
The Relative Strength benchmark is a single symbol chosen by the user. Choosing an inappropriate benchmark (for example, comparing a small-cap stock to a crypto-currency benchmark) will produce noisy RS readings.
The three MTF references add request.security() calls. On instruments without history at those timeframes, the MTF score may be incomplete on early bars.
Composite values pin to one tail when factor weights are mis-configured. The default weights are reasonable starting values; users are expected to tune for their instrument and timeframe.
The script makes no claim about which direction price will move; it scores the evidence stack currently visible.
Disclaimer
This script is published for informational and educational purposes. It is not investment advice and is not a recommendation to buy or sell any instrument. Composite evidence scores are descriptive, not predictive. Users are solely responsible for their own trading decisions and risk management.
Indikator

Sentinel Cascade [JOAT]Sentinel Cascade
Sentinel Cascade is a three-stage adaptive Supertrend overlay. Where a classic Supertrend uses one fixed-ATR band, this script chains three Supertrend stages on top of each other and modulates each stage's width with a different regime signal. Bands tighten when the market is trending cleanly and widen when volatility expands or behavior turns mean-reverting.
What makes it different
A standard Supertrend gives one binary direction state. Sentinel Cascade gives three nested direction states that act like a confluence stack. Alignment of all three is the highest-conviction read.
The ATR feeding the Supertrend is smoothed through a Kaufman Efficiency Ratio. Trend-efficient periods get a faster ATR response. Choppy periods get a slower response.
Stage 2's width scales with a volume Z-score. High-volume bars widen the band so transient noise is less likely to flip the stage.
Stage 3's width scales with a lightweight two-point Hurst estimator (R/S over short and long windows). Trending Hurst above 0.5 widens. Mean-reverting Hurst below 0.5 tightens.
A Sentinel pulse fires only when Stage 3 flips AND Stage 2 confirms the new direction within three bars. A coincidence filter for higher-quality regime shifts.
How it works
Compute a basis price as the midpoint of the recent highest high and lowest low.
Compute a KAMA-smoothed ATR from the basis.
Build Stage 1 as a Supertrend on the basis using the KAMA-ATR and the Stage 1 factor.
Build Stage 2 as a Supertrend on Stage 1's output, with its factor multiplied by a clamped volume-Z modulator.
Build Stage 3 as a Supertrend on Stage 2's output, with its factor multiplied by a clamped Hurst modulator.
Track the Sentinel pulse, the ATR-percentile regime (squeeze / normal / expansion), and a running count of intraday Stage 3 flips.
Reading the chart
Three stacked trend lines. Stage 1 thickest, Stage 3 thinnest. Colors flip between bull and bear on direction changes.
A gradient ribbon between Stage 1 (or Stage 2 by user choice) and Stage 3 brightens when the stack is spread, fades when it converges.
An optional iridescent candle recolor scales tint with distance from Stage 3.
A horizontal sight-line projects Stage 3's current level back into history so past respect or rejection at that level is visible.
Persistent flip markers record each Stage 3 flip and retroactively append an OK or FAIL tag after a user-defined persistence window.
A right-edge state block summarizes alignment of all three stages plus the ATR squeeze and expansion read.
Signals
Stage 3 bull / bear shift (any flip)
Cascade alignment (all three stages agree)
Stage 2 retest / bounce inside an active trend
ATR squeeze and expansion entry (percentile-based)
All signals are gated on barstate.isconfirmed or barstate.ishistory. No future-bar referencing. No lookahead_on.
Inputs
Cascade : range basis length, ATR period, KAMA efficiency length, Stage 1 / 2 / 3 factors.
Regime : volume-Z lookback, Hurst short / long windows.
Visual : bullish color, bearish color, toggles for ribbon, sentinel pulse, iridescent candles, bounce markers, ribbon anchor.
On-chart : stage value labels, flip timeline labels, squeeze background tint, Stage 3 cloud, sight-line, state block, daily flip counter.
Dashboard : position, size, watermark row.
How traders use this
Trend continuation : take in the direction of Stage 3 when price retests Stage 2 from the trending side.
High-conviction entries : wait for cascade alignment (all three stages agree) before sizing up.
Mean-reversion fades : when Hurst is clearly below 0.5 and a Stage 3 flip prints near recent extremes, the new trend is statistically less likely to persist.
Volatility context : ATR percentile regime tells you whether the move is happening in a compressed, normal, or extended volatility environment. Sizing should account for that.
Limitations
The two-point Hurst estimator is a fast approximation, not the full rescaled-range statistic. It is monotonically meaningful but is not a precise persistence coefficient.
Like every Supertrend variant, this is a trend-following construct. It is best on instruments with clear directional regimes and worst in extended choppy ranges.
Pivots and percentile-based regime classifications need warm-up bars before their values stabilize.
Past behavior is not a guarantee of future behavior. No indicator can remove market uncertainty.
Compatibility
Pine Script v6, single-file open-source indicator. Works on any symbol and any timeframe. Uses no request.security calls. Non-repainting beyond the normal Supertrend right-bar reactivity inherent to band ratchet logic.
Defaults
Mint bullish color, red bearish color, top-right medium dashboard, all on-chart visualizations on. Open the inputs panel to tune for your instrument or to declutter for screenshots.
Indikator

MACD Dive [TTM Squeeze | Dual Lock %R]Disclaimer : This indicator is not financial advice and is strictly for educational and informational purposes only. The metrics and signals provided herein (including momentum crosses, trend saturation state icons, and squeeze markers) are calculated based on historical market data and do not guarantee future performance. Trading stocks and commodities involves significant risk of loss. The user assumes full responsibility for all trading decisions and should always perform their own due diligence before executing trades.
MACD Dive is a multi-state momentum and volatility context engine. By layering momentum oscillation (MACD/PPO/MACD-V) with market stalemates (volatility squeeze) and trend exhaustion (Dual %R saturation), this suite transforms a standard MACD into a multi-dimensional 'No-Go' gatekeeper. This synergy is what gives the engine its edge: it actively blocks the trader from whipsawing in sideways chop or buying into a dying trend, highlighting high-probability market turns where momentum, volatility, and trend capacity perfectly align.
Standard oscillators have a scaling problem. This script lets you choose your engine:
MACD (Classic): Measures momentum in absolute dollars. Great for visual reactivity, but a "2.0" reading means something different on a $5 stock versus a $500 stock.
PPO (Percentage): Measures momentum in percentages. Standardizes the reading across all assets, making it ideal for fixed-rule algorithmic trading.
MACD-V (Volatility Normalized): This divides the MACD by the Average True Range (ATR). It measures momentum in "Units of Volatility," mathematically adapting to market chaos so that signals remain consistent across both different assets and shifting volatility regimes (quiet markets vs chaotic markets).
This suite includes a fully optimized divergence detection engine:
Regular Divergence (Solid Lines): Identifies Trend Reversals. Price pushes to a new extreme, but momentum fails to follow, signaling exhaustion.
Hidden Divergence (Dashed Lines): Identifies Trend Continuations (Slingshots). Price pulls back, but momentum fully resets, signaling a high-probability entry in the direction of the dominant trend.
Located in your chosen corner, the HUD provides an instant visual readout with hover tooltips for active Engine Mode, %R Fatigue state, Oscillator crossover validation, and Squeeze environment. Vertical background highlights in green or red represent filter-passed momentum crossovers, like the MACD bullish cross. Use the extensive inline tooltips in the indicator's settings panel for a comprehensive breakdown of every tunable parameter.
Adaptive Time-Frames & RSI Gatekeeper
Think of this as an automated gear shifter. When looking at lower timeframes (below a user-defined boundary, e.g. 1 hour), the engine automatically scales down to tight, agile lookback periods. When viewing high timeframes, it dials up to filter out noise.
Buying a bullish MACD cross when the RSI is already at 85 increases risk of buying the top when the tank is empty. The optional RSI Safety Filter acts as a strict ceiling/floor blocker. If momentum crosses upward but the asset is mathematically overbought, the indicator suppresses the background highlight. It prevents signals on MACD crosses that have no fuel left.
VOLATILITY ENGINE: BB-KC Squeeze Radar
Building on John Carter’s TTM Squeeze by mapping the contraction of Bollinger Bands inside Keltner Channels to identify market stalemates. The implementation here color codes between a Loose Squeeze (BB inside 1.5 KC) and a hyper-compressed Tight Squeeze (BB inside 1.0 KC) to show the staged intensity of the coiled spring.
While the market coils sideways, a 20-period Linear Regression calculates the trajectory of price deviation inside the bands. The directional bias is shown by customizable markers on the zero line (default ⌃ or ⌄). This reveals hidden institutional accumulation or distribution before the trigger is pulled. To bypass "dead money" risk, the script tracks the first clean candle close or intraday pierce outside the Keltner bounds following a squeeze, catching the expansion phase exactly as it starts.
Furthermore, it accounts for the "Disappearing Mark" phenomenon. Bollinger Bands expand instantly when price moves, causing standard squeeze signals to vanish 1-3 bars before the real breakout candle. This script uses a memory state to remember recent compression, firing a "squeeze release" marker (default ❖) the exact moment price closes outside the Keltner bounds. Trade the release, not the waiting room.
Note: While MACD Dive tracks this compression mathematically on its zero-line, you can see the actual physical boundaries of the breakout by pairing it with my companion Swing Data suite . Plotting its Keltner Channel at 1.5 multiplier over your price chart allows you to visually verify the exact moment the squeeze release mark is ignited.
SATURATION ENGINE: Dual-Lock %R and Momentum Rot
This suite tracks sustained trend maturity using a fast/slow dual Williams %R setup. The conceptual pairing of a fast and slow %R to identify overbought/oversold exhaustion is credited to upslidedown's excellent Trend Exhaustion indicator . I highly recommend applying their script to your chart if you want to visually learn how the two %R lines interact.
While upslidedown’s implementation offers multiple display modes to paint visual boxes and exhaustion zones directly over price action, the focus here is on the discrete icons for trend status at the top and bottom of the MACD pane: Ignition (·), Saturation (□), and Fatigue (×). This suite adapts native ta.wpr() math assuming the trader is already familiar with Dual %R mechanics. Specific "Sprint" and "Marathon" tuning guidance is provided in the tooltips: heavily smoothing the fast line to ignore intraday noise, while lightly smoothing the macro slow line to preserve its reach into extreme zones.
It also features one major addition: the Stall. While Dual %R tracks Price Location (confirming price is structurally pinned at the highs), it doesn't track Velocity (confirming energy is sustained). To solve this, a Stoch RSI "Rot" detector runs quietly inside the saturation state. If price continues to float at the highs but internal velocity drops below a critical threshold, the script overlays a Stall marker (•). Designed as a "one-shot" early warning, it fires only on the first detection per trend saturation leg to prevent chart clutter. This differentiates a strong trend lock from a rotting lock, warning us that the move is running on fumes: giving us the exact cue to tighten stops, trim into parabolic strength, and strictly avoid adding new size.
BACKTESTER READY
Out-of-the-box compatibility with a comprehensive built-in README guide is available directly inside the settings menu. For traders who prefer a "Diamond Hands" approach, the indicator fully maps to Jason5480's TTS Framework convention, outputting strict integer states (1, -1, 2, -2) to hold full position size until the trailing macro baseline completely fractures. My personal backtester, Cosmos Signal Commander (which may be released to the public in the future), broadcasts a composite float signal capable of managing active trade positioning. It tracks entries, hard stops, and partial take-profits (swapping the trailing stop from tight to a wide "runner" buffer upon hitting extended ATR targets).
PERFORMANCE OPTIMIZATION
O(1) Memory States: Replaced lag-heavy ta.barssince() and 50-bar for loops in the Divergence engine with O(1) var state trackers.
String Caching: HUD table strings are built once in the global var scope to prevent constant memory allocation and garbage collection lag.
UI Mutation: The HUD uses table.cell_set_* to alter data dynamically, bypassing the stutter caused by destroying and redrawing tables on every tick.
Native C++ Backend: Replaced custom highest/lowest math arrays with native ta.wpr() functions for the %R engine to maximize computation speed.
Ghost State Resets: When switching the backtester logic to "Long Only" mode, the engine actively hunts and kills lingering short-memory variables so they don't inadvertently suppress valid long signals.
Indikator

Indikator

Edo SuperTrend CoreEdo SuperTrend Core — Clean Single-Line SuperTrend with RSI Trend Confirmation, Directional Intensity Fill and Trend Duration Counter
SuperTrend, created by Olivier Seban, is one of the most widespread trend-following indicators: it uses the Average True Range (ATR), introduced by J. Welles Wilder, to build a dynamic trailing stop that switches sides when price crosses it. It is clear and effective, but it has a known limitation: in sideways or noisy markets it produces false flips —trend changes that reverse within a few bars— and, drawn the classic way with its two bands, it clutters the chart.
Edo SuperTrend Core was built to solve those two things. It keeps the original SuperTrend algorithm, but adds a momentum confirmation filter that requires the RSI to agree before accepting a trend change, and simplifies the representation to a single line with an intensity fill and a duration counter. The goal is a clean trend reading with fewer false turns, without giving up the classic logic.
Edo SuperTrend Core does not generate automatic buy or sell signals: it visualizes the state and the maturity of the trend so the trader can integrate it into their own judgment.
WHAT THE INDICATOR DOES
The indicator combines four elements on a single layer. The SuperTrend line is a single dynamic level that acts at once as a trend reference and as the flip level, the closing price that, if crossed, would change the trend. The RSI confirmation filter requires momentum to agree in order to validate a trend change. The directional intensity fill, between price and the line, highlights the phase of the move. And the duration counter shows how many bars the current trend has been active.
CONCEPTUAL CALCULATION BASIS
The base is the classic SuperTrend: the ATR measures volatility and, from a multiple of that ATR, a dynamic level is computed that sits below price in an uptrend and above price in a downtrend. In the classic implementation two bands are plotted; here only the active level is shown, which keeps the chart cleaner.
On top of that base, Edo SuperTrend Core adds its own layer: when the SuperTrend signals a trend change, that change is only accepted if the 14-period RSI confirms it, above 50 to validate a bullish turn and below 50 to validate a bearish one. If momentum does not agree, the indicator keeps the previous trend. This filter is the central difference versus a standard SuperTrend: it discards part of the flips that noise generates in sideways markets. The basic reading is direct: with the SuperTrend below price the trend is bullish, and with the SuperTrend above price, bearish.
SENSITIVITY PROFILES
A single selector adjusts the behavior of the SuperTrend by modifying the internal ATR parameters. The Fast profile uses ATR 7 and factor 2.0: higher sensitivity, reacts sooner and produces more changes, useful on lower timeframes. The Balanced profile uses ATR 10 and factor 2.3: it is the default setting, balancing reactivity and stability. The Slow profile uses ATR 14 and factor 3.0: smoother and more stable detection, with fewer turns, useful on higher timeframes.
INTENSITY FILL
Between price and the SuperTrend line a fill is drawn whose color follows the direction of the trend and whose opacity is configurable. Its purpose is to make the phase and the magnitude of the separation between price and level visible at a glance: the greater the distance, the more extended the move is relative to its trailing stop. The RSI, besides filtering the trend changes, provides the momentum context that accompanies that phase, whether expansion, consolidation or exhaustion.
TREND DURATION COUNTER
Each time the trend changes, the indicator writes at the midpoint of the previous leg the number of bars that trend lasted. It is a purely informative figure that helps judge the maturity of the move: a trend that has already accumulated many more bars than the previous ones may be more extended, whereas a freshly started one is barely beginning to develop.
ALERTS
Edo SuperTrend Core includes four alert conditions configurable from the standard TradingView alerts dialog, split into two levels according to the momentum filter. The confirmed bullish trend change fires when the flip to bullish has passed the RSI filter, with momentum agreeing; it is the indicator's definitive trend signal. The confirmed bearish trend change is its downside equivalent. The raw flip up warns that price has crossed the SuperTrend line upward, still pending RSI confirmation, and serves as an early warning of a possible turn not yet validated; the raw flip down is its bearish equivalent. The confirmed and raw pair lets the trader choose their level of anticipation: the raw flip warns sooner but may reverse, while the confirmed one arrives a step later but has already filtered out part of the false turns.
HOW TO READ IT
The position of the line relative to price defines the trend and its side, and the color confirms the state at a glance. When a trend change occurs it is worth remembering that it has already passed the RSI filter, that is, that momentum was agreeing: turns confirmed by momentum tend to be more reliable than a pure SuperTrend flip. The fill and the separation between price and line indicate whether the move is expanding or losing strength. The duration counter places the current trend against the previous ones, and a trend well above the usual duration invites watching the flip level more closely. That flip level, the level of the line, is the closing price that would change the trend and serves as a dynamic stop reference.
ORIGINALITY AND JUSTIFICATION
Olivier Seban's SuperTrend and Wilder's RSI and ATR are public-domain classics, and Edo SuperTrend Core names and credits them without reservation. What it adds over a standard SuperTrend is specific: an RSI confirmation filter that discards part of the false flips of the classic SuperTrend in sideways markets, a single-line representation instead of the two bands, an intensity fill that makes the phase of the move legible, and a duration counter that adds a maturity reading. The combination of momentum filter, phase reading and duration is what distinguishes this version, not the base algorithm.
CONFIGURATION
Profile: Fast, Balanced or Slow, which adjusts the ATR and the factor. Gradient Opacity: the visual intensity of the fill, from 10 to 100%. All calculations adapt automatically to the chart's timeframe.
OPEN SOURCE
Edo SuperTrend Core is published as an open source and free indicator. The full Pine Script is publicly available on TradingView for study, adaptation and integration into any workflow.
This indicator is a technical analysis tool intended exclusively for educational and informational purposes. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading in financial markets carries a significant risk of capital loss. Past results do not guarantee future results. Always use proper risk management.
Indikator

ATR EMA MultipleA TradingView (Pine Script v6) oscillator that measures how far price has stretched from its moving average, expressed in units of ATR (Average True Range).
Instead of asking "how many dollars/points is price away from its average?", this indicator asks "how many typical bars of volatility is price away from its average?" That makes the reading comparable across different symbols, timeframes, and volatility regimes.
WHAT IT PLOTS
The main line (white) is the oscillator:
oscillator = (close - EMA(close, maPeriod)) / ATR(atrPeriod)
A value of +2 means price is currently 2 ATRs above its EMA.
A value of -1.5 means price is 1.5 ATRs below its EMA.
The yellow line at 0 marks price sitting exactly on its EMA.
A red line above and a green line below act as reference bands. How those two
bands are placed is controlled by the Line Mode setting (see below).
Typical use: when the oscillator pushes into or beyond the red band, price is
unusually extended to the upside; the green band marks unusual extension to the
downside. How you act on that (mean-reversion, breakout confirmation, etc.) is
up to your strategy.
SETTINGS
ATR and EMA Settings
ATR Period (default 14)
Lookback for the ATR used as the volatility unit.
Moving Average Period (default 21)
Lookback for the EMA that price is measured against.
Reference Lines
Line Mode (default Manual)
Chooses how the red/green bands are positioned:
"Manual" or "Std Deviations".
Manual mode
You set the band levels directly, in ATR units.
Manual: red line ATR level (default 3)
Red band drawn at this fixed oscillator value (e.g. +3 ATRs).
Manual: green line ATR level (default -3)
Green band drawn at this fixed oscillator value (e.g. -3 ATRs).
The bands are flat, fixed horizontal lines. Good when you want a constant, opinionated threshold.
Std Deviations mode
The bands adapt to the symbol's recent behaviour. You specify how many standard deviations from 0 each band should sit, and the script measures the actual standard deviation from the data.
Std Dev: red line std devs above 0 (default 2)
Red band at this many standard deviations above 0.
Std Dev: green line std devs below 0 (default 2)
Green band at this many standard deviations below 0.
Std Dev: lookback length (bars) (default 200)
How many recent bars are sampled to measure the standard deviation.
The bands move over time as volatility behaviour changes, automatically tightening in calm conditions and widening in stretched ones.
HOW "STD DEVIATIONS" MODE IS CALCULATED
This is worth understanding before you rely on it, because it is a deliberate, slightly non-standard choice.
The standard deviation is measured separately for the positive and negative sides of the oscillator, and anchored at 0 (not at each side's own average):
sigma_positive = sqrt( mean( oscillator^2 over bars where oscillator > 0 ) )
sigma_negative = sqrt( mean( oscillator^2 over bars where oscillator < 0 ) )
red band = (+ std devs above) x sigma_positive
green band = (- std devs below) x sigma_negative
Two consequences of this design:
Anchored at 0, not at the mean. Because the bands are described as "N standard deviations above 0 / below 0", the spread is measured as the root-mean-square of values around 0 -- not the textbook standard deviation around the sample mean. This keeps 0 (price = EMA) as the true center of the scale.
Asymmetric by design. The upside and downside are measured independently, so a market that stretches further on rallies than on sell-offs (or vice versa) will get an asymmetric pair of bands that reflects that.
On a freshly loaded chart the bands stay blank until the lookback window contains at least one positive and one negative reading.
READING THE COLOURS
Oscillator White Price distance from EMA, in ATR units.
Upper band Red Upside extension threshold.
Lower band Green Downside extension threshold.
Zero line Yellow Price equals its EMA.
NOTES & LIMITATIONS
The indicator is not a standalone trading system -- it's a normalization/context tool. Combine it with your own entry/exit logic and risk management.
Readings are only comparable when the ATR Period and Moving Average Period are held constant.
The red/green reference bands are drawn as dashed lines to distinguish them from the solid white oscillator.
On instruments with periods of zero volatility (ATR = 0), the oscillator value is undefined for those bars.
LICENSE
Open source -- published for the TradingView community. Attribution appreciated.
Indikator

Indikator
