Indikator

RSI Divergence + EMA Trend FilterDescription:
Divergence is one of the most discussed concepts in technical analysis and one of the most misapplied. The core idea is simple: when price makes a new high but the RSI makes a lower high, momentum is weakening even as price advances. That disconnect between price action and momentum is what divergence measures — and it often precedes reversals before price itself confirms the change in direction.
This strategy formalizes that concept into a rule-based, backtestable system with two components: RSI divergence detection and an EMA trend filter that determines which divergences to act on.
What divergence actually measures
RSI measures the speed and magnitude of price changes. When price reaches a new swing high but RSI fails to reach a correspondingly higher reading, it means the buying pressure behind the new high was weaker than the buying pressure behind the previous high. The market got to a higher price but required less momentum to do it — which suggests the move is losing conviction. Bearish divergence (price higher, RSI lower) signals potential exhaustion in an uptrend. Bullish divergence (price lower, RSI higher) signals potential exhaustion in a downtrend.
Important: divergence is a momentum signal, not a reversal guarantee. Price can continue making new highs with weakening RSI for a significant period before actually reversing. This is why divergence signals work best when combined with a trend filter that identifies the broader market context.
The EMA filter
The 200 EMA defines the dominant trend regime. Bearish divergence signals — where momentum is weakening on the upside — are only acted on when price is below the 200 EMA, meaning the broader trend is already bearish and divergence represents a potential resumption of that trend after a counter-trend bounce. Bullish divergence signals are only acted on when price is above the 200 EMA, where they represent potential continuations of the dominant uptrend after a pullback with improving momentum.
This filter deliberately reduces the total number of signals. Many valid divergences occur against the dominant trend and produce short-lived reversals that reverse again quickly. By requiring trend alignment, the strategy trades fewer setups but acts on the ones with a higher probability of following through.
How divergence is detected
The strategy identifies swing highs and swing lows using a lookback period — the number of bars on each side of a pivot that must be lower (for a high) or higher (for a low) to qualify as a genuine swing point. When two consecutive swing highs show price making a higher high but RSI making a lower high, bearish divergence is flagged. When two consecutive swing lows show price making a lower low but RSI making a higher low, bullish divergence is flagged.
The lookback length is the most important input to tune. A shorter lookback detects more swing points and generates more signals, but many will be minor pivots in the context of noise. A longer lookback requires more significant swing points and generates fewer, higher-quality signals. On daily charts, a lookback of 5 works well. On lower timeframes, 3 to 4 is more appropriate.
Exits
Positions exit at an ATR-based stop-loss and a fixed ATR-based take-profit. The stop is placed beyond the swing point that generated the divergence signal — for a bearish divergence, the stop sits above the swing high; for a bullish divergence, below the swing low. This is intentional: if price breaks through the very level that defined the divergence, the signal is invalidated regardless of what RSI was doing. The take-profit is set at 2x ATR to maintain a positive reward-to-risk ratio across the system.
What to evaluate in backtesting
Look at the signal distribution across different market environments. Divergence strategies tend to perform differently in trending versus ranging markets — in strong trending environments, bearish divergences against the dominant trend will produce many false signals even with the EMA filter. Look at whether the EMA filter is doing real work by temporarily disabling it and comparing signal quality. Check average trade duration — divergence signals that take too long to play out often give back open profit before the take-profit level is reached.
This is not a high-frequency strategy. On daily charts with a 5-bar lookback, signals may appear only a few times per month on a given instrument. That frequency is appropriate — divergence setups require specific conditions to form and should not be forced.
Shared for educational purposes and discussion. This is not investment advice. Backtest on your own instruments and timeframes before drawing conclusions about expected performance. Strategie

Multi-Timeframe Trend Matrix [JOAT]Multi-Timeframe Trend Matrix
Reads several timeframes with several methods at once and scores their agreement into a single alignment signal — without lookahead.
What it is
Trading a single timeframe blinds you to the larger context; watching many by eye is slow and inconsistent. This indicator evaluates a grid of timeframes and trend methods, turns the whole grid into one alignment score, and signals when top-down agreement forms. It is an original multi-timeframe aggregation tool built to avoid the common pitfalls of higher-timeframe requests.
How it works
• The matrix — a set of higher and lower timeframes is each assessed by several independent trend methods (such as a moving-average relationship, a directional trend measure and a momentum read). Each cell of the grid returns simply bullish or bearish, so the picture is easy to interpret.
• No lookahead — every higher-timeframe value is pulled with lookahead disabled, so the indicator never borrows future data from an unclosed higher-timeframe bar. This is a deliberate, disclosed design choice that keeps the signals honest and non-repainting on historical bars.
• Alignment score — the grid is condensed into one signed score representing how strongly all timeframes and methods agree. Full agreement produces a strong reading; a split grid produces a weak, near-neutral one.
• State-machine signals — a Buy fires when alignment turns sufficiently bullish from a non-bullish state; a Sell is the mirror. Requiring a state change means the matrix will not re-signal the same direction repeatedly — the signals are self-spacing.
Trade levels
Each signal draws a red risk box to the ATR stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples.
The dashboard
An adjustable alignment-matrix panel displays every timeframe-by-method cell as bullish or bearish, a bipolar alignment-score headline, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only. The grid shows exactly which timeframes agree and which disagree.
How to use it
• Works on any asset; pick a base timeframe and let the grid supply the higher-timeframe context.
• Favour entries when the grid is broadly aligned; be cautious when it is mixed.
• Use it as a top-down filter alongside your own entry method, or take its aligned signals directly.
Settings
The set of timeframes, the methods and their lengths, the alignment threshold, ATR risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The contribution is the aggregation framework: a disciplined, lookahead-free multi-timeframe, multi-method grid condensed into one transparent alignment score with a state-machine trigger. Seeing the full grid — not just a final arrow — is what lets a trader trust or override the signal for themselves.
Notes and limitations
• Higher-timeframe values update only as those bars close, so alignment can shift when a higher-timeframe bar completes — this is expected and prevents lookahead bias.
• Strong alignment can still precede a reversal; agreement is context, not certainty.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indikator

RSI Divergence Hunter [JOAT]RSI Divergence Hunter
Automatically detects the four classic RSI divergence types on confirmed pivots and frames each one as a trade.
What it is
Divergence between price and momentum is one of the oldest reversal and continuation reads, but marking it by hand is subjective and easy to force. This indicator detects all four divergence types algorithmically on confirmed pivots, so what you see is defined and repeatable, and then attaches a full trade structure to each. It is an original divergence engine, not a plain RSI plot.
How it works
• RSI core — the relative strength index measures the speed and size of recent moves. It is the momentum reference every divergence is measured against.
• Confirmed pivots — the engine waits for pivots on both price and RSI to confirm a set number of bars back before comparing them. Because pivots are only evaluated once confirmed, a plotted divergence does not repaint into or out of existence.
• The four types — regular bullish (price lower low, RSI higher low) and regular bearish (price higher high, RSI lower high) point to potential reversals; hidden bullish and hidden bearish point to trend continuation after a pullback. Each is drawn with a connecting line on both price and RSI and labelled by type.
• Zones and gating — overbought and oversold zones give context, and a minimum-gap control keeps divergence signals from stacking on lower timeframes.
Trade levels
Each qualifying divergence draws a red risk box to the stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples. The stop is anchored beyond the pivot that formed the divergence.
The dashboard
An adjustable divergence-scope panel shows the current RSI value and zone, the most recent divergence type detected, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on any asset and timeframe.
• Treat regular divergences as counter-trend reversal cues and hidden divergences as with-trend continuation cues — the distinction matters.
• Combine with structure or a trend filter; divergence works well as confluence, not in isolation.
Settings
RSI length and source, pivot strength, which divergence types to display, overbought/oversold levels, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The contribution is a complete, confirmed-pivot detector for all four divergence classes with clear per-type labelling and integrated, non-repainting trade framing. By fixing the definition of a divergence and waiting for pivot confirmation, it removes much of the hindsight bias that makes manual divergence unreliable.
Notes and limitations
• Divergence signals can persist and reappear in strong trends; a divergence is a condition, not a timing guarantee.
• Confirmed pivots introduce a natural delay equal to the pivot strength — this is the cost of not repainting.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indikator

Classic Strategy Reality Check [Tessen]Pick a famous strategy and see what it actually did on the chart you're looking at — after fees.
Five classics, selectable in settings:
- Golden Cross (SMA 50/200 flip)
- RSI 30/70 mean reversion
- MACD histogram momentum
- Bollinger Band reversion
- Stochastic 20/80
The panel books every state flip as a trade on candle close, charges your fee input per side, and reports: closed trades, win rate, average net per trade in basis points, total compounded return vs simply buying and holding the same window, and max drawdown. An open trade is excluded, not hidden.
What it is NOT: signals, alerts, or a recommendation. One symbol's history is not evidence of an edge — a strategy that "works" on this chart may be riding one trend it will give back. The verdict line says so to your face, including the case most tools won't show you: positive after fees but still worse than holding.
Every number is computed locally from the chart you're viewing. No repainting: state flips are evaluated on closed candles only.
1. If the win rate looks great but avg net is negative, you've met the win-rate trap.
2. If total return is positive but below buy & hold, the strategy cost you money twice — in fees and in foregone gains.
3. If it survives all of that on YOUR chart: demand out-of-sample evidence before trading it. History that picked the strategy can't also be the proof. Indikator

RSI Liquidity Sweep Confluence Engine [PhenLabs]📊 RSI Liquidity Sweep Confluence Engine
Version: PineScript™ v6
📌 Description
The RSI Liquidity Sweep Confluence Engine rebuilds the RSI as dynamic, price-projected support and resistance levels — then waits for liquidity to be swept exactly at those levels before firing a signal. It solves the two biggest problems retail traders face with RSI and liquidity tools: RSI divergence readings that never map to price, and liquidity sweep alerts that fire on every wick with no filter.
By requiring full confluence — an RSI-derived level, a genuine liquidity sweep, and volume confirmation all aligning on the same bar — the engine suppresses noise and only marks the reversals where smart-money delivery actually shifts. Signals do not repaint on closed bars.
This is a fusion indicator. It takes the week’s most popular concept (RSI rebuilt as S/R), PhenLabs’ core specialty (liquidity sweep mapping), and the highest-traction publishing format (confluence-scored, fire-only-on-full-alignment engines) and combines them into one clean, dashboard-backed tool.
🚀 Points of Innovation
RSI pivots mapped directly onto price as live support/resistance levels, not oscillator readings
Liquidity sweep detection gated to fire only when the sweep occurs at an RSI-derived level
Triple-confluence gate: RSI S/R + liquidity sweep + volume confirmation must all align
Adaptive ATR-based tolerance so the confluence zone scales with current volatility
WMA-smoothed S/R lines with a single soft channel fill for a clean, uncluttered chart
No repaint on closed bars — signals confirm on bar close
🔧 Core Components
RSI Core Levels : Confirmed RSI pivots (left/right bars configurable) are recorded with their corresponding price high/low, building a rolling set of dynamic S/R zones projected onto the chart as smoothed lines
Liquidity Sweep Detector : Tracks swing high/low liquidity pools over a lookback window and flags genuine sweeps (wick beyond pool, optional close-back inside for reversal confirmation)
Confluence Gate : Measures the distance between the swept price and the nearest RSI S/R level using ATR-scaled tolerance, then confirms with a volume-vs-SMA check
🔥 Key Features
Triple Confluence Gating : Signals fire only when RSI level, liquidity sweep, and volume all agree — drastically reducing false reversals
RSI-as-Price S/R : Converts oscillator extremes into actionable price levels you can trade against directly
ATR-Adaptive Tolerance : Confluence zone widens in high volatility, tightens in ranges — works across timeframes and instruments without re-tuning
Close-Back Reversal Filter : Optional requirement that price closes back inside the swept pool, filtering stop-runs that continue
Clean Visual Layer : Two smoothed S/R lines, one soft channel fill, subtle state-tinted background and color-coded bars — premium look without chart clutter
Live State Dashboard : Compact on-chart table shows RSI, nearest S/R levels, volume confirm, ATR, and current state at a glance
Dual-Direction Alerts : Separate bullish and bearish alertconditions for automated notification
🎨 Visualization
Smoothed S/R lines : A red resistance line above price and a green support line below, WMA-smoothed so transitions ease instead of snapping
Soft channel fill : A single subtle purple band between support and resistance defining the active RSI value zone
State background tint : Chart background subtly greens on bullish confluence, reds on bearish confluence, gold-tints when a sweep is armed
Color-coded bars : Candle bodies shift green / red / gold based on the live confluence state
Sweep marker + label : A single dashed box marks the exact swept liquidity pool, with a compact BULL / BEAR label at the signal bar
Top-right dashboard : Compact state table with RSI, resistance, support, volume confirm, ATR, and Scanning / Armed / Confluence state
📖 Usage Guidelines
RSI Length — Default: 14 — Range: 2-50 — Controls RSI period used to derive S/R levels; lower = more reactive levels, higher = more structural
RSI Pivot Left / Right — Default: 5 / 5 — Range: 1-20 — Bars used to confirm RSI pivots; higher = fewer but more reliable levels
Active RSI Levels Kept — Default: 4 — Range: 1-10 — Number of most-recent RSI S/R levels kept active on chart
Level Smoothing (WMA) — Default: 3 — Range: 1-10 — WMA length applied to S/R lines for smoother transitions
Sweep Lookback — Default: 20 — Range: 5-100 — Bars defining the swing high/low liquidity pools
Require Close-Back — Default: true — Toggles whether price must close back inside the swept pool to validate a sweep
RSI Level Tolerance (ATR x) — Default: 0.30 — Range: 0.0-2.0 — Distance (in ATR multiples) within which a sweep counts as touching an RSI level; 0.0 disables RSI confluence
Volume Multiplier — Default: 1.20 — Range: 0.0-5.0 — Volume must exceed this multiple of its SMA to confirm; 0.0 disables volume confluence
ATR Length — Default: 14 — Range: 1-100 — ATR period used to scale the confluence tolerance
✅ Best Use Cases
Intraday and swing reversal trading on indices, FX majors, and high-liquidity crypto
Smart-money / ICT traders who want a filtered sweep signal instead of raw sweep noise
Traders who already use RSI but want it mapped to price as tradable S/R
Multi-timeframe confluence stacking — run on higher TF for bias, lower TF for entries
⚠️ Limitations
Like all pivot-based tools, signals are confirmed pivotRight bars after the pivot forms; expect a small structural lag on the S/R levels themselves
Confluence gating reduces signal frequency by design — fewer but higher-quality signals, not a continuous signal generator
Volume conformance requires sufficient volume data; on symbols with no volume feed, set Volume Multiplier to 0.0
Best on instruments with genuine liquidity pools and clean swings; choppy low-range sessions produce fewer qualified setups
💡 What Makes This Unique
RSI-as-S/R fused with liquidity sweeps : No top community script currently combines RSI-derived price levels with sweep detection — this fills that white space
Fire-only-on-full-confluence design : Uses the highest-viral-ratio publishing format (confluence-scored engines) applied to PhenLabs’ core liquidity specialty
🔬 How It Works
RSI S/R construction : The engine computes RSI, detects confirmed pivots via left/right lookbacks, and records the price high (resistance) or low (support) at each RSI pivot bar. The most recent levels are kept in a rolling buffer, WMA-smoothed, and projected as clean lines on the chart with a soft channel fill between them.
Liquidity pool tracking : Swing highs and lows over the configured lookback define resting liquidity pools. A sweep is registered when price wicks beyond a pool — and optionally closes back inside it, confirming a reversal rather than a continuation stop-run.
Triple confluence gating : The engine checks that the sweep occurred within an ATR-scaled tolerance of the nearest RSI S/R level, and that volume exceeded its moving average by the configured multiple. Only when all three gates align does a bullish or bearish signal marker fire, with a dashed box marking the exact swept pool and a BULL / BEAR label at the signal bar.
💡 Note:
Best results come from pairing the engine with your own market-structure read and using it as a high-probability entry filter rather than a standalone signal. Tune RSI Length and Tolerance to your timeframe — shorter for scalping, longer for swing. This tool is an analytical aid to support your own judgment and is not financial advice.
Indikator

Indikator

Divergence Indicator RSI, MACD,, Hidden Reversal Signals LunqFXDivergence Indicator is a multi-engine divergence scanner for TradingView that reads RSI, MACD and OBV at every confirmed swing and only draws a divergence when the engines agree — so instead of the usual flood of weak one-oscillator signals, you get a few graded, high-conviction ones. Every divergence is rated by strength: ★★★ all three engines confirm (rare, strongest), ★★ two confirm, single-engine noise is filtered out by default. It detects regular divergences (price makes a new extreme, oscillators refuse — potential reversal) and hidden divergences (trend continuation), on any market — forex, crypto, stocks, indices, gold — and any timeframe. Built in Pine Script v6, fully non-repainting. Keywords: divergence indicator, RSI divergence, MACD divergence, OBV divergence, hidden divergence, regular divergence, reversal, momentum, exhaustion, multi oscillator scanner.
◆ WHY MULTI-ENGINE
Any single oscillator diverges constantly — that's why classic divergence tools feel random. Requiring independent confirmation from momentum (RSI), trend-momentum (MACD) and volume flow (OBV) removes most false positives: when all three refuse to follow price, the move is genuinely running out of fuel.
◆ WHAT IT DRAWS
Divergence lines on price — solid neon violet for bullish, neon amber for bearish; dashed for hidden divergences.
Star-graded labels — ★★ / ★★★ with tooltips explaining exactly what diverged.
Exhaustion candles — a unique display layer: candles glow at full neon while price and engines agree, and fade as engines stop confirming — you see a divergence brewing before it prints.
Status strip dashboard — a horizontal HUD along the bottom: last signal + strength, a live engine board (P / RSI / MACD / OBV direction arrows), a FUEL meter, and bull/bear counters.
◆ HOW IT WORKS
Swings are detected with confirmed pivots (N closed bars each side).
At each new confirmed pivot the scanner compares price and each engine against the previous pivot: price lower low + engine higher low = regular bull; price higher low + engine lower low = hidden bull (mirrored for highs).
The number of agreeing engines (1–3) becomes the star rating; signals below your minimum are skipped.
The live engine board and fuel meter track slope agreement in real time — display-only context that never alters signals.
◆ HOW TO USE IT
Treat ★★★ regular divergences as your primary reversal alerts — look for entries with your own structure/levels.
Use hidden divergences to join the trend on pullbacks.
Watch the FUEL meter: when it drains and candles fade, tighten stops on trend trades.
Raise Min strength to 3 for only the rarest, cleanest signals; lower pivot bars for faster (but noisier) detection.
◆ SETTINGS
Pivot left/right bars, max gap between swings, minimum strength, hidden divergences on/off, engine toggles (RSI/MACD/OBV), RSI length, exhaustion candles, label size, dashboard position/size.
◆ ALERTS
Bullish divergence · Bearish divergence (fire when a confirmed signal prints).
◆ LIMITATIONS
Signals confirm with a pivot delay (right bars) — that is the honest cost of zero repaint; lower it for speed, raise it for reliability.
On symbols without volume data the OBV engine adds no information — disable it there.
Divergence marks exhaustion, not timing — always combine with structure and risk management.
◆ ORIGINALITY & NON-REPAINTING
Original work: the three-engine agreement grading, the exhaustion-candle layer, the live engine board and the fuel meter are my own implementation — no third-party code. All divergences are built from confirmed pivots only; a drawn line or label never moves or disappears.
Educational analysis tool, not financial advice. © LunqFX. Indikator

Strategie

Indikator

Adaptive Multi-Timeframe RSI Divergence📈 Adaptive Multi-Timeframe RSI Divergence
Brief Description
A multi-timeframe RSI oscillator that combines weighted higher-timeframe momentum, adaptive trend confirmation, divergence detection, and configurable Flip alerts into a unified momentum analysis framework.
📖 Overview
Adaptive Multi-Timeframe RSI Divergence expands the traditional RSI by introducing a Composite RSI calculated from multiple higher timeframes.
Instead of evaluating momentum from a single timeframe, the indicator compares local RSI behavior with broader market momentum while integrating trend confirmation, divergence detection, and adaptive visualization into one oscillator.
The objective is to reduce noise while providing a more reliable interpretation of momentum shifts.
⭐ Key Features
🔹 Composite Multi-Timeframe RSI
• Combines RSI values from three configurable higher timeframes.
• Uses customizable weighting for each timeframe.
• Smooths the result with an EMA to reduce noise.
🔹 Adaptive Trend Detection
Trend changes require multiple confirmation conditions:
✅ RSI crossover
✅ Minimum RSI distance
✅ RSI slope confirmation
✅ Confirmation bars
✅ Deadband filtering
This helps avoid false flips during ranging markets.
🔹 Flip Detection Engine
The Flip Engine confirms bullish and bearish momentum transitions only after all validation rules have been satisfied.
Flip labels and alerts are generated after confirmation rather than immediately at crossover.
🔹 RSI Divergence Detection
Supports:
• Regular Bullish
• Hidden Bullish
• Regular Bearish
• Hidden Bearish
using configurable pivot detection and lookback filtering.
🔹 Dynamic RSI Zones
Highlights active overbought and oversold regions only when RSI enters those zones, improving readability without permanently coloring the oscillator.
🔹 Trend Ribbon
🟢 Green = Confirmed Bullish Momentum
🔴 Red = Confirmed Bearish Momentum
🟣 Purple = Momentum Transition
🔔 Alerts
Includes alert conditions for:
• Bullish Flip
• Bearish Flip
Alerts trigger only after confirmation.
⚙️ Inputs
The script allows customization of:
• RSI Settings
• Composite RSI Timeframes
• Timeframe Weights
• Flip Detection
• Confirmation Rules
• Divergence Settings
📊 How to Interpret
🟢 Bullish Flip
Momentum has shifted toward bullish conditions after confirmation.
🔴 Bearish Flip
Momentum has shifted toward bearish conditions after confirmation.
📈 Composite RSI
Represents weighted higher-timeframe momentum.
📍 Divergences
Highlight potential exhaustion or continuation depending on the divergence type.
🎯 Best Applications
• Swing Trading
• Trend Confirmation
• Momentum Analysis
• Multi-Timeframe Analysis
• Divergence Confirmation
⚠️ Limitations
Like all momentum indicators, this script should be used as a decision-support tool rather than a standalone trading system.
Divergences and momentum shifts may persist before price reacts. Additional confirmation from price action or risk management techniques is recommended.
💡 Originality
Unlike a traditional RSI indicator, this script introduces several original concepts:
✔ Weighted Composite RSI using multiple higher timeframes.
✔ Adaptive trend confirmation using RSI distance, slope, persistence filters, and deadband logic.
✔ Configurable Flip Detection Engine.
✔ Trend-state ribbon.
✔ Integrated divergence detection.
✔ Built-in alert system.
Rather than simply combining existing indicators, the objective is to create a unified momentum framework that filters market noise while providing a broader view of momentum across multiple time horizons. Indikator

Standing Wave Phase Coherence [JOAT]STANDING WAVE PHASE COHERENCE
A phase-coherence engine that asks a question almost no public indicator can answer: are the LTF and HTF oscillators in phase or out of phase ? Two oscillators that move together (peaks and troughs aligned) form a standing wave — a state of constructive interference where the trend is amplified. Two oscillators that move opposite (peaks aligned with troughs) form an anti-standing wave — a state of destructive interference where a reversal is forming. Standing Wave Phase Coherence measures phase, computes the coherence between the two timeframes, and surfaces a single number bounded in that tells you which regime you are in.
Phase, not just direction
A moving average tells you "where price is sitting". A momentum oscillator tells you "which way it is moving". Phase is the location inside the cycle — are we approaching a peak, leaving a peak, approaching a trough, leaving a trough? Two oscillators on different timeframes can be:
In phase — both rising or both falling at the same rate of cycle progression. Constructive interference. Trend amplifies.
Anti-phase — one rising, the other falling at the same cycle rate. Destructive interference. Reversal forms.
Decoherent — phases are uncorrelated. The wave structure is breaking down. No directional edge from coherence.
The script estimates phase from each timeframe's RSI series (both legs at the same RSI length for fair comparison), differences the phase smoothly, then takes the cosine of the phase difference — which is exactly the quantum-mechanical coherence metric on a scale.
Non-repainting HTF construction
The HTF leg uses request.security with lookahead_on AND a offset on the expression — the only non-repainting form per Pine v6 docs. This is exposed as a toggle but ON by default; the warning in the input tooltip explains the trade-off (turn off only for research, never live).
Three thresholds, three states
Coherence > +0.70 (configurable) — IN PHASE . Standing wave constructive. Trend amplifies. Bull-palette background tint.
Coherence < −0.70 — ANTI PHASE . Standing wave destructive. Reversal forms. Bear-palette background tint.
|Coherence| < 0.30 (decoherent band) — DECOHERENT . No standing wave. Mid-palette neutral.
In between — transitional.
Phase-status arrows print inside the pane at every regime entry, so the chart history shows when each standing wave formed and collapsed.
Visual system
Coherence line with configurable width.
Glow halo — a wider semi-transparent copy of the coherence line below the main line, creating a soft glow effect.
Background tint by phase status — bull when IN PHASE, bear when ANTI PHASE, none when decoherent. Transparency configurable.
Threshold lines at ±0.70 (toggleable).
Zero line .
Fill between threshold and ±1 — soft bull / bear fill highlights the active phase zone so it is immediately obvious which side is engaged.
Phase status arrows inside the pane on state transitions.
The pane uses the JOAT default palette (cyan-teal bull / magenta bear).
Amplification factor
A separate EMA-smoothed trend amplification factor is computed from the coherence and surfaced in the dashboard. When coherence is sustained high (in-phase), the amplification factor rises — quantifying how much the LTF/HTF agreement is reinforcing the move. Useful as a position-sizing input: bigger amplification = stronger conviction = larger size.
Dashboard
Monospaced table, positionable to any of nine corners. Surfaces:
Current coherence value and bar age.
Phase status (IN PHASE / ANTI PHASE / DECOHERENT) with glyph.
LTF and HTF RSI values.
Phase difference in radians and degrees.
Trend amplification factor (smoothed).
HTF timeframe in use with non-repaint flag.
Alerts
Multiple alert conditions:
Coherence crosses above +0.70 (IN PHASE entry)
Coherence crosses below −0.70 (ANTI PHASE entry)
Coherence returns to decoherent band
Sustained IN PHASE (held above threshold for N bars)
Sustained ANTI PHASE
How to read it
Three reads, in order of conviction:
Sustained IN PHASE — the highest-conviction trend read. LTF and HTF oscillators are decisively moving together. This is the regime in which momentum tools have their largest edge.
Entry into ANTI PHASE — the reversal warning. The two timeframes have rotated opposite each other; whichever direction LTF is moving, HTF is opposing. Often precedes meaningful reversals.
Decoherent zone — stand-aside signal. The wave structure has broken down. Coherence-based reads are not actionable; switch to a regime-classification tool (FDI, Hurst, Entropy).
The cleanest workflow: only take trend trades when IN PHASE; only take reversal trades when ANTI PHASE; do nothing when DECOHERENT.
Suggested settings
Defaults (RSI 14, HTF 4H, phase smoothing 3, coherence smoothing 8, ±0.70 thresholds, ±0.30 decoherent band) are tuned for 15m–1H charts. The HTF should always be greater than or equal to the chart timeframe; mismatching produces meaningless phase reads. For HTF (4H+ chart timeframes) raise HTF to Daily and consider the LTF/HTF coherence as a daily-vs-weekly read.
Originality
The implementation — the dual-timeframe RSI phase estimator, the smoothed phase-difference cosine coherence (quantum-style metric), the non-repainting HTF request with -offset + lookahead_on pattern, the three-threshold phase classifier with decoherent band, the trend amplification factor formulation, the glow-halo line render, and the pane-overlay phase-status arrows — is JOAT-original. No third-party code reused. The notion of phase coherence between timeframes as a market regime metric is the original quantitative contribution, borrowed conceptually from optical and quantum physics.
Limitations
Phase estimation from discrete bar data is inherently noisy on short windows; the smoothing inputs (phase EMA and coherence EMA) exist to address that — over-smoothing destroys phase information, so the defaults are intentionally light. The HTF request is non-repainting in the useStrictHtf = ON configuration; do not turn it off in live trading. The decoherent band is a heuristic to avoid acting on noise reads; widen it on instruments with naturally choppy oscillator structure.
—
-made with passion by jackofalltrades
Indikator

RSI Divergence (Bull/Bear) RSI Divergence (Bull/Bear) is an advanced momentum analysis indicator that automatically detects bullish and bearish RSI divergence between price action and the Relative Strength Index (RSI). These divergence signals can help traders identify potential market reversals, trend exhaustion, and high-probability trading opportunities across multiple financial markets.
The indicator continuously analyzes swing highs and swing lows in both price and RSI, highlighting areas where momentum no longer confirms the current price movement. These conditions often appear before significant trend reversals or corrective moves.
Features
• Automatic Bullish RSI Divergence Detection
• Automatic Bearish RSI Divergence Detection
• Swing High & Swing Low Analysis
• Visual Buy & Sell Signal Labels
• Divergence Confirmation Zones
• Optional RSI Sensitivity Settings
• Clean & Lightweight Chart Layout
• Multi-Timeframe Compatible
• Non-Repainting Divergence Detection
• Customizable Signal Display
How It Works
The indicator monitors price swings alongside RSI momentum.
When price forms a **Lower Low** while RSI forms a **Higher Low**, a **Bullish Divergence** is detected, suggesting weakening selling pressure and a possible bullish reversal.
When price forms a **Higher High** while RSI forms a **Lower High**, a **Bearish Divergence** is detected, indicating weakening buying momentum and a potential bearish reversal Signals are displayed directly on the chart, allowing traders to quickly identify possible turning points.
Signal Types
🟢 Bullish Divergence
• Price makes a Lower Low
• RSI makes a Higher Low
• Possible bullish reversal
• Momentum strengthening
🔴 Bearish Divergence
• Price makes a Higher High
• RSI makes a Lower High
• Possible bearish reversal
• Momentum weakening
Best Markets
• Forex • Gold (XAUUSD) • Silver (XAGUSD)
• Crypto • Indices • Stocks • Futures
Recommended Timeframes
Scalping • M5 • M15
Intraday • M30 • H1
Swing Trading • H4 • Daily
Indicator Highlights
• Automatic RSI Divergence Detection
• Early Reversal Identification
• Visual Buy & Sell Signals
• High-Probability Momentum Analysis
• Non-Repainting Logic
• Adjustable RSI Parameters
• Beginner Friendly
• Professional Trading Tool
• Works in Trending and Ranging Markets
Suggested Trading Workflow
1. Identify the overall market trend.
2. Wait for a Bullish or Bearish RSI Divergence signal.
3. Confirm the setup using market structure, support/resistance, or candlestick confirmation.
4. Enter the trade with proper risk management and position sizing.
Notes
This indicator is designed to assist traders in identifying potential momentum shifts through RSI divergence analysis. It should be used alongside market structure, price action, and sound risk management principles. Like all technical analysis tools, it does not predict future price movements or guarantee profitable trades. Indikator

RSI Slope Divergence HelperRSI Slope Divergence Helper compares the rolling slope of price with the rolling slope of RSI.
This is not a classic pivot-divergence detector. It does not wait for confirmed swing pivots. Instead, it compares rolling price behavior and rolling RSI behavior directly by converting both slopes into normalized, unitless values and displaying them in the same pane.
The purpose of this script is to help users observe when price slope and RSI slope are moving together, moving against each other, or moving with low slope. It is a context and visualization tool only. It does not provide trade-action instructions and it is not a trading system.
What it shows
- Normalized price slope.
- Normalized RSI slope.
- A spread histogram between the two normalized slopes.
- Neutral slope-relationship states.
- A compact dashboard.
- Optional factual markers.
- A neutral Divergence Footprint layer.
How the calculation works
The script first calculates RSI using the selected RSI source and RSI length.
For price, it estimates a rolling linear-regression slope by comparing the current linear-regression value with the prior linear-regression value. The price slope is expressed as a percentage of the prior fitted price value so it can be compared across different symbols and price levels.
For RSI, the script estimates a rolling linear-regression slope from RSI itself. Since RSI is already bounded from 0 to 100, its slope is measured in RSI points.
The two slope series have different units, so they are normalized separately:
- price slope is divided by its own rolling standard deviation
- RSI slope is divided by its own rolling standard deviation
This converts both slopes into comparable unitless values.
The displayed spread is:
normalized price slope - normalized RSI slope
A positive spread means the normalized price slope is above the normalized RSI slope. A negative spread means the normalized price slope is below the normalized RSI slope.
No request.security() is used. The script uses current chart bars only and does not use lookahead or future data.
Why it is different from classic RSI divergence scripts
Many RSI divergence scripts compare confirmed price pivots with confirmed RSI pivots. This script takes a different approach.
It focuses on rolling slope behavior:
- price slope
- RSI slope
- normalized slope spread
- duration of the current disagreement episode
- peak spread during the current episode
- spread motion
- phase gap
Because it is slope-based, it is intended as a visual helper for observing disagreement between price movement and RSI movement. It is not a reversal detector and it does not forecast future price behavior.
Divergence Footprint
The Divergence Footprint is a neutral context layer that describes the current slope-disagreement episode.
It can show:
- whether slope disagreement is active
- how many bars the current disagreement episode has persisted
- the peak absolute spread reached during the current episode
- whether the absolute spread is expanding, cooling, or holding
- the phase gap between normalized price slope and normalized RSI slope
The phase gap is calculated by applying an angle transform to each normalized slope and then comparing the two angles. It is descriptive only. It is not a probability, score, forecast, or confirmation tool.
Optional phase-gap and duration plots are off by default to keep the pane clean.
State model
The dashboard uses neutral state names:
- Warming up
- Aligned upward
- Aligned downward
- Upper disagreement
- Lower disagreement
- Flat / low slope
- Mixed slopes
Upper disagreement means price slope is positive while RSI slope is negative.
Lower disagreement means price slope is negative while RSI slope is positive.
These states describe the current relationship between the two slopes. They do not imply reversal or continuation.
Markers and alerts
Markers are optional and off by default.
The marker display mode can be set to:
- Off
- Disagreement only
- All events
When enabled, markers are small and factual:
- P+ R- means price slope is positive while RSI slope is negative.
- P- R+ means price slope is negative while RSI slope is positive.
- Align marks slope agreement returning after a prior slope-disagreement episode, when enabled.
Alerts use the same neutral event logic:
- Upper slope disagreement
- Lower slope disagreement
- Slope agreement restored
- Spread crossed above threshold
- Spread crossed below threshold
Alerts are confirmed on bar close by default. Intrabar mode is available, but realtime values can update until the bar closes.
Dashboard
The default dashboard is compact and auto-sized. It is designed to stay readable without covering the indicator pane.
Compact layout shows:
- State
- Price slope
- RSI slope
- Spread
- Footprint
- Event mode
Standard and Detailed layouts add more context, including RSI value, spread motion, phase gap, disagreement bars, episode peak spread, active warm-up bars, and bar status.
Visual customization
Users can adjust:
- table layout
- table position
- table text size
- header text size
- table colors
- row backgrounds
- state-row highlighting
- plot colors
- histogram transparency
- marker colors
- background tint
- fixed table sizing, when desired
By default, fixed table cell sizing is off, so the dashboard auto-sizes to its content. Markers and background tint are also off by default to keep the pane clean.
Visual settings do not affect the calculations.
Live behavior and robustness
The script includes:
- automatic warm-up floor
- guarded denominators
- minimum normalized slope threshold
- optional spread-threshold filter for events
- optional minimum persistence for disagreement events
- optional event cooldown
- confirmed-bar event handling by default
- realtime / confirmed bar status disclosure in the table
If there is not enough history, or if the normalization denominator is not usable, the script avoids producing misleading slope states and displays safe fallback text such as n/a or Warming up.
Limitations
This script is not financial advice and not a trading system.
Slope disagreement can persist.
Slope disagreement can disappear without a major price move.
Slope disagreement does not predict reversal or continuation.
RSI is a bounded oscillator and can remain extended while price continues moving.
Default settings are starting points, not optimized settings.
Normalization length, slope length, smoothing length, and thresholds affect sensitivity.
Japanese notes
価格の傾きとRSIの傾きを正規化して比較し、両者の乖離をスプレッドとDivergence Footprintで表示する補助ツールです。通常のピボット型RSIダイバージェンス検出ではありません。売買判断や将来の値動きを示すものではなく、状況把握のための可視化ツールです。既定ではCompact表示、マーカーと背景色はオフ、確定足イベント処理がオンです。 Indikator

Multi-TimeFrame Multi-Indicator Dashboard🚀 Multi-Timeframe Multi-Indicator Market Structure Dashboard
🟢 Overview
The **Multi-Timeframe Multi-Indicator Dashboard** is an all-in-one market scanner designed to give traders an immediate, high-level view of an asset's trend across multiple layers of time. Instead of constantly flipping between charts or cluttering your workspace with dozens of indicators, this script compiles key moving averages, momentum oscillators, and volatility indicators into a single, highly readable table directly on your primary workspace.
This tool is optimized for **Equities, Forex, Crypto, Indices, and Commodities traders** who rely on multi-timeframe confluence to confirm high-probability trade setups and eliminate analysis paralysis.
---
🛠️ Key Features
**Multi-Timeframe Confluence Matrix:** Instantly track market structure across 6 default timeframes: **5M, 15M, 1H, Daily, Weekly, and Monthly**.
**8 Integrated Technical Metrics:**
**Trend Identification:** SMA 9, SMA 20, SMA 50, SMA 100, and SMA 200.
**Momentum & Volatility:** Relative Strength Index (RSI 50-line crossover), MACD Histogram (bullish/bearish momentum shifts), and SuperTrend.
**Fully Customizable Layout:** Toggle specific timeframes or indicators on/off via the user inputs menu to perfectly match your trading style. You can also change the table position (e.g., top-right, bottom-left) and text size.
**Smart Alert Engine:** Configure the script to send real-time alerts the exact moment an indicator shifts states (Bullish $\leftrightarrow$ Bearish) on your primary timeframes.
---
🎛️ Settings & Customization
1. **Dashboard Display:** Control the visibility, positioning anchor (top-right, bottom-right, top-left, bottom-left, middle-right, middle-left), and text scaling of the canvas table.
2. **Timeframes to Display:** Toggle individual columns to focus strictly on scalping or macro swing horizons.
3. **Indicators to Display:** Strip out unnecessary lines to match your personal strategy components.
4. **SuperTrend Settings:** Manually adjust the ATR Length and Multiplier inputs for tighter or wider trend bands.
---
📝 Disclaimer
This indicator is built purely for analytical visualization and informational purposes. It does not constitute financial advice. Always practice strict risk management and combine dashboard confirmation with your own broader trading plan. Indikator

MTF Stoch RSI Snapshot 9 Timeframe OverviewThis indicator provides a compact multi-timeframe view of the Stochastic RSI across 9 different timeframes:
1m, 5m, 15m, 30m, 45m, 1h, 2h, 6h, 1D
Instead of switching between charts, the script displays all selected timeframes side by side in a clean column layout. Each column represents one timeframe and shows the current position of the two Stoch RSI lines, making it easier to quickly understand momentum conditions across multiple market structures.
Main Features
Multi-timeframe Stoch RSI visualization
9 fixed timeframe columns
K and D lines shown inside each column
Gradient background based on oscillator level
Quick visual identification of overbought and oversold areas
20 / 50 / 80 reference levels
Optional numeric K and D values
Compact layout designed for fast market reading
How to Read It
Each column represents a timeframe.
The vertical position of the lines shows where the Stoch RSI currently is:
Near the bottom: oversold / weak momentum area
Around the middle: neutral zone
Near the top: overbought / strong momentum area
The background gradient helps identify the oscillator zone immediately, while the two plotted lines allow you to see the current relationship between K and D.
This is useful when you want to compare short-term and higher-timeframe momentum at a glance.
Typical Use Cases
Scalping confirmation
Multi-timeframe momentum alignment
Spotting overbought / oversold conditions across timeframes
Filtering entries based on higher-timeframe context
Quickly checking whether short-term movement agrees with broader market structure
Notes
This indicator does not generate buy or sell signals by itself.
It is intended as a visual decision-support tool and should be used together with price action, trend analysis, support and resistance, and proper risk management.
Disclaimer
This script is for educational and informational purposes only.
It is not financial advice. Always test any trading approach carefully before using it in live markets. Indikator

Indikator

Rsi centaurRSI centaur is a visual RSI-based oscillator designed to make momentum extremes, mean reversion zones, midline shifts, and confirmed divergences easier to read on one clean panel.
The indicator uses an adaptive RSI calculation based on Gaussian-weighted price changes. Instead of treating every past bar with the same importance, the RSI core applies a smooth weighting curve to recent gains and losses. This gives the oscillator a slightly different feel from a standard RSI while keeping the logic familiar for traders who already use momentum tools.
A signal line can be enabled to help read short-term smoothing. The panel also includes multiple dashed reference levels at 90, 85, 80, 75, 70, 50, 30, 25, 20, 15, and 10. These levels are not meant to be automatic buy or sell zones by themselves. They are visual areas where momentum may be extended, exhausted, or returning toward balance.
Main features:
- Adaptive Gaussian-weighted RSI oscillator
- Optional RSI-based signal line
- Configurable overbought and oversold guide levels
- Entry circles when RSI enters extreme zones
- Exit circles when RSI leaves extreme zones
- Midline dots when RSI crosses the 50 level
- Confirmed bullish and bearish RSI divergences
- Classic, hidden, and exaggerated divergence modes
- Alerts for entries, exits, midline crosses, divergences, and any signal
How to read it:
When RSI moves above 70, momentum is usually strong on the upside. If it continues into 75, 80, 85, or 90, the market is becoming more extended. A circle appearing when RSI comes back under one of these upper levels can be used as a warning that upside momentum is cooling.
When RSI moves below 30, downside momentum is usually strong. If it continues into 25, 20, 15, or 10, the market is becoming more extended to the downside. A circle appearing when RSI comes back above one of these lower levels can be used as a warning that bearish pressure is weakening.
The 50 line is used as a simple momentum balance level. Crosses above 50 suggest that the oscillator is moving back into bullish momentum territory. Crosses below 50 suggest that the oscillator is moving back into bearish momentum territory.
Beginner example 1:
Price has been falling and the RSI drops below 20. This does not automatically mean the market should be bought. A more conservative read is to wait until RSI crosses back above 20 or 25, then check whether price is also reacting from a support zone, previous low, or other market structure level.
Beginner example 2:
Price makes a new high, but the RSI makes a lower high. If a bearish divergence is confirmed, it can warn that the upward move is losing momentum. This is not a sell signal by itself, but it can help traders become more cautious with long positions or look for confirmation from price action.
Beginner example 3:
RSI crosses above 50 after spending time below it. This can show that momentum is shifting back toward the upside. If price is also above a key moving average or breaking a local structure level, the midline cross may support a bullish scenario.
About divergences:
Divergences are based on confirmed RSI pivots. Because pivots require confirmation, divergence labels appear only after the confirmation bars have closed. This makes them cleaner, but it also means they are not intended to mark the exact top or bottom in real time.
Suggested use:
Centaur RSI is best used as a momentum and context tool. It can help identify overextended conditions, momentum recovery, and possible divergence areas. It should be combined with price structure, trend direction, volume, or support and resistance analysis before making trading decisions.
Limitations:
No RSI tool can predict future price movement. Strong trends can keep RSI overbought or oversold for a long time. Divergences can also fail during high momentum markets. The indicator is designed to provide visual context, not guaranteed entries or exits. Indikator

RSI Overpowered [Cartel Console]# RSI Overpowered
RSI Overpowered is a momentum and volume-pressure analysis tool designed to provide a broader view of market strength by combining multiple volume-based market internals into a single composite oscillator framework.
Instead of relying solely on traditional price-based RSI calculations, this indicator incorporates Relative Strength Index calculations derived from Positive Volume Index (PVI), Negative Volume Index (NVI), and On-Balance Volume (OBV). These components are blended into a Composite RSI that aims to highlight shifts in participation, accumulation, distribution, and momentum conditions.
The indicator includes multiple layers of analysis:
• Composite RSI built from PVI, NVI, and OBV RSI values
• Smoothed signal line for trend and momentum comparison
• Secondary RSI oscillator derived from the composite calculation
• Configurable overbought and oversold zones
• Trend filtering using Supertrend methodology
• Bullish and bearish momentum signals with trend confirmation
• Divergence detection between price and the Composite RSI
• Dynamic area fills and visual momentum shading
• Built-in alert conditions for key events
### How It Works
The script first calculates three independent volume-based indexes:
• Positive Volume Index (PVI)
• Negative Volume Index (NVI)
• On-Balance Volume (OBV)
An RSI is then calculated for each component. The average of these values forms the Composite RSI, which is subsequently smoothed to reduce noise and improve readability.
A secondary RSI oscillator is generated from the Composite RSI itself, creating an additional layer of momentum analysis that can help identify shifts in directional strength.
### Trend Confirmation
To reduce counter-trend signals, the indicator incorporates a Supertrend-based trend filter.
Bullish momentum signals are generated only when the trend filter indicates a bullish environment.
Bearish momentum signals are generated only when the trend filter indicates a bearish environment.
This approach helps align momentum events with broader directional market conditions.
### Divergence Detection
The indicator automatically searches for potential divergences between price action and the Composite RSI.
Bullish divergence may occur when price forms a lower low while the Composite RSI forms a higher low.
Bearish divergence may occur when price forms a higher high while the Composite RSI forms a lower high.
Divergence signals are visualized directly on the oscillator using pivot-based detection logic.
### Visualization Features
• Composite RSI line
• Smoothed signal line
• Dynamic momentum fills
• Overbought and oversold markers
• Trend-filtered signal circles
• Divergence labels and connecting lines
• Momentum gradient visualization
### Alerts Included
• Bullish Momentum Signal
• Bearish Momentum Signal
• Overbought Event
• Oversold Event
### Notes
This indicator is intended for market analysis and educational purposes only. Signals, divergences, trend filters, and oscillator conditions should be used alongside a complete trading plan and appropriate risk management techniques.
No indicator can guarantee future market outcomes, and all market decisions remain the responsibility of the user.
Indikator

Multi-Oscillator Divergence ConfluenceMulti-Oscillator Divergence Confluence (MODC)
MODC is a three-layer divergence analysis indicator built to make oscillator divergence easier to read without turning the chart into a wall of labels.
The script evaluates RSI, MACD, Stochastic, CCI, MFI, and OBV at the same confirmed price pivots. This shared-pivot approach keeps oscillator votes aligned to the same market structure point instead of mixing unrelated oscillator pivots.
The goal is not to create a standalone buy/sell system. MODC is designed as a visual confirmation and context tool for traders who already use market structure, trend context, and risk management.
What makes MODC different
MODC is built as a three-layer system:
1. Always-on market context
The pane stays useful on every bar, even when no divergence signal is active.
It includes:
- A Confluence Pressure Wave from 0 to 100.
- A regime ribbon identifying Trending, Ranging, Volatile, or Quiet conditions using ADX and ATR percentile.
- An oscillator stack histogram showing whether more enabled oscillators are leaning bullish or bearish.
- Subtle pressure background zones when divergence pressure builds.
This layer helps show the “story” before a confirmed signal appears.
2. Informational Setup layer
In Exploratory mode, subtle setup dots appear when divergence pressure builds near a recent swing extreme.
A Setup is not a confirmed divergence signal. It is only a watch-list event.
Setup dots require:
- Pressure wave crossover.
- At least two oscillators leaning in the same direction.
- Price near a recent swing high or swing low using ATR-based proximity.
Setup alerts are disabled by default because Setups are pre-confirmation events and may never become confirmed pivot divergences.
3. Confirmed Valid and Elite signals
Confirmed signals are based on price pivots. A pivot only confirms after the selected Pivot Right Bars have closed.
Valid signals require:
- A confirmed price pivot.
- Minimum oscillator confluence.
- A base score threshold.
- Hidden divergences aligned with EMA context.
Elite signals require Valid conditions plus a stricter quality gate:
- EMA context.
- ADX trend-strength rules.
- Regime-adaptive score threshold.
- Optional volume gate.
- Optional historical forward-return proxy gate.
Signal labels are compact:
- RB = Regular Bullish
- HB = Hidden Bullish
- RS = Regular Bearish
- HS = Hidden Bearish
The number beside the label is the signal score. Visual intensity scales with score:
- 50-65 = muted
- 66-79 = clear
- 80+ = premium / Elite
How the scoring works
Scoring is intentionally conservative and always based on confluence out of six oscillators. Disabling oscillators does not inflate the score.
The score considers:
- Oscillator confluence count.
- Correct reversal or continuation context.
- Whether enabled oscillators are in exhaustion zones.
- Volume participation.
- Pivot spacing quality.
- Market regime alignment.
- A penalty when fewer than four oscillators are enabled.
Regular divergence and hidden divergence are treated differently:
- Regular Bullish = potential reversal from weakness.
- Regular Bearish = potential reversal from strength.
- Hidden Bullish = potential trend continuation above the EMA.
- Hidden Bearish = potential trend continuation below the EMA.
Display modes
Signal Density:
- Conservative: Elite only.
- Balanced: Valid + Elite. This is the default.
- Exploratory: Setup + Valid + Elite.
Visual Intensity:
- Minimal: pressure wave and confirmed badges only.
- Standard: pressure wave, regime ribbon, stack histogram, confirmed lines and badges.
- Cinematic: Standard mode plus Elite aura, candle tint, stronger atmosphere, and compact HUD stats.
Suggested usage
Start with:
- Signal Density: Balanced
- Visual Intensity: Standard
Use Layer 1 to understand market context. Treat Setup dots as early watch-list information only. Use Valid and Elite signals as confirmation points, not automatic entries.
For alerts, use the confirmed Valid or Elite alert conditions and set alerts to Once Per Bar Close.
Repaint and delay disclosure
Confirmed Valid and Elite outputs are evaluated on closed bars.
Because this script uses confirmed pivots, a divergence signal is only known after Pivot Right Bars have closed. The marker is drawn back on the pivot bar for visual alignment only. The signal was not actionable on the original pivot bar.
The Setup layer is different: Setups are informational pressure events, not confirmed divergence signals. They may never become confirmed signals.
Forward-return proxy disclosure
MODC includes optional forward-return proxy statistics for visible chart history. These are in-sample summaries only.
They are not a backtest. They do not include commissions, slippage, position sizing, stops, targets, or risk management. They should not be interpreted as expected future performance.
Limitations
Divergence can fail, especially during strong trends or news-driven moves. Oscillators are related momentum tools, so confluence does not guarantee independence. This indicator should be used with broader market structure, trend analysis, and a defined risk plan.
This script is for analysis and education only. It is not financial advice and is not a standalone trading system. Indikator

Indikator

Entropic Structure Bands [JOAT]Entropic Structure Bands
Introduction
Entropic Structure Bands is an open-source overlay indicator that dynamically selects the best-fitting Ordinary Least Squares regression window from recent structural pivots and surrounds that regression channel with entropy-adjusted deviation bands. The key innovation over standard regression channel indicators is twofold: the window length is selected optimally each bar by searching through available pivot anchors for the highest R² × log(N) quality score, and the band width is modulated by the current Shannon entropy of log returns — widening during chaotic periods and tightening during orderly ones.
Core Concepts
1. Optimal Regression Window Search
Rather than using a fixed lookback, the indicator records the bar index of every confirmed pivot high and low. Each bar, it tests several candidate windows anchored at recent pivots and selects the one that maximizes a performance score: R² multiplied by the natural log of the window length. This rewards both fit quality and window depth simultaneously:
float score = r2 * math.log(float(N))
// highest score wins; window updates every bar
if trial.perfScore > bestScore
bestScore := trial.perfScore
bestMdl := trial
The regression channel therefore adapts to where significant price structure has occurred, not to an arbitrary fixed period.
2. Shannon Entropy Modulation
Shannon entropy of the log return distribution is computed using a histogram-binning approach. Low entropy means returns are concentrated — price is moving in an organized, directional way. High entropy means returns are evenly distributed — chaotic, noisy conditions. Band width scales with entropy:
float entAdjDev = bestMdl.stdErr * (1.0 + entNorm * 0.8)
When entropy is low (below the configurable threshold), the market is classified as orderly and signals are enabled. This prevents signals from firing into chaotic conditions where regression bands have less predictive value.
3. Trend-Confluence Signal Logic
Signals require simultaneous alignment of six conditions: regression slope direction, price position relative to midline, recent pullback to the inner band, momentum confirmation, optional HTF slope alignment, optional ADX trending gate, and optional RSI gate. Each condition is individually toggleable. This multi-factor gate replaces simple band-crossover logic with a structured confluence requirement.
4. Forward Projection
The regression channel extends forward by a configurable number of bars beyond the right edge of the chart. A projection target label marks the estimated price at the end of the projection window based on the current slope and intercept. This gives visual context for where the regression model expects price to be if the current trend continues.
5. Z-Score Candle Coloring
Each candle's position within the channel is expressed as a Z-score (standard deviations from the regression midline). Candles far above the midline (overbought extension) are tinted bear-color; candles far below (oversold extension) are tinted bull-color. This provides immediate visual context for where price stands within its current regression structure.
Features
Dynamic regression window: Optimal window selected each bar from pivot anchor scan
R² quality gate: Configurable minimum R² prevents low-fit windows from being used
Entropy-adjusted bands: Band width scales with Shannon entropy of log returns
Multi-factor signal gate: Six independently configurable confluence conditions
Forward projection: Channel extended beyond right edge with target label
Z-score candle coloring: Candles painted by standard deviation position in channel
Inner and outer bands (±1σ, ±2σ): Gradient-filled channel layers
Glow-effect midline: Double-drawn center line with transparency for depth
10-row dashboard: R², entropy, Z-score, duration, HTF alignment, ADX, RSI, signal state
JSON webhook alerts: Alert messages formatted as JSON with EP, TP, SL, and R²
Input Parameters
Regression Engine:
Pivot Scan Horizon: Number of pivots to evaluate as regression anchors (default: 20)
Pivot Sensitivity: Left/right bars for pivot confirmation (default: 5)
Min R² Quality Gate: Minimum fit quality to use a window (default: 0.50)
Band Multiplier 1/2: Inner and outer band standard deviation multiples (default: 1.0, 2.0)
Entropy System:
Entropy Lookback: Bars for entropy calculation (default: 20)
Entropy Bins: Histogram bins for return distribution (default: 10)
Low Entropy Threshold: Threshold below which market is classified as orderly (default: 2.5)
How to Use This Indicator
Step 1: Read the Slope Bias
Check the dashboard's Slope Bias row. BULLISH or BEARISH indicates the current regression direction. This is the primary directional input.
Step 2: Check Entropy State
LOW (orderly) entropy is the condition under which signals are most reliable. HIGH entropy warns that the regression model is operating in a chaotic environment.
Step 3: Wait for Signal Labels
LONG and SHORT labels appear only when the full confluence gate is satisfied. Each label shows entry price, TP1, TP2, stop loss, and R² quality.
Indicator Limitations
Regression channels repaint historically when the optimal window shifts to a new anchor; use the confirmed-bar signals for non-repainting entry logic
In markets with very few pivots, the scan horizon may find suboptimal windows with low R²
Shannon entropy requires sufficient lookback to produce stable estimates
Originality Statement
The dynamic pivot-anchored regression window search using R² × log(N) scoring, combined with Shannon entropy-modulated band width and a six-condition confluence signal gate, is the original analytical architecture of this publication. No existing published Pine Script regression channel indicator implements adaptive window selection from pivot anchors with entropy modulation in this manner.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Regression channels are mathematical models of past price behavior and do not predict future price. Trading involves substantial risk of loss.
-Made with passion by jackofalltrades
Indikator

Adaptive Divergence Core [JOAT]Adaptive Divergence Core is an open-source Pine Script v6 oscillator that combines HMA-smoothed RSI behavior, adaptive percentile bands, confirmed divergence lines, and regime fills. It is designed to make oscillator extremes relative to the current chart sample instead of relying only on fixed overbought and oversold levels.
The script is useful when standard oscillator thresholds are too rigid. A market can stay strong or weak for long periods. Adaptive Divergence Core recalculates upper and lower fields from recent oscillator distribution, then plots confirmed divergence only after both price and oscillator pivots are confirmed.
Core Concepts
1. HMA-RSI Core
The oscillator blends RSI on raw price, RSI on HMA-smoothed price, and an HMA-smoothed RSI value. It is centered around zero for easier bullish and bearish reading.
hmaSource = ta.hma(src, hmaLen)
rawRsi = ta.rsi(src, rsiLen)
rsiOnHma = ta.rsi(hmaSource, rsiLen)
smoothedRsi = ta.hma(rawRsi, smoothLen)
core = (rsiOnHma * 0.58 + smoothedRsi * 0.42) - 50.0
2. Adaptive Percentile Bands
The upper and lower bands are calculated from rolling percentiles of the oscillator. This lets the bands adapt to the recent distribution of momentum.
upperRaw = ta.percentile_nearest_rank(core, percentileLength, upperPercentile)
lowerRaw = ta.percentile_nearest_rank(core, percentileLength, lowerPercentile)
3. Extreme Fields
Additional 95th and 5th percentile fields help show deeper oscillator stretch zones beyond the primary adaptive bands.
4. Confirmed Divergence Detection
Bearish divergence requires price to form a higher confirmed pivot high while the oscillator forms a lower confirmed pivot high. Bullish divergence requires price to form a lower confirmed pivot low while the oscillator forms a higher confirmed pivot low.
5. Regime Fill
The script fills the oscillator against zero and against its guide line, making positive and negative regimes easy to read without large markers.
Features
HMA-RSI oscillator: Blends raw RSI, RSI on HMA, and smoothed RSI
Adaptive percentile bands: Upper and lower thresholds adjust to recent oscillator behavior
Extreme bands: Additional outer fields for deeper stretch readings
Confirmed divergence lines: Divergences plot only after price and oscillator pivots confirm
Divergence labels: Small S Div and B Div labels are placed near confirmed divergence lines
Divergence line cap: Old lines are deleted to respect object limits
Optional candle tint: Can color chart candles from the oscillator pane setting
Dashboard: Shows core value, bands, divergence counts, and current field
Alerts: Divergence, band entry, and band release conditions
Input Parameters
Core:
Source: Price source
RSI Length: Base RSI period
HMA Price Length: HMA source smoothing
HMA RSI Smooth: Smoothing for the raw RSI component
Adaptive Bands:
Percentile Length: Lookback used for adaptive thresholds
Upper Percentile: Upper adaptive threshold percentile
Lower Percentile: Lower adaptive threshold percentile
Divergence:
Divergence Left Bars / Right Bars: Pivot confirmation settings
Maximum Divergence Lines: Object cap for plotted divergence lines
Divergence Labels: Shows or hides compact divergence labels
Visuals:
Tint Candles: Optional candle tint from the oscillator state
Show Dashboard: Shows or hides the compact top-right pane dashboard
Palette: Selects the local JOAT color preset
How to Use This Indicator
Step 1: Read the Core Relative to Zero
Values above zero show positive oscillator regime. Values below zero show negative oscillator regime.
Step 2: Use Adaptive Bands
When core enters the upper or lower adaptive band, momentum is stretched relative to its recent sample.
Step 3: Evaluate Divergence After Confirmation
Divergence lines are delayed by pivot confirmation. This is intentional and avoids projecting unconfirmed pivots into the past.
Indicator Limitations
Divergences confirm late because pivots need right-side bars
Adaptive bands depend on the selected lookback and can shift over time
Divergence is context, not a complete trade plan
During strong trends, oscillator stretch can persist for many bars
Originality Statement
Adaptive Divergence Core is original in its HMA-RSI blend, rolling percentile threshold system, confirmed pivot divergence logic, and compact dashboard. It uses public Pine v6 functions to build a distinct oscillator workflow.
Disclaimer
This script is provided for educational and informational use only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Oscillator divergences can fail or remain early for extended periods. Always use independent analysis and proper risk management.
-Made with passion by jackofalltrades
Indikator
