VWAP Confluence Engine | AnonycryptousVWAP Confluence Engine | Anonycryptous
Description & user manual
Why this indicator is different
Most traders run VWAP and RSI as two separate tools. VWAP tells you where price is relative to the volume-weighted average. RSI tells you about momentum. The problem is that these two readings constantly disagree, and when they do, the trader is left guessing which one to trust. Price sits above VWAP while RSI turns down. RSI pushes above its midline while price is still below VWAP. Every one of those moments is a decision made under conflicting information, and that is exactly where most intraday accounts bleed.
The VWAP Confluence Engine removes the guessing. Instead of showing you two panels that argue with each other, it forces agreement before it shows a directional state. Three independent measurements have to point the same way: price relative to VWAP, a volume-weighted RSI, and the Money Flow Index. When all three align bullish, the candle is painted in the bull color. When all three align bearish, it is painted in the bear color. When they disagree, the candle is neutral, and that neutral state is the most important output in the whole system. It is the market telling you it has not decided, and that you should not decide either.
This turns a chart full of conflicting signals into a single color-coded read. One glance tells you direction, momentum, and participation at the same time.
But direction alone is only half of a trade. A signal in the wrong location is a trap, no matter how clean the momentum looks. So the engine also maps support and resistance zones from swing pivots, flips those zones as price reclaims or loses them, and tells you in a dashboard where the nearest level sits above and below. A bull agreement firing directly into a heavy resistance zone is a very different proposition from the same agreement firing off a reclaimed support. The indicator gives you both pieces in one view.
And because a single timeframe is never the whole story, a compact multi-timeframe bar shows the same agreement logic across six timeframes at once. When every timeframe is the same color, the decision is easy. When they are mixed, that is information too.
Important notice
The VWAP Confluence Engine generates visual states based on VWAP position, volume-weighted momentum, money flow, and price structure. These states are not financial advice. They do not predict future price movement. They do not guarantee profitability. All trading decisions are made entirely by the user. Always manage your own risk. Always apply your own judgment.
1. Overview
The VWAP Confluence Engine is an overlay indicator that combines VWAP, a volume-weighted RSI, and the Money Flow Index into a single three-way agreement system, then places that agreement in the context of support and resistance structure and higher timeframe trend.
What it includes:
- Anchored VWAP with selectable reset period (hour, 4 hours, day, week, month)
- Volume-weighted RSI that scales price change by relative volume
- Money Flow Index as an independent confirmation layer
- Three-way agreement candle coloring: bull, bear, and neutral
- Gradient fill between VWAP and price that intensifies with distance
- Support and resistance zones from four independent pivot lengths, with zone flip logic
- Divergence detection with a box drawn on the price chart
- Higher timeframe filter that can gate signals to trade only with the larger trend
- Sentiment transition markers on the exact bar agreement changes
- Two configurable EMAs for optional extra confirmation, independent of the signal engine
- Main dashboard with agreement state, VWAP position, VW RSI, MFI, divergence, nearest levels, and a dedicated higher timeframe section
- Compact multi-timeframe bar across six configurable timeframes
- Optional background coloring
- Alerts for agreement changes and divergence
2. Core logic
2.1 The three-way agreement
Everything in this indicator is built around one question: do all three measurements agree?
The three measurements are:
- VWAP position. Is price above or below the anchored VWAP.
- Volume-weighted RSI. Is momentum above or below its midline.
- Money Flow Index. Is money flow above or below its midline.
A bull state requires price above VWAP, VW RSI above the midline, and MFI above the midline at the same time. A bear state requires all three below. Anything else is neutral.
This is deliberately strict. The indicator does not paint a color unless all three independent readings confirm each other. That is why the neutral state matters so much. It is not a weakness in the signal, it is the signal. It marks the stretches where price is chopping, where momentum and money flow disagree, and where forcing a trade usually ends badly.
2.2 Volume-weighted RSI
Standard RSI treats every bar equally. A move on thin volume and a move on heavy volume produce the same RSI value if the price change is the same. The volume-weighted RSI multiplies each bar's price change by its relative volume, the ratio of that bar's volume to a smoothed average, before the smoothing step. Moves on strong participation push the oscillator harder. Moves on weak participation barely register. The result reflects who was behind the move, not just that a move occurred.
2.3 Money Flow Index
The MFI is calculated from typical price multiplied by volume, producing positive and negative money flow that is converted to a 0 to 100 index. It responds differently from the VW RSI because it weights price level rather than price change. Requiring both to agree means two independent volume-based calculations have to arrive at the same conclusion, which is a stronger condition than either one alone.
3. VWAP and the fill
The VWAP is anchored to a selectable period. Day is the default and the most useful for intraday scalping, resetting at each session open. Week and month give longer-term institutional reference levels. Hour and 4 hours give shorter references for very fast trading.
The fill between VWAP and price is drawn with a gradient. Near VWAP it is almost invisible. The further price travels from VWAP, the more the fill intensifies, up to a configurable maximum. This gives an immediate visual sense of how stretched price is from its volume-weighted average without adding any clutter when price is hugging the line. The fill color follows the agreement state.
4. Support and resistance zones
The engine detects swing highs and lows using four independent pivot lengths, each of which can be toggled and adjusted. Instead of drawing thin lines, it draws zones with a thickness based on the average true range, so each level is a band rather than a single price.
The zones flip color based on where price is relative to them:
- When price is above a zone, it is drawn in the bull color, acting as support.
- When price is below a zone, it is drawn in the bear color, acting as resistance.
- When price is inside a zone, it is drawn in the neutral color, marking active interaction.
This flip logic reflects a basic principle of price structure: old resistance becomes new support once it is reclaimed, and old support becomes new resistance once it is lost. The zone color always tells you which role the level is currently playing.
The maximum number of zones shown per pivot length is configurable, so the chart stays as clean or as detailed as you want.
5. Divergence
Divergence is detected by comparing pivots in the VW RSI against pivots in price.
Bearish divergence: price makes a higher high while VW RSI makes a lower high. Momentum is weakening as price extends.
Bullish divergence: price makes a lower low while VW RSI makes a higher low. Selling pressure is fading even as price continues down.
Sensitivity controls the pivot lookback window. High uses a 3-bar window for more signals and more noise. Medium uses 5 bars. Low uses a 10-bar window for fewer, higher quality signals.
When a divergence confirms, a box is drawn on the price chart spanning the full high-to-low range of the swing involved, with a small label naming the divergence type. This shows not just that a divergence happened, but exactly where on the chart it occurred. The dashboard also reports the current divergence state.
6. Higher timeframe filter
The higher timeframe filter, when enabled, requires the higher timeframe to agree with the current direction before a candle can be painted bull or bear. On a lower timeframe this prevents counter-trend coloring during a pullback inside a larger trend.
The filter can be turned off entirely. With it off, candle coloring is based only on the current timeframe's three-way agreement. This is a deliberate choice left to the trader: strict alignment with the higher timeframe, or faster response on the current one. The dashboard always shows the higher timeframe bias regardless of whether the filter is gating signals, so the context is available either way.
7. Multi-timeframe bar
The multi-timeframe bar is a compact panel showing the agreement direction across six timeframes at once. Each slot is fully configurable, defaulting to 5m, 15m, 1h, 4h, D, and W. Each shows a colored triangle, up for bull, down for bear, a dot for neutral, with the timeframe label colored to match.
This is the fastest read in the indicator. When every timeframe is the same color, alignment is strong and the decision is simple. When the shorter timeframes are one color and the higher ones another, price is at a transition or in conflict, and the bar shows that at a glance.
8. Sentiment transitions
When the agreement state changes, a small marker is plotted on the exact bar where it happened. A triangle up when the state flips to bull, a triangle down when it flips to bear, a dot when it drops into neutral. These mark the moments the read changed, which is often more actionable than the state simply being green or red for many bars in a row.
9. Dashboard reference
The main dashboard updates on every bar and shows:
Agreement - the current three-way state: bull, bear, or hold.
VWAP - whether price is above or below the anchored VWAP.
VW RSI - current volume-weighted RSI value, colored by position.
MFI - current Money Flow Index value.
Divergence - active divergence state, if any.
Near Support - nearest zone level below current price.
Near Resist - nearest zone level above current price.
VWAP Anchor - the current VWAP reset period.
The higher timeframe section, which can be toggled, adds for the selected higher timeframe: its agreement state, VWAP position, VW RSI, MFI, whether the higher timeframe filter is active, and a warning if the current chart timeframe is below the recommended minimum for the system.
10. How to use
10.1 The core read
Wait for agreement. A bull or bear colored candle means all three measurements confirm each other. A neutral candle means they do not. The single most valuable habit this indicator encourages is to simply stand aside when candles are neutral. Those stretches are where the market has not chosen a direction, and where forcing a trade tends to produce the worst outcomes.
10.2 Location matters as much as direction
A colored candle tells you the direction is confirmed. The support and resistance zones tell you whether the location is any good. A bull agreement firing straight into a heavy resistance zone above is a low quality entry, even though the momentum looks clean. The same bull agreement firing off a zone that has just flipped from resistance to support is a far better proposition. Read the two together, never direction alone.
10.3 Using the higher timeframe
If you want to trade only in the direction of the larger trend, enable the higher timeframe filter. Colored candles will then only appear when the current and higher timeframe agree. If you prefer to react faster and judge context yourself, leave it off and use the higher timeframe section of the dashboard and the multi-timeframe bar as reference rather than as a hard gate.
10.4 Divergence as context
A divergence box is a warning that momentum and price have started to disagree, not an instruction to enter. The most reliable approach is to wait for a divergence box near a support or resistance zone and then look for the agreement state to actually flip before acting. Divergence can persist for many bars before price responds.
10.5 Illustrative bull scenario
Educational example only. Not a trading recommendation.
Price pulls back to a support zone that flipped from resistance a few sessions earlier. The multi-timeframe bar shows the higher timeframes already bullish. A bullish divergence box appears at the zone. On the next bar the agreement state flips to bull, painting the candle and plotting a transition triangle. Direction, location, momentum, and higher timeframe are all pointing the same way at the same place.
10.6 Illustrative bear scenario
Educational example only. Not a trading recommendation.
Price rallies into a resistance zone overhead. VW RSI and MFI are both rolling over. A bearish divergence box is drawn across the swing. The agreement state flips to bear and a transition triangle down prints. The higher timeframe section confirms a bearish bias. The setup has direction, structure, and higher timeframe agreement in one location.
11. Recommended use
This system is built for intraday trading and works best on the higher intraday timeframes rather than the very fastest ones, where noise overwhelms the agreement logic. The dashboard includes a timeframe check that flags when you are below the recommended minimum. Pivot settings for the support and resistance zones can be tuned per instrument and timeframe; smaller pivot lengths surface shorter-term levels, larger ones surface major structure.
12. Settings reference
VWAP: anchor period, line color, line width.
VW RSI: length, volume smoothing, midline, overbought and oversold levels, divergence sensitivity, divergence toggle and hold, divergence box toggle and transparency.
MFI: enable, length, midline.
HTF filter: enable, timeframe, RSI midline.
S/R zones: show toggle, four pivot lengths with individual show toggles, max zones per pivot, zone thickness by ATR, zone transparency.
Visuals: bull, bear, and neutral colors, candle coloring toggle, VWAP fill toggle and transparency, background color toggle and transparency, sentiment transition toggle.
Moving averages: two EMAs, each with show toggle, length, color, transparency, and width. The EMAs are an optional visual aid for extra confirmation only. They are not part of the agreement engine and do not influence candle coloring, signals, or any other calculation.
Dashboards: main dashboard show, position, size, HTF section toggle, HTF section timeframe. Multi-timeframe bar show, position, size, and six configurable timeframe slots.
13. Disclaimer
This indicator is provided for educational and informational purposes only. Nothing in this document or in the indicator output constitutes financial advice or any form of recommendation. Trading financial instruments involves substantial risk of loss. Past performance is not indicative of future results. You may lose all of your invested capital. Anonycryptous accepts no responsibility or liability for any losses incurred as a result of using this indicator. Indicator

Viprasol Liquidity Trail Matrix with Signal TargetOverview
The Viprasol Liquidity Trail Matrix with Signal Target is a trend-following signal engine that combines a volatility-adaptive trailing "liquidity" band structure with a Cardwell-style RSI regime filter, then turns confirmed pullback-and-continuation events into fully managed trade plans — entry, stop, three scaled targets, break-even logic, and an honest performance read-out. It is built for discretionary traders who want a single tool that answers three questions at once: what is the trend, is momentum backing it, and if a signal fires, exactly where are my entry, stop and targets.
This is an open-source, credited derivative. See the Credits & Originality section at the end — the trailing-matrix and Cardwell-RSI concepts are adapted from prior open-source work under CC BY-NC, with substantial original additions layered on top.
How It Works
Step 1 — Liquidity Trail Matrix (adapted)
A volatility trailing stop (ATR-scaled) defines the active trend and flips only when price closes decisively through it. Around that trailing line the script projects a ladder of "liquidity bands" spaced in ATR units, forming the retest zone price tends to revisit before continuation. In an uptrend the bands sit below price as stacked support; in a downtrend, above price as resistance. Because the spacing is ATR-based, the whole structure widens in volatile conditions and tightens in quiet ones.
Step 2 — Cardwell RSI Regime (adapted)
RSI is classified into a directional regime using Andrew Cardwell's range-rules principle: in a healthy uptrend RSI holds its 40-80 band, in a downtrend it works the 20-60 band. The regime flips bull when RSI thrusts through the upper trigger and bear when it breaks the lower trigger, holding state in between. Signals are only allowed in agreement with the regime, so the momentum context must confirm the trend before anything fires.
Step 3 — Confluence gating (adapted + new)
Before a signal is eligible it must pass a confluence gate: trend agreement, RSI regime agreement, an ADX minimum (chop filter), and an optional higher-timeframe bias pulled non-repainting (previous HTF bar, lookahead off). A minimum confluence score suppresses low-quality setups.
Step 4 — Retest entry + Signal Target (adapted)
When the confluence conditions hold and price pulls back into the band zone then closes back in the trend direction, a signal fires on the confirmed bar. The engine sets a structural stop, then projects TP1/TP2/TP3 as R-multiples of that risk and draws them on the chart with price and percent labels. Break-even logic moves the stop to entry after TP1.
Step 5 — Honest trade management + statistics (new)
Original additions in this release:
- One-trade-at-a-time engine: a trend flip no longer force-closes a trade. A position runs to its stop or final target, and a new entry only opens once the previous one is fully resolved. A reversal toggle restores the old flip-reversal behaviour if preferred.
- Max-bars-in-trade timeout so a lingering position cannot block the engine indefinitely.
- Hide-on-hit targets: each target line and label is removed the instant it is touched, keeping the chart clean.
- Staggered target labels so ENTRY/SL/TP1/TP2/TP3 never overlap.
- Session filter and post-stop cooldown (both optional, off by default).
- Honest performance panel: Avg R and Profit Factor computed on a transparent one-third-scale-out model, plus Max Drawdown in R and best/worst streak — so the win-rate (which counts a trade a win once TP1 is touched) is read alongside true expectancy.
- Suggested position size from an account-size and risk-percent input.
Non-repainting: trend, structure, signals and targets confirm at bar close; higher-timeframe data uses lookahead off on the previous bar.
Key Features
- Volatility-adaptive trailing liquidity-band matrix
- Cardwell RSI regime filter
- ADX chop filter + optional non-repainting HTF bias
- Range-distributed volume profile (POC / Value Area / low-volume nodes)
- Retest-continuation signals with confluence scoring
- Entry / SL / TP1-TP2-TP3 with R-multiple targets, break-even and hide-on-hit visuals
- One-trade-at-a-time management with optional reversal, timeout, session filter and post-stop cooldown
- Honest stats: win rate, Avg R, Profit Factor, Max Drawdown (R), streak, suggested size
- Multi-section dashboard, trend-tint candles, and a full alert suite with optional webhook JSON
How to Use
1. Add to any liquid symbol and timeframe. Confirm the dashboard reads a clear trend and RSI regime.
2. Wait for a LONG/SHORT marker — it only fires on a confirmed retest that passed the confluence gate. The number on the marker is the confluence score.
3. Trade the drawn plan: entry, stop, and TP1/TP2/TP3. The dashboard mirrors the live levels and, once trades close, shows Avg R / Profit Factor / Max DD so you can judge the edge honestly.
4. Tune selectivity with ADX Minimum and Min Score; tune trade behaviour with the reversal, timeout, session and cooldown settings.
Settings
- Trend Engine: ATR length, trail factor, band count and spacing
- Signals: min score, retest window, cooldown, integration mode, reversal toggle, session filter, post-SL cooldown
- RSI Regime: length, bull/bear triggers, confirm bars, integration mode
- Risk Management: SL mode, break-even, max bars in trade, account size, risk %
- Signal Targets: R-multiples for TP1/TP2/TP3
- Volume Profile / HTF / Dashboard / Colors: display and behaviour toggles, all with tooltips
Alerts
Dynamic alerts (ticker, timeframe, price, score, levels, RSI, regime) for: Long entry, Short entry, TP1/TP2/TP3 hit, break-even, stop-out, reversal, trend flips, and regime shift. Entry alerts can emit webhook-ready JSON.
Limitations & Disclaimer
This is an analysis and trade-planning tool, not a promise of profit. The built-in statistics are a session-level model (they reset on chart reload), assume idealised fills with no slippage or commission, and use a one-third-scale-out assumption for Avg R — real results differ. Signals confirm at bar close and do not repaint historically, but the still-forming bar is provisional until it closes. No indicator predicts the future; always combine with your own risk management. Nothing here is financial advice.
Credits & Originality (CC BY-NC 4.0)
This script adapts and builds upon prior open-source work and is published open-source, free, for non-commercial use, with attribution as required by the licence:
- "Liquidity Trail Matrix" by WillyAlgoTrader — the trailing liquidity-band structure concept.
- "Cardwell Range Analyze" by MarkitTick — the Cardwell RSI range-regime concept.
Changes made by Viprasol (this version): combined the two engines into one workflow and added the confluence gate, non-repainting HTF bias, range-distributed volume profile, R-multiple Signal Targets with break-even and hide-on-hit visuals, one-trade-at-a-time management with reversal toggle / max-bars timeout / session filter / post-stop cooldown, the honest statistics panel (Avg R, Profit Factor, Max Drawdown R, streak) and suggested position size, plus the multi-section dashboard and dynamic/webhook alerts.
Licence: Creative Commons Attribution-NonCommercial 4.0 (creativecommons.org). Educational, non-commercial use only. Not financial advice.
Indicator

Gaussian RSI | NAL1. Overview
Gaussian RSI | NAL is a smoothed momentum-regime indicator built around an RSI engine filtered through a Gaussian weighting model. Instead of plotting raw RSI, the indicator applies Gaussian smoothing to reduce noise and create a cleaner momentum line.
The signal is then refined with an optional Gaussian confluence filter. This adds a second smoothing layer that acts as a directional confirmation structure, helping separate stronger momentum regimes from weaker internal fluctuations.
2. Calculation
The indicator starts by calculating RSI from the selected source. This creates the base momentum reading used by the rest of the model.
The RSI is then passed through a Gaussian filter. The Gaussian filter weights the lookback window using a bell-curve style distribution, creating a smoother momentum line while still preserving directional movement.
A second Gaussian filter can also be applied as a confluence line. This creates a slower reference layer for the Gaussian RSI, allowing the indicator to judge whether the current RSI structure is aligned with its own smoothed trend.
The bullish condition requires the Gaussian RSI to move above the upper threshold. When confluence is enabled, the Gaussian RSI must also be above the Gaussian confluence line.
The bearish condition requires the Gaussian RSI to move below the lower threshold. When confluence is enabled, the Gaussian RSI must also be below the Gaussian confluence line.
The final state holds its previous direction when neither condition is active. This creates a cleaner regime output instead of constantly flipping to neutral between threshold zones.
3. Key Features
Gaussian-smoothed RSI momentum engine.
Optional Gaussian confluence filter.
Upper and lower threshold-based regime detection.
State-based candle coloring and RSI coloring.
Glow-style RSI plot, regime fills, confluence line, and transition labels.
Designed to reduce raw RSI noise while preserving momentum structure.
4. Use
Gaussian RSI is designed to identify when momentum begins shifting into a stronger bullish or bearish regime. A move above the upper threshold reflects bullish momentum pressure, while a move below the lower threshold reflects bearish momentum pressure.
The confluence filter adds an additional layer of structure by requiring the Gaussian RSI to align with its own smoother reference line. This can help separate cleaner momentum expansions from weaker internal movement.
This indicator is best used as a specialized momentum module within a complete strategy framework. Its role is to isolate a refined RSI-based momentum layer, where the full value comes from how the signal is integrated into a broader process for regime, timing, and execution.
Indicator

NSE/BSE Key Support & Resistance | MTF Pro-3.1Advanced pivot-based Support & Resistance with multi-timeframe confluence, strength scoring, volume-confirmed breaks, and adaptive zone visuals — built specifically for Indian stock market (NSE/BSE).
Overview
Most S&R indicators draw every pivot as an equal horizontal line and extend it infinitely to the right — creating cluttered, unreadable charts. This indicator solves that by scoring every level based on how strongly price rejected it , merging overlapping levels from different timeframes into a single confluence zone, and only showing the levels that actually matter.
Built and tuned specifically for NSE and BSE stocks, indices (Nifty 50, Bank Nifty, Sensex), and F&O instruments.
Key Features
🔷 Multi-Timeframe Support (4 TFs)
Enable up to 4 independent timeframes simultaneously. Each timeframe's pivots are detected separately and tagged in the label — , , , . You choose which timeframes to activate.
🔷 Cross-TF Confluence Merge
When two different timeframes produce a pivot at nearly the same price (within ATR proximity), they automatically merge into a single stronger zone instead of drawing two overlapping boxes. The label shows both sources — — and the level receives a confluence strength bonus. These merged zones are your highest-priority trade levels.
🔷 Advanced Strength Scoring
Every level carries a live strength score (★) that accumulates over time. Each touch is scored individually based on:
Wick size relative to candle range (how strongly price rejected)
Distance of close from the level (how convincingly price pulled back)
Whether volume was above average on that candle
Whether a strong body / engulfing candle formed
A barely touching wick scores ~0.5. A high-volume hammer rejection scores ~5–6. The score drives both zone opacity and zone width — strong levels appear bold and wide, weak levels fade visually.
🔷 Volume-Based Break Filter
A level is only invalidated when price closes beyond it and volume meets a configurable threshold (default: 1× average volume). Low-volume spikes through a level are ignored as false breakouts — the zone remains valid. Break alerts include the volume ratio so you know the conviction behind the move.
🔷 Adaptive Zone Visuals
No right extension — zones terminate at the current bar (valid) or the break bar (broken). No infinite lines cluttering the right side of your chart.
Opacity scales with strength — strongest levels are most visible, weakest levels are nearly transparent.
Zone width scales with strength — high-confidence zones are wider, giving a visual sense of the price area's importance.
🔷 Clean Labels
Each label shows the full picture at a glance:
21450.00 ★6.5 ×3
Timeframe source | Price | Strength score | Touch count
Settings Guide
SettingWhat it doesPivot LengthBars each side to confirm a pivot. Higher = fewer, stronger levelsMin StrengthHide levels below this score. Raise to show only confirmed levelsATR Merge DistanceHow close two levels must be to merge into oneInvalidationClose-based (reliable) or Wick-based (faster) break detectionVolume Break FilterRequire above-average volume to confirm a breakoutMin Volume MultiplierHow many times average volume needed to confirm a breakMax Active LevelsCap total zones shown on chartStrength → Zone OpacityToggle adaptive opacity based on strength score
How to Use
Bounce trades — price enters a green (support) zone → wait for a rejection candle with volume → enter above the rejection candle high, SL below zone bottom.
Rejection trades — price enters a red (resistance) zone → wait for a bearish candle with volume → enter below candle low, SL above zone top.
Breakout trades — price closes beyond a zone with high volume (break alert fires) → wait for pullback to the broken level → trade in the direction of the break.
Highest priority setups — zones tagged or with ★ score above 5 and multiple touches. These are the levels institutional money respects.
Alerts
The indicator fires alert() calls for:
Break confirmed — includes ticker, price, and volume ratio
Retest — includes ticker, price, and touch quality score
Set alert condition to "Any alert() function call" in PulseWire's alert dialog.
Notes
Designed and tested on NSE/BSE equities and F&O stocks
Works on any timeframe from 1 minute to Weekly
All calculations are original — pivot detection, strength engine, confluence merge, and volume filter are built from scratch in Pine Script v6 Indicator

Smart Money Concepts Engine [Quantum Algo]Smart Money Concepts Engine
====================================================
🔶 OVERVIEW
Smart Money Concepts Engine is an all-in-one smart money concepts (SMC) indicator that unifies market structure, order blocks, fair value gaps with inversions, liquidity, and premium and discount analysis into a single engine — and then goes one layer deeper than drawing tools: it scores the confluence of everything on the chart into a transparent zero-to-one-hundred Confluence Score, and narrates the current market read in plain language on a live dashboard.
Most smart money indicators draw concepts and leave the interpretation to you. This engine interprets. At any moment the dashboard answers the questions an institutional-style trader actually asks: What is the structure doing on both tiers? Has liquidity been taken? Is price in premium or discount? Are there fresh zones nearby? How much of this stacks together right now?
🔶 WHAT ARE SMART MONEY CONCEPTS?
Smart money concepts describe how large market participants leave footprints in price: they break structure to reveal intent (Break of Structure and Change of Character), they enter from unmitigated zones of prior aggression (order blocks), they leave imbalances behind fast moves (fair value gaps), they engineer stop runs above equal highs and below equal lows (liquidity sweeps), and they favor buying in the discount half of a range and selling in the premium half. This engine detects, draws, and tracks the life cycle of every one of these elements.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. Confluence Score. A transparent zero-to-one-hundred score built from five weighted, observable conditions: swing and internal structure alignment (25), correct premium or discount positioning for the bias (25), a fresh order block near price (20), imbalance confluence (15), and a recent liquidity sweep in the supportive direction (15). Every point is explainable — nothing is a black box.
2. Narrative engine. The dashboard writes the market read as a plain-language story that updates live, for example: "Bullish structure — sell-side taken — price in discount — demand below." No interpretation gap between what the chart shows and what it means.
3. Zone life cycle everywhere. Order blocks are born fresh, brighten when tested, and are removed the moment they are mitigated — the chart only ever shows zones that still matter. Fair value gaps flip into inversion zones when violated and are removed on the second violation. Equal highs and equal lows are struck through and relabeled the moment they are swept.
4. Volume-graded zones. Every order block is labeled with the relative volume of its origin candle (for example "Demand · 1.8× Volume"), so zone quality is visible at a glance.
5. Dual-tier structure. Swing structure (Break of Structure and Change of Character with lines and labels) and internal structure (compact context markers) are tracked as two independent bias states — and their agreement or disagreement feeds the score.
6. Graded zone-tap signals. When price returns to a fresh zone while both structure tiers align and price sits on the correct side of equilibrium, the engine prints a signal stamped with the live Confluence Score. High-scoring signals are highlighted in the accent color.
7. Anti-clutter engineering. Sweep detection carries per-level memory and a cooldown so the same level can never stack duplicate labels. Every drawing family is capped by input, keeping the chart readable and the auto-scale anchored to current price.
🔶 HOW IT WORKS
Market structure: Swing highs and lows are confirmed with a symmetric pivot lookback. A candle close through a confirmed swing level prints a Break of Structure (BoS) in trend continuation or a Change of Character (CHoCH) on reversal, on both the swing tier and the internal tier. All events are evaluated on closed bars only, so structure and signals do not repaint.
Order blocks: On every swing structure break, the engine locates the origin candle of the move — the last opposite candle before the impulse — and projects it forward as a demand or supply zone, graded by the relative volume of that candle. Zones brighten on first touch and are removed when price closes through them.
Fair value gaps: Three-candle imbalances above a minimum size (measured in Average True Range) are boxed. When price closes through a gap, it flips into an inversion zone acting in the opposite direction; a second violation removes it. Gap detection runs in the background for the Confluence Score even when drawing is disabled.
Liquidity: Consecutive swing highs or lows within a tolerance form Equal Highs (EQH) or Equal Lows (EQL) — resting liquidity lines that follow price. A wick through the level with a close back inside marks a sweep: the line is struck through, relabeled, and the event feeds the score. Single-pivot stop hunts are detected the same way, with per-level memory preventing duplicates.
Premium and discount: The range between the last confirmed swing high and low is mapped into premium, equilibrium, and discount, with deeper tinting in the extreme quartiles. The dashboard reports the live position as a percentage of the range.
Dashboard: A compact, fully themeable panel shows swing bias, internal bias, last event, range position, liquidity status, fresh demand and supply counts, imbalance count, the Confluence Score with a strength meter, and the narrative. Text size, position, and every color are adjustable, and long narrative text wraps inside its cell to keep the panel compact.
🔶 HOW TO USE IT
1. Works on any market — cryptocurrency, forex, gold, indices, stocks, futures — and any timeframe. The engine adapts structure size through the swing and internal length inputs.
2. Read the dashboard top to bottom: bias on both tiers, what just happened, where price sits in the range, and whether liquidity has been taken.
3. The highest-quality condition is full alignment: both tiers agree, a sweep has occurred against the move, price trades on the correct side of equilibrium, and a fresh volume-graded zone waits nearby — exactly what the Confluence Score measures.
4. Treat zone-tap signals as locations of interest stamped with their context quality, not as automatic entries. A score above eighty means nearly everything aligns; below fifty means the setup is thin.
5. Use inversion zones as polarity flips: a violated imbalance often acts as support or resistance from the other side.
6. Fair value gap drawing is off by default for a cleaner chart; enable it in settings — the score uses gap information either way.
🔶 SETTINGS
- Swing and internal structure lengths, structure events to keep.
- Order blocks: origin candle lookback and zones to keep.
- Fair value gaps: minimum size, inversion tracking, gaps to keep (drawing off by default).
- Liquidity: equal level tolerance and levels to keep.
- Premium and discount map with adjustable extension.
- Zone tap signals and signals to keep.
- All chart colors, plus a fully themeable dashboard: position, four text sizes, title band, background, frame, grid, and three text colors.
🔶 ALERTS
- Bullish / Bearish Break of Structure
- Bullish / Bearish Change of Character
- Buy-Side / Sell-Side Liquidity Sweep
- Demand Zone Tap / Supply Zone Tap (score-stamped)
- Fair Value Gap Inversion
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? No. Structure events, sweeps, inversions, and signals are evaluated on closed bars at confirmed pivots. Pivot confirmation introduces intentional lag equal to the structure length.
What does the Confluence Score mean? It is a transparent sum of five weighted conditions, not a prediction. It measures how much of the smart money checklist is currently aligned — a context meter, not a probability of profit.
Why did an order block disappear? It was mitigated: price closed through it. The engine removes dead zones so the chart only shows levels that still matter.
Why do sweeps print only once at a level? Each swing level carries sweep memory and a cooldown, preventing the duplicate label stacking common in liquidity tools.
Which markets and timeframes work best? All markets with candle data. Higher timeframes produce larger, cleaner structures; the internal tier keeps lower timeframes readable.
🔶 CREDITS
The smart money concepts implemented here — order blocks, fair value gaps, liquidity sweeps, break of structure, change of character, and premium and discount — are trading concepts popularized by the Inner Circle Trader methodology of Michael J. Huddleston, with intellectual roots in the market logic of Richard D. Wyckoff. This script gratefully acknowledges that lineage. The confluence scoring model, the narrative engine, the zone life cycle system, the volume grading, the anti-duplication sweep memory, and all code in this script are original work
🔶 LIMITATIONS
Structure detection is only as good as the chosen pivot lengths; very noisy instruments may need larger values. Volume grading is less meaningful on symbols with unreliable volume reporting. Removed zones are not kept as historical artifacts. The Confluence Score measures alignment, not outcome. No indicator replaces independent analysis.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past behavior of any structure event, zone, or signal does not guarantee future results. Trading involves substantial risk. Always do your own research and manage risk independently. Indicator

EMA Pro+ Suite# EMA Pro+ Suite
**A multi-layer EMA confluence framework for reading market state at a glance.**
---
## What It Is
EMA Pro+ Suite is an overlay indicator built around three exponential moving averages — a Fast (10), Mid (20), and Slow (50) EMA — organized into a structured three-layer state engine that tells you the current market regime, momentum direction, and whether price is in or out of alignment with that regime. Rather than treating each EMA in isolation, the suite reads them together as a system and surfaces a single, coherent market state at all times.
A corner dashboard table updates in real time, giving you an instant read on bias, momentum, alignment, EMA slopes, and price extension — without having to scan the chart manually.
---
## How It Works
The indicator evaluates three distinct layers on every bar:
**Layer 1 — Bias (Trend Regime)**
Defined by price relative to the 50 EMA. Price above = bullish bias. Price below = bearish bias. This is the macro filter — it determines which direction setups should be taken in.
**Layer 2 — Momentum**
Defined by the 10 EMA relative to the 20 EMA. When the fast EMA is above the mid EMA, momentum is bullish. When below, momentum is bearish. Momentum alignment with bias is the confirmation layer.
**Layer 3 — Price vs Fast EMA**
When bias and momentum are aligned but price is on the wrong side of the 10 EMA, the indicator flags a potential pullback or exhaustion condition. In a full bull regime, price dipping below the 10 EMA may represent a high-quality entry opportunity — or an early warning of trend exhaustion. Context determines which.
**Slope Engine**
Each EMA is evaluated for slope using a configurable lookback. RISING / FLAT / FALLING is displayed per EMA in the dashboard. A momentum flip on flat EMAs carries significantly less weight than one on rising or falling EMAs — this is critical for filtering out noise in ranging conditions.
**Price Distance from 50 EMA**
Tracks how extended price is from the slow EMA as a percentage. Large positive or negative readings flag mean reversion risk.
**Bar & Background Coloring**
- Green background + green bars = full bull alignment
- Red background + red bars = full bear alignment
- Yellow bars = conflicting bias and momentum (mixed / transitional state)
- Aqua bars = bull regime, price pulling back below 10 EMA
- Fuchsia bars = bear regime, price popping above 10 EMA
**Cross Signals**
- `M↑` (green) — 10 EMA crossed above 20 EMA in bull zone. Aligned, higher conviction.
- `M↓` (red) — 10 EMA crossed below 20 EMA in bear zone. Aligned, higher conviction.
- `M↑ 🐻` (orange) — Bullish momentum flip firing in bear zone. Counter-trend, lower conviction.
- `M↓ 🐂` (orange) — Bearish momentum flip firing in bull zone. Counter-trend, lower conviction.
**Multi-Timeframe Support**
All three EMAs can be calculated on a higher timeframe and plotted on the current chart. Use this to anchor your bias to the HTF structure while reading entries on a lower timeframe.
---
## Possible Ways to Use It
**Trend Following**
Wait for full alignment — green background, green bars, all three slopes RISING. Only look for long entries. Use the 10 EMA pullback (aqua bars) as a potential entry trigger. Reverse logic for shorts.
**Momentum Flip Entries**
Use aligned `M↑` / `M↓` signals (green/red) as entry triggers when bias and slope confirm. Discard or fade counter-trend orange signals unless you have a specific reason to trade against the regime.
**Regime Filter for Other Systems**
Use the bias layer (price vs 50 EMA) as a filter for another strategy. Only take long signals from your primary system when EMA Pro+ shows bull bias, and vice versa.
**HTF Confluence**
Set the EMA Timeframe to a higher timeframe (e.g. 4H or Daily) while trading on a 15m or 1H chart. The dashboard will show the HTF regime, giving you a structural anchor for your intraday reads.
**Avoiding Chop**
When all three slopes read FLAT and bars are yellow (mixed alignment), the market is in a transitional or ranging state. Consider standing aside or reducing position size until a clear regime re-establishes.
**Mean Reversion Awareness**
When Dist 50 shows a large positive or negative reading, price is extended from the slow EMA. In trending markets this can persist — but it raises the bar for adding to positions and flags potential snapback risk.
---
## Settings
| Setting | Description |
|---|---|
| EMA Timeframe | Blank = current chart timeframe. Enter any TF (e.g. 60, 240, D) for MTF mode. |
| Fast / Mid / Slow EMA Length | Default 10 / 20 / 50. Fully adjustable. |
| Slope Lookback | Number of bars used to calculate EMA slope. Increase on lower timeframes to reduce flat readings. |
| Show EMA Lines | Toggle the three EMA plots. |
| Show Bias Background | Toggle the green/red background tint. |
| Color Bars by State | Toggle bar coloring. |
| Show Cross Signals | Toggle M↑ / M↓ labels on chart. |
| Show Dashboard Table | Toggle the corner HUD. |
| Table Position | Top Right / Top Left / Bottom Right / Bottom Left. |
| Bar Close Reminder Alert | Fires a reminder alert on every bar close to check the setup. |
---
## Alerts
- Momentum Flip Bullish — Bull Zone (aligned)
- Momentum Flip Bullish — Bear Zone (counter-trend)
- Momentum Flip Bearish — Bear Zone (aligned)
- Momentum Flip Bearish — Bull Zone (counter-trend)
- Price Reclaimed 50 EMA (bias flipped bullish)
- Price Lost 50 EMA (bias flipped bearish)
- Bull Pullback Signal (bull regime, price below 10 EMA)
- Bear Pullback Signal (bear regime, price above 10 EMA)
- Bar Close Reminder
---
## Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any asset. All trading involves substantial risk of loss. Past performance of any signal, strategy, or system is not indicative of future results.
EMA Pro+ Suite is a tool to assist with technical analysis — it does not predict price, guarantee accuracy, or remove the inherent uncertainty of financial markets. No indicator eliminates risk. You are solely responsible for your own trading decisions.
Always conduct your own research, apply proper risk management, and consider consulting a licensed financial professional before making any trading decisions. Only trade with capital you can afford to lose. Indicator

Fib OTE + FVG Confluence [Viprasol]Fib OTE + FVG Confluence — high-probability ICT entries where two edges agree
═══════════════════════════════════════════════════════════
THE IDEA
═══════════════════════════════════════════════════════════
A Fair Value Gap is a good entry zone. An OTE (Optimal Trade Entry) retracement is a
good entry zone. But an FVG that sits INSIDE the OTE — that's the setup ICT traders
actually wait for. This tool maps the higher-timeframe OTE / premium-discount zone,
detects Fair Value Gaps, and does the one thing that matters: it highlights and ALERTS
you when price taps an FVG that lands inside the OTE.
═══════════════════════════════════════════════════════════
HOW IT WORKS
═══════════════════════════════════════════════════════════
1. HTF OTE MAP — From the previous candle range of your chosen higher timeframe
(non-repainting), it builds the Fibonacci map: the OTE band (default 0.618-0.786),
the equilibrium line (0.5) that splits premium from discount, and a directional bias
(Auto from the last HTF candle, or force Long/Short). In a long bias the OTE sits in
discount (below equilibrium) — where you want to buy; in a short bias it sits in
premium.
2. FAIR VALUE GAPS — Standard 3-candle imbalances (bullish `low > high `, bearish
`high < low `), with an optional displacement filter and a minimum-size filter to
cut noise. Each gap is drawn as a box and tracked until filled (Wick / Close /
Average mitigation).
3. CONFLUENCE — the point of the tool. A gap is "confluent" when it overlaps the OTE
band (strict) or, in the looser mode, when a bullish gap sits in discount / a bearish
gap sits in premium. Confluent gaps are highlighted with a ★. Turn on "Show ONLY
Confluent FVGs" and the chart reduces to just the high-probability zones.
4. ALERTS — Get notified when price TAPS a confluent FVG (and optionally when one
forms). One alert, delivered via app / email / SMS / webhook (Text or JSON message).
═══════════════════════════════════════════════════════════
ALERTS SETUP
═══════════════════════════════════════════════════════════
Create one alert → Condition: "Fib OTE + FVG Confluence" → "Any alert() function call",
then pick your delivery (app/email/SMS/webhook) in the dialog. Switch Message Format to
"JSON (webhook)" for bot/automation-friendly output. Messages carry direction, event
(FORMED/TAPPED), and the gap's price range.
═══════════════════════════════════════════════════════════
SETTINGS
═══════════════════════════════════════════════════════════
• HTF Fibonacci / OTE: timeframe, bias (Auto/Long/Short), OTE start/end, show map, colors.
• Fair Value Gaps: min gap %, displacement filter, fill mode, show-only-confluent, colors, box extend.
• Confluence & Alerts: confluence rule (Inside OTE / Favored half), highlight color, form/tap
alert toggles, frequency (once-per-bar-close = no repaint), Text/JSON.
═══════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════
1. Set the OTE higher timeframe (e.g. Daily on an intraday chart).
2. Let Auto bias pick direction, or force Long/Short to your plan.
3. Enable "Show ONLY Confluent FVGs" to see just gaps inside the OTE.
4. Create the alert and wait for a tap of a ★ confluent gap — that's your cue to do
your own analysis and manage risk.
═══════════════════════════════════════════════════════════
LIMITATIONS — PLEASE READ
═══════════════════════════════════════════════════════════
• This is an awareness / confluence tool, not a strategy or signal service — no buy/sell
calls. A confluent tap is a location of interest, not a guarantee.
• The OTE map uses the previous HTF candle range and updates as new HTF candles form;
it reflects current context, not a fixed historical grid.
• FVGs are detected on the chart timeframe; confluence is judged against the OTE active
when each gap forms.
• Not financial advice. Trade at your own risk.
═══════════════════════════════════════════════════════════
CREDITS & ORIGINALITY
═══════════════════════════════════════════════════════════
Fair Value Gaps, OTE, and premium/discount are public ICT concepts. All code here — the
non-repainting HTF OTE map, the FVG detection and mitigation, the confluence logic, and
the alert engine — is original Viprasol work written from the standard definitions. No
third-party Pine code is reused.
Indicator

Multi-Axis Confluence Matrix Adaptive MTF & Forward CalibratedMulti-Axis Confluence Matrix — Adaptive MTF & Forward-Calibrated
What it is
A confluence oscillator that scores agreement across five independent information axes, each measured on three adaptively-resolved timeframes, then weights every axis by its own forward-measured edge on the current symbol so the score self-corrects instead of treating all inputs as equally reliable. It separates the two kinds of multi-timeframe agreement that most stacks wrongly merge, gates direction with a higher-timeframe bias, and reports the whole state in one plain-language verdict panel.
The plotted line reads like a conventional oscillator (−100 to +100, with strong-zone bands and price-chart BUY/SELL signals), so a non-technical user can interpret it at a glance — while the engine underneath is doing edge-weighted, multi-timeframe, forward-calibrated confluence.
Why these components are combined (mashup rationale)
Stacking indicators usually produces false confluence: five momentum tools in different clothes vote the same bet five times, and it looks like five confirmations when it is really one. This script is built specifically to avoid that, and every layer removes a distinct failure of naive stacking. They ship as one engine because direction, certainty, and agreement are one decision — splitting them across separate scripts would lose the cross-checks below.
1. Five orthogonal axes, each from a different data source. Agreement only carries information if the axes are independent. Each axis reads a different thing:
Momentum — price (normalized MACD-histogram sign)
Stretch — price vs an adaptive fair value (z-score of the deviation)
Order flow — signed volume (sign of a bounded cumulative volume-delta z-score)
Fear — an implied-volatility index (direction of a negated IV trend)
Cross-market — a correlated leader instrument (signed momentum), off by default
Because no two axes share an input, four of them agreeing is four independent witnesses, not one witness repeated.
2. Vote / gate split. Directional axes vote long or short. Context does not vote — it scales conviction or vetoes. A volatility-regime measure and a trend-efficiency measure only shrink conviction; the higher-timeframe bias only decides which side is allowed. High volatility is neither bullish nor bearish, so folding it into the direction sum would inject bias. Keeping context as a multiplier rather than an addend is the single thing that stops the stack collapsing into "momentum with extra steps."
3. Two separate confluence counts, never summed.
Method confluence = how many independent axes agree on the signal timeframe (the rare, high-information agreement).
Scale confluence = how many timeframes one axis agrees on (robustness/timing only — the same signal at different resolutions, not a new vote).
Merging them lets three timeframes of one axis drown out a contradicting axis. They are reported on separate rows so you can see which kind of agreement you actually have.
4. Adaptive multi-timeframe resolution. The bias / signal / trigger timeframes are derived as multiples of the chart timeframe, clamped and snapped to real frames. The "bias-above, vote-between, trigger-at" relationship is preserved on any chart, instead of fixed frames that are only correct on the one chart they were tuned for.
5. Per-axis forward calibration (the core original component). Each axis is calibrated on each timeframe by a triple-barrier outcome (profit barrier / stop barrier / time horizon), with sample-uniqueness weighting and recency decay, reported as an edge over a barrier-matched base rate with a Wilson confidence interval. Each axis then votes weighted by its own edge lower-bound, so an axis that is not paying on the current symbol contributes little and cannot bias the score merely by being present. A small weight floor keeps the engine responsive (edge tilts the score rather than fully gating it); set the floor to zero for strict gating.
6. Higher-timeframe bias gate. The slow frame sets which side is allowed and does not vote, which blocks the counter-trend entries that punish mean-reversion approaches.
Remove any one layer and the stack loses a check it cannot recover. That is the justification for combining them.
How to use it
The line lives in −100..+100. In the green zone = strong bullish confluence; red zone = strong bearish; mid = no edge. Read it like any oscillator.
BUY / SELL triangles print on the price chart only when the gated, edge-weighted verdict fires (method confluence + conviction + bias gate all pass). Triangles with text = high conviction; without text = weaker. A latch + cooldown gives one clean mark per swing, not a cluster.
Bull / Bear divergence is drawn on the score line, spaced by a cooldown, and suppressed only when it directly contradicts a high-conviction opposite verdict (early-reversal divergences against a weak score are kept).
The verdict panel (top-right, on by default) states the action in plain language: tier, what to do, method/scale confluence, conviction, calibration warm-state, and which side the higher-TF bias allows.
The axis × timeframe matrix is an advanced view, off by default — turn it on to inspect each axis's arrows across timeframes and its measured edge. A Key-info table (Compact by default, Pro for full detail) summarizes the live state on the left.
Any market: the price source, volume source (with a borrow-symbol option for instruments that report no volume), the implied-volatility symbol, and the cross-market leader are all inputs in the settings. Defaults suit a major index future; change the symbols for any market, or clear the fear / cross-market symbols to drop those axes (the score re-weights over the axes that remain).
What makes it original
The multi-axis matrix, the vote/gate split, the dual (method vs scale) confluence accounting, the adaptive timeframe resolution, and the per-axis-per-timeframe forward edge-weighting are this script's own construction. It is not a re-skin of a single classic indicator — it is an engine for organizing several independent reads into one honest, self-correcting confluence score.
Outputs (Data Window)
Generic, identifiable names for use by other scripts: direction, conviction, method confluence, scale confluence, higher-TF bias, regime direction, edge, edge lower-bound, and sample count.
Non-repainting
Every off-chart-timeframe read uses confirmed previous bars with lookahead disabled; votes confirm on bar close; every calibrated statistic is forward-measured at fixed barriers on confirmed bars. The live bar is provisional, as with any indicator.
Concept credits (techniques operationalized here — not third-party code)
MACD: Gerald Appel. Bands / %B style stretch: John Bollinger. Cumulative volume delta and divergence: standard order-flow practice. Implied-volatility index methodology: CBOE. Trade-side from standardized returns (Bulk Volume Classification): Easley, López de Prado & O'Hara. Triple-barrier labeling and sample uniqueness: López de Prado. Wilson score interval: Edwin B. Wilson. Efficiency-ratio regime: Perry Kaufman. The matrix architecture and the calibration/weighting scheme are the author's own.
Disclaimer
Research and education only. This is not financial advice, not a recommendation, and not a guarantee. The axes are deliberately compact reads of their concepts. Calibration is in-sample, forward-measured at fixed barriers, with no costs, slippage, or guaranteed fills. Indicators describe past behavior; they do not predict the future. Trading carries risk of loss. Test out-of-sample and make your own decisions. Indicator

Multi-Factor Divergence MatrixMulti-Factor Divergence Matrix
OVERVIEW
Most divergence tools read one oscillator against price. The Multi-Factor Divergence Matrix reads fifteen independent lenses at once, standardizes them onto a single shared standard-deviation (sigma) scale, and then organizes them into a structure: lenses roll up into 14 aspects (distinct questions), aspects roll up into 6 families (factor classes), and families roll up into one composite. Divergence is detected five different ways on that construction, and a built-in calibration harness scores whether each method has actually carried any edge on your instrument.
The core idea: a price move is more trustworthy when many independent reads confirm it, and a divergence is more meaningful when it shows up across different kinds of information — not just three flavours of momentum that all say the same thing.
WHY THE COMPONENTS BELONG IN ONE SCRIPT (mashup rationale)
This is a deliberate multi-factor engine, not indicators stacked side by side. Every part answers the same question — is this price move confirmed, and by how broad a set of independent reads? — and each fixes a blind spot of the others:
A single oscillator can only diverge one way. Fifteen lenses across six families let price be unconfirmed by momentum, by trend efficiency, by location, by volatility, by order flow, or by cross-asset carry — independently.
Raw factor-stacking double-counts. Standardizing every lens to one sigma scale makes them directly comparable, and grouping correlated lenses into aspects (then families) means consensus is counted where it carries independent information, not where it merely repeats.
One detection method misses what another catches. Pivot divergence is precise but lags; slope fires earlier; correlation is continuous; sequential catches structured exhaustion; the intra-family split is often the very first crack. Run together, they cover the ways divergence actually appears.
Assertions are cheap. The calibration harness ties the whole construction back to realized forward outcomes, per method, so the tool reports whether its own signals carry edge rather than claiming they do.
Remove any one layer and the central question is answered less completely — which is what makes them one tool.
HOW IT WORKS
The 15 lenses → 14 aspects → 6 families
Momentum — oscillatory (RSI + Know Sure Thing), velocity (low-lag two-pole strength), stationary (fractional-difference of log price)
Trend / Efficiency — path quality (Kaufman efficiency ratio), extension (SAR distance in ATR units), rollover (dual-horizon efficiency gap)
Location / Mean — volume-anchored (VWAP deviation), geometric (linear-regression deviation)
Volatility — realized expansion (directional range), implied-vs-realized (variance-risk-premium spread)
Flow / Volume — net pressure (cumulative signed-volume delta, lower-timeframe estimated), volume-weighted (Money Flow Index)
Cross-Asset — carry (futures-vs-spot basis), fear (volatility-index vs price)
Each lens is z-scored over a rolling window (up = bullish). Correlated lenses that answer the same question (e.g. RSI and KST) are averaged into one aspect — the anti-redundancy step. A family agrees only when a majority of its filled aspects align; when its aspects disagree it is flagged SPLIT.
Two consensus axes, both at family resolution, auto-scaled by timeframe
Extreme-count — how many families are stretched to their extreme.
Divergence-count — how many families are diverging from price right now.
Five detection methods
Pivot — regular, hidden, exaggerated (equal-extreme) and triple divergence on the composite.
Slope — price-vs-composite regression-slope sign disagreement (fires earlier than pivots).
Correlation — rolling price-composite correlation flipping negative (continuous, always-on).
Sequential — a structured RSI exhaustion pattern (three deeper pushes, then a turn).
Leading — the intra-family SPLIT, often the first warning before a family flips.
Calibration. Each event is a directional hypothesis, queued and resolved a fixed horizon later versus an ATR threshold, then compared with the unconditional same-horizon base rate. The dashboard reports, per method: number of events, Hit %, and Edge = Hit − Base. Events are logged and resolved on confirmed bars only.
HOW TO USE
The dashboard has two modes. Compact (default) shows the decision essentials: the composite zone, the two consensus counts (Stretched X/6 · Diverging Y/6), a one-line family summary (bull / bear / split), and the single best-calibrated method with its Edge. Pro expands this to every family row (vote arrow, aspect agreement, SPLIT flag) and every per-method calibration class. In both, a high divergence-count backed by clean family agreement is strong context; the Edge figure tells you whether that read has actually preceded a move on this symbol and timeframe. Treat consensus as context, never a standalone trigger.
UNIVERSAL ACROSS MARKETS
Price, high, low, the VWAP source, the spot reference symbol and the volatility symbol are all inputs, so the engine runs on any instrument and timeframe. Volume-based lenses (VWAP, flow, MFI) need real traded volume — use the futures contract, not a cash index. Defaults target NSE NIFTY index futures intraday with an NSE:NIFTY spot reference and NSE:INDIAVIX; lenses without data quietly drop out and the consensus scales to whatever stays active.
ORIGINALITY
The individual techniques are public and credited below. The original work is the integration: standardizing fifteen heterogeneous reads onto one sigma axis, the aspect → family → composite roll-up that counts agreement only where it is independent, the dual extreme-and-divergence consensus, the surfacing of intra-family disagreement as a leading signal, and the forward base-rate calibration over every detection method. No third-party Pine code is reused.
CONCEPT CREDIT
RSI, Parabolic SAR, ATR, DMI — J. Welles Wilder. Know Sure Thing — Martin J. Pring. Efficiency Ratio — Perry J. Kaufman. Money Flow Index — Quong & Soudack. VWAP and cumulative volume delta — standard public market-microstructure concepts. Fractional differentiation — the long-memory / stationarity literature (Hosking 1981; adapted for finance by M. López de Prado). Two-pole low-pass smoothing — John F. Ehlers. The basis is explained by the cost-of-carry framework (N. Kaldor 1939; H. Working 1948–49). Variance risk premium — the implied-minus-realized literature. Linear regression and price/oscillator divergence are long-established public techniques. Not affiliated with, nor endorsed by, any third party.
HONESTY / LIMITATIONS
Consensus is context, not a trigger. Independence is managed, not perfect — lenses inside a family still share inputs, which is exactly why consensus counts families and aspects rather than raw lenses, and why a high count is never proof. The Edge figures are in-sample, close-to-close, with overlapping forward windows and no costs — descriptive context, not a verified backtest. An Edge near zero, negative, or unstable across timeframes is the harness honestly telling you the method has no reliable edge on that instrument; do not tune parameters until it turns green — that is curve-fitting. Divergence and reversals confirm a few bars after their pivot (inherent to honest pivot detection). Nothing here predicts price.
DISCLAIMER
Research and educational tool only. NOT financial advice and NO guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading carries risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script. Indicator

APEX Trend & Signal Engine [Viprasol]APEX Trend & Signal Engine — Regime-Aware Dual-Mode Toolkit
═══════════════════════════════════════════════════════════
THE PROBLEM IT SOLVES
═══════════════════════════════════════════════════════════
The single most expensive mistake in trading is using the wrong style for the
conditions — trend-following a sideways range (death by a thousand whipsaws), or
mean-reverting a strong trend (fighting a freight train). Most indicators apply ONE
style blindly and let you find out the hard way.
APEX reads the market REGIME first, tells you which style fits right now, and only
fires signals that match. When the market is trending it trend-follows; when it's
ranging it mean-reverts. Same tool, opposite logic, applied at the right time.
═══════════════════════════════════════════════════════════
HOW THE FOUR PILLARS WORK TOGETHER
═══════════════════════════════════════════════════════════
Every trade decision rests on four questions, and APEX answers each:
1. BIAS — long or short? A multi-factor Trend Midline (your choice of 8 MA types)
colored by a consensus of price position, slope, and directional movement.
2. REGIME — trend or range? ADX + Kaufman Efficiency Ratio classify the regime and
pick the favored mode (trend-follow vs mean-revert). This is the engine's core.
3. LOCATION — where is fair value? A premium/discount model: longs are only allowed
in discount (below equilibrium), shorts only in premium (above). Better entries,
better risk-reward.
4. SIGNAL + FILTER — the trigger, gated by regime, location, and trend-cloud
confluence, so low-quality signals are filtered out.
═══════════════════════════════════════════════════════════
SIGNALS
═══════════════════════════════════════════════════════════
• In a TRENDING regime: momentum entries in the trend direction (baseline reclaim with
rising/falling slope and directional-movement agreement).
• In a RANGING regime: mean-reversion entries when price tags an extreme band and
reverts.
• A colored dot marks a confluent signal; a gray ✕ marks a signal that LACKS confluence
(a hint to exit the opposite position rather than enter).
• Take-profit markers flag when price reaches an ATR-based target after a signal.
═══════════════════════════════════════════════════════════
FOUR OPTIONAL OVERLAYS
═══════════════════════════════════════════════════════════
• TREND MIDLINE — an MA baseline colored by multi-factor consensus (blue long / red
short / gray neutral-exhaustion), filled to price.
• ADAPTIVE ZONE — a Supertrend rendered as a dynamic support/resistance ZONE (support
beneath price in uptrends, resistance above in downtrends) rather than flip signals.
• TREND CLOUD — a modified Ichimoku Kumo (Donchian, EMA, or HMA engine) for trend
context; bullish above, bearish below.
• EXTREME ZONES — multi-band standard-deviation gradient zones marking where price is
statistically stretched and prone to revert (mean-reversion).
Each is independently toggleable so you keep the chart as clean as you like.
═══════════════════════════════════════════════════════════
5-STATE CANDLE COLORING & DASHBOARD
═══════════════════════════════════════════════════════════
Candles paint in five states from a 0-10 trend-strength score: strong buy, buy,
neutral, sell, strong sell (strong states solid, weaker states faded).
The dashboard reports, at a glance: Favored Mode (trend-follow / mean-revert), Regime
(trending/ranging + bias), Trend (increasing/decreasing), Strength (0-10), Volatility
(increasing/decreasing), Location (premium/discount), Session (Tokyo/London/NY/Void),
and the current Signal.
═══════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════
1. Leave Mode on "Auto" and read the dashboard's Favored Mode — trade with the regime.
2. Take colored signals that agree with the trend; treat gray ✕ marks as exit cues.
3. Respect Location — favor longs in discount, shorts in premium.
4. Use the Adaptive Zone / Extreme Zones as entry and target reference levels.
5. Tune Trend/Fast lengths and the ADX threshold to your market and timeframe.
═══════════════════════════════════════════════════════════
HONEST LIMITATIONS — PLEASE READ
═══════════════════════════════════════════════════════════
• No indicator predicts the future. APEX organizes context and signals; it does not
guarantee outcomes. Confirm on closed bars.
• Regime classification has a transition lag — the first bars of a new trend or range
can be mislabeled. The favored-mode readout is guidance, not gospel.
• Session hours are set in UTC and adjustable; verify they match your instrument.
• Volume-dependent and synthetic-feed instruments may read differently.
• Take-profit markers use a simple ATR target on one tracked signal — they are a
reference, not a backtest. This is a decision-support tool, not financial advice.
═══════════════════════════════════════════════════════════
CREDITS & ORIGINALITY
═══════════════════════════════════════════════════════════
This is an original toolkit built from public-domain technical-analysis methods,
implemented from their published formulas: Supertrend (Olivier Seban), Ichimoku Kinko
Hyo (Goichi Hosoda), Bollinger Bands / %B (John Bollinger), ADX/DMI (J. Welles Wilder),
Efficiency Ratio (Perry Kaufman), and the premium/discount equilibrium concept. The
regime-aware dual-mode architecture, the confluence/location gating, the strength model,
the overlays' construction, and all code are original Viprasol work. No third-party Pine
code is reused and no proprietary algorithms are included.
Indicator

MA Confluence Engine [Viprasol]MA Confluence Engine — 15-MA Consensus Ribbon
═══════════════════════════════════════════════════════════
ONE CROSSOVER IS AN OPINION. FIFTEEN MAs AGREEING IS A TREND.
═══════════════════════════════════════════════════════════
A single moving-average crossover whipsaws constantly — two lines tangle in chop and
fire signal after signal that goes nowhere. MA Confluence Engine replaces that one
fragile opinion with the agreement of a 15-MA ribbon. It only signals when most of the
ribbon agrees on direction, stands aside when the ribbon squeezes together (a
compressed ribbon IS chop), and on every signal it draws a complete trade plan:
Entry, TP1, TP2, TP3 and Stop Loss.
═══════════════════════════════════════════════════════════
HOW THE CONSENSUS WORKS
═══════════════════════════════════════════════════════════
The engine builds a ribbon of 15 moving averages, spaced from a fast base length
upward (e.g. 10, 18, 26 … 122). Every bar it measures two things across all 15:
• How many is price trading ABOVE?
• How many are SLOPING UP?
These combine into a single CONSENSUS SCORE from 0 to 100:
100% = price above all 15 MAs AND all 15 rising (a fully stacked uptrend)
0% = price below all 15 AND all 15 falling (a fully stacked downtrend)
50% = mixed — the ribbon disagrees
A long signal fires only when consensus rises through your bullish threshold
(default 75%), a short when it falls through the bearish threshold (default 25%).
Half-hearted moves where the ribbon disagrees never trigger.
═══════════════════════════════════════════════════════════
THE TRADE PLAN — DRAWN ON THE LAST SIGNAL
═══════════════════════════════════════════════════════════
The moment a signal fires, the engine projects five levels forward and labels each
with its price:
• ENTRY — at the signal close
• STOP LOSS — your risk distance away (ATR or %); this distance defines 1R
• TP1 / TP2 / TP3 — at your chosen R-multiples of that risk (default 1R / 2R / 3R)
Only the most recent signal's plan is shown, so the chart stays clean. The dashboard
mirrors the exact prices, and every alert carries the full plan (Entry/SL/TP1/TP2/TP3)
so it's ready for journaling or automation.
═══════════════════════════════════════════════════════════
THE RIBBON IS ITS OWN CHOP FILTER
═══════════════════════════════════════════════════════════
When a market chops, moving averages of every length collapse onto each other — the
ribbon goes flat and thin. The engine measures RIBBON WIDTH (the spread of the 15 MAs,
normalized by ATR) and skips signals whenever the ribbon is compressed below your
threshold. A second Kaufman Efficiency-Ratio gate confirms price is actually trending.
Filtered crosses are drawn faintly (✕) and counted, so you SEE what was avoided.
═══════════════════════════════════════════════════════════
21 VERIFIED, LICENSE-CLEAN MOVING AVERAGES
═══════════════════════════════════════════════════════════
Build the ribbon from any one of:
SMA, EMA, WMA, RMA, VWMA, DEMA, TEMA, HMA, ALMA, T3, McGinley, ZLEMA, KAMA, FRAMA,
VIDYA, SuperSmoother, Gaussian, Laguerre, Kalman, LSMA, Median.
Each is implemented from its published formula and credited to its author. Jurik's JMA
is deliberately excluded — it is a proprietary, trademarked product whose every
open-source "version" is an unlicensed reverse-engineering.
═══════════════════════════════════════════════════════════
DASHBOARD
═══════════════════════════════════════════════════════════
• Live consensus score, with price-above and sloping-up counts (x of 15)
• Ribbon width + chop state, trend-regime efficiency reading
• Last signal direction and the full Entry / TP1 / TP2 / TP3 / SL prices
• Whipsaws filtered
═══════════════════════════════════════════════════════════
FEATURES
═══════════════════════════════════════════════════════════
• 15-MA ribbon colored by consensus (red → green) or simple bull/bear, with fill
• Entry/TP1/TP2/TP3/SL level lines + labels on the latest signal
• Choppy-regime background shading + faint markers on filtered crosses
• Direction filter (Both / Longs / Shorts)
• Stop in ATR or %, take-profits as R-multiples
• Alerts for long, short, and chop — signal alerts include the full trade plan
• Full MA sub-parameter control (ALMA, T3, KAMA, Gaussian, Laguerre, Kalman, VIDYA, McGinley)
═══════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════
1. Choose an MA type, base length, and spacing for the ribbon.
2. Wait for a signal — it only fires when the ribbon fans out and aligns (consensus
through your threshold) in a trending regime.
3. Use the drawn Entry / SL / TP1 / TP2 / TP3 as your trade plan; scale out at the TPs.
4. Raise the consensus thresholds and ribbon-width minimum to make signals stricter
(fewer, cleaner) — the whipsaw-filtered count shows the filter working.
═══════════════════════════════════════════════════════════
HONEST LIMITATIONS — PLEASE READ
═══════════════════════════════════════════════════════════
• Signals are evaluated on bar close; act on confirmed bars to avoid intrabar flicker.
• A consensus system enters LATER than a single fast crossover — it trades fewer,
higher-quality moves and will sit out fast reversals. That trade-off is the point.
• The TP/SL levels are a risk framework, not a prediction — markets do not owe you 3R.
• Volume MAs (VWMA) and the regime math need reliable data; some synthetic forex/CFD
feeds are less meaningful.
• This is a decision-support tool, not financial advice. Trade at your own risk.
═══════════════════════════════════════════════════════════
CREDITS & ORIGINALITY
═══════════════════════════════════════════════════════════
MA methods credited to their authors: Wilder (RMA), Mulloy (DEMA/TEMA), Hull (HMA),
Legoux & Kouzis-Loukas (ALMA), Tillson (T3), McGinley, Kaufman (KAMA/Efficiency Ratio),
Ehlers (ZLEMA, SuperSmoother, Gaussian, Laguerre, FRAMA), Chande (VIDYA), Kálmán
(Kalman). All formulas are public-domain / published methods. Every line of Pine — the
MA dispatcher, the 15-MA consensus engine, the ribbon chop filter, the trade-plan
projection, and the visualization — is original Viprasol work written from the
published formulas. No third-party Pine code is reused; no proprietary algorithms included.
Indicator

Turtle Soup Strategy with 1-Bar ConfirmationCatching Institutional Traps:
The Turtle Soup 1-Bar Confirmation MechanicsIn high-frequency and algorithmic trading environments, traditional breakout strategies frequently fall victim to institutional stop-hunts. When price breaks past an established 20-bar extreme, retail momentum systems are triggered to buy or sell the expansion. Concurrently, institutional market makers utilize these concentrated liquidity pockets to fill large counter-positions, resulting in sharp rejections known as "fakeouts".This publication presents the core structural mechanics of a refined Turtle Soup Reversal Model with Strict 1-Bar Confirmation. Rather than attempting to trend-follow highly volatile breakout expansions, this system introduces an automated state-machine architecture engineered to locate, track, and execute trades alongside institutional order absorption.
💎 Key Architectural & Analytical PillarsTo maintain strict execution data discipline on lower timeframes, the script is structured around three proprietary processing frameworks:
1. Zero-Lag Pure Price Action CoreUnlike classic reversal oscillators (RSI, Stochastic, or MACD) that require compounding mathematical averages—which naturally introduces execution lag—this logic operates exclusively on raw spatial thresholds. By plotting step-line boundaries from static historical peaks and troughs, the exact tick distance of structural sweeps can be monitored without lagging indicators distorting the entries. =================================== (20-Bar Historical High)
▲ (The Sweep Wick: Price pierces high)
│
▼ (The Trap Snap: Next candle closes below low)
----------------------------------- (Setup Invalidation Floor)
2. The Multi-Phase State Isolation Engine To completely eliminate signal stacking and duplicate arrow cluster errors during highly volatile flushes, the logic utilizes a sequential State Machine Processor. State 0 (Ready / Flat): The script searches the chart data for a valid historical boundary breach. State 1 / -1 (Trap Active Zone): The moment a candle's wick runs outside the channel lines, the engine halts further search processing. It locks onto that specific bar index, saves its high/low coordinates as unique reference vectors, and opens a strict conditional confirmation window.
3. Strict 1-Bar Confirmation ValidationThe definitive edge of this strategy lies in its restricted window constraint: bar_index == setupBarIndex + 1.If a market-maker stop-hunt is legitimate, the price must immediately fail and reverse back inside the range on the very next candle. If the market continues to expand aggressively against the level for 2 or more bars, the state machine automatically self-resets to 0, clearing all variables. This mathematical restriction prevents the script from attempting to "catch a falling knife" during real macro trend expansions. Indicator

BocchiTheTrader | Quantum Trend Matrix# BocchiTheTrader | Quantum Trend Matrix
## 🚀 OVERVIEW
In modern electronic markets, retail traders suffer from cognitive overload. Managing multiple charts, fragmented timeframes, and dozens of conflicting indicators often leads to analysis paralysis and execution delays.
The **Quantum Trend Matrix** by **BocchiTheTrader** solves this structural problem. It is an enterprise-grade, localized Heads-Up Display (HUD) that synthesizes a high-fidelity technical matrix directly onto your active trading workspace. By evaluating macro trend direction, multi-oscillator momentum, volume health, and volatility boundaries simultaneously, the QTM provides traders with an instantaneous snapshot of market confluence. It functions as a single, centralized source of truth for directional bias, asset strength, and execution validation.
---
## 📐 THE MATHEMATICAL & LOGICAL CORE
The dashboard works as a multi-indicator consensus engine, evaluating individual variables every single tick to update a structural confluence matrix:
* **Tri-Horizon Trend Architecture:** Evaluates directional health by processing price action relative to an optimized Simple Moving Average (SMA) across three distinct temporal planes: Macro-Weekly, Swing-Daily, and Intraday-Current.
* **Linear & Non-Linear Momentum Ensemble:**
* **MACD Line/Signal Cross:** Decodes classic directional velocity shifts.
* **Relative Strength Index (RSI-14):** Evaluates oversold/overbought thresholds based on a centralized 50-level mid-line axis.
* **Stochastic Oscillator (14, 3):** Measures the location of the close relative to the high-low range to catch rapid cyclical swing turns.
* **Gaussian Normalized Fisher Transform:** Applies an algebraic log transform to normalized RSI values, sharpening the turning points into crisp, highly responsive leading triggers.
* **Money Flow Index (MFI-14):** Combines price action with volume to determine institutional capital absorption or distribution.
* **Volatility & Structural Boundaries:**
* **Bollinger Bands (20, 2.0):** Isolates extreme price extensions. If price pierces the lower band, an exhaustion "Buy" state triggers; if it pierces the upper band, a "Sell" state triggers; otherwise, it remains balanced ("Neutral").
* **Trend Strength & Direction Balance (DMI/ADX):**
* **Directional Movement Index (DMI):** Identifies whether the positive ($+DI$) or negative ($-DI$) trend force is dominant.
* **Average Directional Index (ADX):** Quantifies the absolute strength of the move. Values below 25 trigger a "Weak" warning, while values above 25 confirm a true trending market.
* **Dynamic Exponential Ribbon (EMA 20/50):** Monitors the fast-to-slow exponential moving average cross to confirm immediate mechanical trend acceleration.
---
## 🚦 HOW TO TRADE WITH IT
### 🔹 Long-Side Execution Matrix (Confluence Buying)
1. **Macro Validation:** Ensure that the *Daily Trend* and *Current Trend* cells display **Bullish** (Mint Green).
2. **Momentum Alignment:** Look for a cluster of **Buy** signals across leading indicators (specifically *Fisher*, *MACD*, and *RSI*).
3. **Volatility Confirmation:** Verify that the *ADX* row indicates **Trend** ($>25$). This confirms that the bullish move has institutional momentum backing it.
4. **Entry Trigger:** Execute when the *EMA 20/50* row transitions to **Buy**.
### 🔸 Short-Side Execution Matrix (Confluence Shorting)
1. **Macro Validation:** Ensure that the *Daily Trend* and *Current Trend* cells display **Bearish** (Crimson Red).
2. **Momentum Alignment:** Look for a cluster of **Sell** signals across *MACD*, *Stoch*, *MFI*, and *RSI*.
3. **Volatility Confirmation:** If price breaks down past a structural level and *Bollinger* shifts out of neutral into an extreme state or *DMI* reads **Sell**, the downward expansion is confirmed.
4. **Entry Trigger:** Execute when the *EMA 20/50* transitions to **Sell**.
### 🛡️ Risk Management & Trailing Protocol
* **Invalidation Point:** If an established Long trade is running and more than three momentum cells (e.g., MACD, Stoch, Fisher) flip rapidly from **Buy** to **Sell**, it signals an impending distribution phase. Use this as an early warning indicator to tighten stop-losses or harvest partial profits before visual price rotation occurs.
---
## ⚠️ RISK DISCLAIMER
Financial market trading involves substantial risk of capital loss. Quantum Trend Matrix is engineered exclusively as a statistical and analytical workflow assistant. Past performance configurations do not dictate, guarantee, or imply future algorithmic outcomes. Always utilize strict capital allocation and risk mitigation frameworks. Indicator

Multi Factor Divergence Confluence OscillatorMulti-Factor Divergence Confluence Oscillator
What it is
This indicator detects price/oscillator divergence on four independent indicator families at the same price pivots and reports how many of them agree. The lower-pane histogram shows the signed agreement count — positive (bullish) above the zero line, negative (bearish) below — and a signal is flagged only when at least N independent families diverge at the same swing. It is a context tool that measures agreement, not a buy/sell system, and it places no orders.
Why these components are combined (and why it is not just stacked indicators)
Divergence on a single oscillator is a weak, noisy signal. The instinctive "fix" is to stack several oscillators and look for agreement — but stacking RSI, Stochastic, MACD and similar tools does not create real confluence, because they are all rate-of-change of price. They are highly correlated, so a divergence on one almost always coincides with the others. That is one witness counted several times, which feels like confirmation while adding almost no new information.
Meaningful confluence requires independent witnesses. This script therefore measures divergence on four families chosen specifically because each looks at a different dimension of the same bar, and each covers a blind spot of the others:
Momentum — Relative Strength Index. The classic rate-of-change read. It says nothing about who is transacting or how far price has travelled.
Volume — Normalized Cumulative Volume Delta. Detrended, standardized signed volume — an order-flow read that is independent of price geometry. (Signed volume is estimated; see Limitations.)
Volatility — Parabolic-SAR-to-price extension, in ATR units. How stretched the current trend leg is relative to its trailing stop, normalized by volatility — a read that ignores both momentum and volume.
Forecast — price minus its linear-regression forecast. A z-scored "how far has price departed from its own fitted path" term, independent of the three above.
All four are rescaled to share polarity (up = bullish), so a single divergence rule applies to every engine and the counts are directly comparable. Counting agreement across these families is information; counting it within one family is not — that independence is the entire reason these four are combined, rather than four momentum clones.
How the parts work together
Each enabled family is reduced to one bounded, bullish-up oscillator.
At every confirmed price swing (the families share the same price pivots), each family is asked whether it diverges there. Bearish = price makes a higher high while the oscillator makes a lower high; bullish = price makes a lower low while the oscillator makes a higher low.
The number of agreeing families becomes the signed confluence histogram, with glowing tip dots on flagged signals and a connecting line/label on the pane.
A signal flag is raised only at or above the chosen agreement threshold. That threshold can adapt to the chart timeframe — lower timeframes are noisier, so by default 1–5m require four families, 15–60m require three, and above 60m require two.
How to use it
Read the height and sign of the histogram: how many independent families diverge, and in which direction. The flag lines and the optional shaded zones mark where agreement is strong (three or more).
Treat it as context that qualifies your own analysis, not a standalone trigger. A divergence marks where price and a flow/momentum read disagree; it can resolve either way. More agreement is rarer, not guaranteed-better.
The dashboard summarizes the last signal, which families diverged, the active engines, the current threshold, and whether the signed-volume estimate is using lower-timeframe data or the proxy.
Enable/disable any family, switch between regular (reversal) and hidden (continuation) divergence, and tune the pivot, gap and threshold settings to your instrument and style.
What is original
The originality is the integration discipline, not the individual techniques: divergence is measured only across deliberately independent families on one shared set of price pivots and one comparable axis, with an explicit rule that within-family agreement is excluded. The result is a single confluence read that resists the double-counting that ordinary multi-oscillator "confluence" tools fall into, plus a timeframe-adaptive agreement threshold and an honest, configurable, multi-market implementation.
Universal across markets (configurable data source)
The Price / High / Low sources are user-selectable in Settings, so the engine runs on any symbol, asset class or timeframe — equities, futures, forex, crypto or indices. The Volume family needs a symbol that reports real volume; otherwise it falls back to a high/low/close proxy, and the dashboard shows which is active. Defaults are tuned for NSE NIFTY index futures on intraday charts; change the sources, lengths and lower timeframe for any other instrument.
Concept credits
Relative Strength Index and Parabolic SAR — J. Welles Wilder Jr. Cumulative Volume Delta, linear-regression forecasting and price/oscillator divergence are standard, publicly documented techniques. This is an original integration built around those public concepts and is not affiliated with, nor endorsed by, any originator.
Limitations (honest)
Divergence is context, not a trigger. Signed volume is estimated from lower-timeframe sub-bars (or an intrabar proxy), not exchange aggressor data, so the Volume family is an approximation and is unreliable on instruments without real volume. Divergence confirms a few bars after its pivot — inherent to honest, non-repainting pivot detection. Past behaviour does not predict future results.
Disclaimer
For research and educational purposes only. This is not financial advice and carries no guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading involves risk of loss. Test out-of-sample and make your own decisions.
Indicator

[Viprasol] Equilibrium Confluence EngineOverview
The Viprasol Equilibrium Confluence Engine is an original indicator that requires five independent, well-known trading conditions to agree before it prints a signal: an EMA trend filter, Fibonacci premium/discount location, a market-structure shift (CHoCH), a liquidity sweep, and a Fair Value Gap. Each of these concepts answers a different question about a trade — direction, location, structure, intent, and imbalance — and the engine only confirms when all of the enabled conditions line up on the same side within a configurable window. The on-chart panels (HOW IT WORKS legend, a live confluence checklist, and a strategy summary) make the logic self-explanatory directly on the chart.
It is built for traders who want a single, transparent confluence check instead of running five separate indicators and eyeballing whether they agree.
Why These Components Belong Together (Mashup Justification)
Each layer covers a dimension the others cannot, which is the reason they are combined rather than used alone:
- The EMA trend filter answers "which direction?" but says nothing about where to enter.
- Fibonacci equilibrium answers "is price cheap or expensive within the range?" but not whether momentum agrees.
- Market structure (CHoCH) answers "has the prevailing structure actually shifted?" but a shift alone can be a trap.
- The liquidity sweep answers "did price take liquidity before moving?" — the footprint that often precedes a real move — but needs direction and location to be actionable.
- The Fair Value Gap answers "is there an institutional imbalance for price to react to?" but an FVG in the wrong location or against the trend is low quality.
Used together, a signal only appears when momentum, location, structure, intent, and imbalance all point the same way — the combination is the point, not any single piece.
How It Works
1. EMA Trend Filter:
Two EMAs (default 9 and 15). The trend is bullish when the fast EMA is above the slow EMA and bearish when below. BUY confluence requires bullish trend; SELL requires bearish.
2. Fibonacci Equilibrium (dealing range):
The most recent confirmed swing high and swing low (from pivots of the swing length) define a dealing range. The 0.5 level is equilibrium; 0.236 and 0.786 are also drawn. Below 0.5 is the Discount zone (a relatively cheap "buy area"); above 0.5 is the Premium zone ("sell area"). BUY confluence requires price in discount; SELL requires premium. The range, levels, and zones are shaded and labeled with live prices.
3. Market Structure — CHoCH / BOS:
Swing highs and lows are tracked. When price closes through the prior swing high while structure was not already bullish, a bullish Change of Character (CHoCH) is marked; closing through the prior swing low while not already bearish marks a bearish CHoCH. Continuation breaks in the same direction are labeled BOS. BUY confluence requires a bullish CHoCH within the confluence window; SELL requires a bearish one.
4. Liquidity Sweep:
Sell-side liquidity is considered swept when a bar wicks below a prior swing low but closes back above it (stops taken, price rejected) — a bullish footprint. Buy-side liquidity is swept when a bar wicks above a prior swing high and closes back below — a bearish footprint. BUY confluence requires a recent bullish sweep; SELL a bearish one.
5. Fair Value Gap (FVG):
A bullish FVG is a 3-candle imbalance where the current low is above the high two bars back (low > high ); a bearish FVG is where the current high is below the low two bars back (high < low ). The gap is boxed and tracked. BUY confluence requires price inside a bullish FVG or a recent bullish FVG within the window; SELL the bearish equivalent.
Confluence Engine:
Each condition can be individually included or excluded. CHoCH, sweep, and FVG are event-based, so they remain "active" for a configurable Confluence Window (default 15 bars) using barssince, allowing the five conditions to line up even if they did not occur on the exact same bar. A confirmed BUY fires on the first bar all enabled BUY conditions are simultaneously true (and a SELL for the bear side), gated by a cooldown to prevent repeats. The dashboard shows a live BUY/SELL score out of 5, and the checklist panel shows exactly which conditions are met.
Risk Overlay:
On a confirmed signal, the engine projects Entry (signal close), Stop-Loss (beyond the relevant swing extreme plus an ATR buffer), and Take-Profit (Entry ± risk × Risk:Reward), with colored ENTRY/SL/TP price labels. Only the latest signal's projection is kept.
Key Features
- Five-factor confluence: EMA trend, Fib equilibrium, CHoCH structure, liquidity sweep, FVG
- Each factor independently toggleable in/out of the confluence
- Configurable confluence window so event-based factors can align
- Live BUY/SELL confluence score (x/5) and a tick/cross checklist panel
- Auto dealing range with 0 / 0.236 / 0.5 / 0.786 / 1 levels and shaded premium/discount zones
- CHoCH / BOS and liquidity-sweep labels
- FVG zone boxes that track until filled
- Entry/SL/TP risk overlay with price labels
- On-chart HOW IT WORKS legend and STRATEGY SUMMARY footer
- Signal cooldown to prevent clustering
- Seven alert conditions with dynamic {{ticker}}/{{close}}/{{interval}} messages
How to Use
Getting Started:
1. Add to a standard candlestick chart (not Heikin Ashi).
2. Read the HOW IT WORKS panel (left) and the live confluence checklist (right).
3. A BUY/SELL label prints only when every enabled condition is aligned; Entry/SL/TP project from it.
Tuning Confluence:
- For more signals, turn off one or two of the stricter conditions (e.g. FVG) or widen the Confluence Window.
- For higher conviction, keep all five on and shorten the window so conditions must be tightly clustered.
Recommended Starting Points:
- Intraday (5m-15m): Swing Length 10-12, Confluence Window 12-15, Cooldown 8
- Swing (1H-4H): Swing Length 15-20, Confluence Window 20, Cooldown 12
- Looser entries: disable FVG and/or Liquidity, keep Trend + Equilibrium + CHoCH
These are starting points only — every market and timeframe behaves differently. Backtest and adjust before trading live.
Settings
1 EMA Trend Filter: fast EMA, slow EMA, include-in-confluence toggle.
2 Fibonacci Equilibrium: swing pivot length, use discount/premium toggle, show range & levels, shade zones.
3 Market Structure: use CHoCH toggle, show CHoCH/BOS labels.
4 Liquidity Sweep: use sweep toggle, show sweep labels.
5 Fair Value Gap: use FVG toggle, show FVG zones.
Confluence Engine: confluence window (bars), signal cooldown.
Risk Overlay: show Entry/SL/TP, show price labels, ATR period, SL ATR buffer, Risk:Reward.
Visuals: show EMA lines, bull/bear colors.
On-Chart Panels: toggles for HOW IT WORKS, confluence checklist, strategy summary.
Dashboard: live dashboard toggle and position.
Alerts
1. Confirmed BUY — all enabled bullish conditions aligned
2. Confirmed SELL — all enabled bearish conditions aligned
3. Any Signal — either direction confirmed
4. Bullish CHoCH — a bullish change of character occurred
5. Bearish CHoCH — a bearish change of character occurred
6. Bullish Liquidity Sweep — sell-side liquidity was swept
7. Bearish Liquidity Sweep — buy-side liquidity was swept
All alerts include {{ticker}}, {{close}}, and {{interval}} for dynamic notification messages.
Limitations & Disclaimer
- Swing-based features (range, structure, liquidity) depend on confirmed pivots, which lag by the swing length; very recent swings are not yet confirmed.
- The dealing range uses the latest confirmed swing high and low; in strong one-directional moves the range can become stale until a new swing forms.
- CHoCH detection here uses closing breaks of the last swing; it is a practical approximation of the structure concept, not a full multi-leg structure model.
- FVG detection is the standard 3-candle definition and tracks only the most recent gap per direction for confluence.
- The confluence window means conditions need not occur on the same bar; widening it loosens signal quality, narrowing it tightens it — there is no single correct value.
- Entry/SL/TP lines are visual references only and do not place or manage trades.
- Past performance does not guarantee future results. This indicator is for educational and analytical purposes only and is not financial advice. Always use proper risk management and test on historical data before trading live.
Credits & Attribution
This is an original Viprasol indicator. It is built on standard, public-domain trading concepts — exponential moving averages, Fibonacci retracement / premium-discount equilibrium, market-structure Change of Character and Break of Structure, liquidity sweeps, and Fair Value Gaps (widely used ICT / Smart Money concepts) — implemented from scratch and combined into a single multi-factor confluence engine with a scoring system, configurable confluence window, risk overlay, and self-explaining on-chart panels. No third-party source code was reused.
Published open-source per PulseWire House Rules.
Indicator

ICT Confluence Framework[BullByte]ICT Confluence Framework is a structural price-action engine that monitors the chart for five independent ICT-style behaviors and fires a directional setup only when several of them align inside a short structural window. Designed for intraday traders on 1m–15m charts in crypto, indices, and futures, with an auto-adapter that rescales every meaningful lookback to the chart timeframe.
Most ICT tools draw one element - order blocks, liquidity pools, BOS lines - and leave the trader to combine them mentally. This framework does the combining, scores the result against the current market regime and volatility phase, and prints one clean setup with an Entry, two Reference Levels, and an Invalidation level. The chart stays focused on what is currently relevant - no permanent boxes, no arrows on every candle, no flashing icons.
WHY THIS IS NOT A MASHUP
No public indicator is imported, wrapped, or re-skinned. Every detector is written from first principles against raw OHLCV. The five detectors share four custom layers that no single public indicator provides:
- A common confluence scoring layer with adaptive per-pattern weighting
- A regime classifier based on path efficiency
- A volatility-phase filter based on rolling ATR percentile rank
- A signal lifecycle manager with deterministic outcome resolution
The originality is in how five orthogonal behaviors are unified into one decision - not in the behaviors themselves.
THE FIVE BEHAVIORS MONITORED
1. Liquidity Sweep + Reclaim
Price violates a recent swing extreme - taking out resting stops - then closes back inside the prior range within a short window. The classic stop-hunt-then-reverse footprint.
2. Stopping Volume
A high-volume bar at a local extreme that closes with a strong rejection wick. Marks a level where aggressive flow was absorbed by passive flow.
3. Range Compression to Expansion
A bar that is the narrowest of its recent window is immediately followed by an expansion bar of meaningful size. A bullish expansion contributes to a bullish setup; a bearish expansion to a bearish one.
4. Break of Structure (BOS)
A close beyond the last confirmed pivot high or low. The script uses 3-bar right-confirmed pivots, so BOS prints with structural lag by design - this removes false breaks.
5. Order Block Mitigation
Price returns to the last opposing candle preceding a strong impulse, wicks into it, and closes back outside the zone.
Each behavior is detected independently against raw price and volume.
WHY THESE FIVE
At structural turning points markets do a small number of distinct things: they trap traders (sweep), they absorb flow (stopping volume), they release energy (compression-expansion), they confirm intent (BOS), and they retest origin (order block). When two or more of these align within the same structural window on the same side, the setup quality is materially higher than any one of them in isolation.
WHAT MAKES THIS DIFFERENT
Signals are stable. Detection and signal arming occur only on confirmed bar close. Once a setup prints, it does not move, redraw, or vanish on the next tick.
The script adapts to your chart. Every pattern carries a rolling reliability score calculated from its own follow-through history on the instrument and timeframe you are viewing. Follow-through is measured as maximum favorable excursion in ATR multiples over a configurable evaluation window. Patterns that have been working get more weight; patterns that have been failing get less, bounded by a user-set floor so no pattern is fully silenced.
Market regime is respected. An efficiency ratio (net displacement divided by path length) classifies the market as Trend Up, Trend Down, Range, Volatile, or Neutral. Inside this classification, BOS in a Range is soft-weighted to 0.4x and Expansion in a Volatile regime is soft-weighted to 0.5x. Counter-trend setups inside a strong trend are weighted down to 0.5x but still allowed.
Volatility phase aware. The current ATR's percentile rank classifies the bar as Quiet, Normal, or Active. Active phase tightens the required pattern count by one (capped at five). Quiet and Normal use the user's setting unchanged.
Confluence decay. A residual opposing score decays linearly by 1.0 per bar with no fresh pattern activity, so a stale opposing cluster cannot block a fresh signal indefinitely. The decayed value is also reset to zero on trade closure so the post-cooldown chart starts clean.
The chart stays clean. While no trade is active, the Hunting Layer shows what the script is monitoring. The moment a signal fires, every hunting visual that did not contribute to the signal and is not contextually inside the trade's expected path is erased. Contributors and contextual zones are recolored to the signal's direction and promoted into permanent history.
CHART EXAMPLE
1.ETH/USD 15m: Bullish Alignment: Expansion + BOS. Following a sharp bearish leg into a session low near 08:00, price entered a tight compression range between approximately 10:30 and 12:00. An expansion bar then broke above the last confirmed swing high (the LH pivot at ~11:00), firing the Compression-to-Expansion and Break of Structure detectors simultaneously. The framework printed a Bullish Alignment at 2036.60 with Invalidation at 2022.77. The market has advanced through Reference Level 1 (2050.43) and is approaching Reference Level 2 (2064.27).
2.ETH/USD 15m: Bullish High-Confluence: Sweep + BOS + OB. During a Range regime under Active volatility phase (which tightened the confluence requirement to three patterns), price swept the sellside liquidity at approximately 10:30 below a confirmed swing low. After consolidation, the entry bar at approximately 13:30 mitigated a bullish Order Block and broke above the local pivot. Three patterns aligned at signal close, firing a Bullish High-Confluence setup at 2118.34 with Invalidation at 2097.19. The market is currently advancing toward Reference Level 1 (2139.49) and Reference Level 2 (2160.64
3.ETH/USD 15m: Bearish Alignment: StopVol + BOS. Following a multi-hour consolidation between approximately 10:00 and 13:00 near the 2115–2125 area, price rejected the consolidation high with a high-volume bar at approximately 13:00, then broke below the local pivot. Stopping Volume and Break of Structure aligned on the same bar in a Volatile regime, firing a Bearish Alignment at 2110.89 with Invalidation at 2133.24. The setup is currently in progress, advancing toward Reference Level 1 (2088.54) and Reference Level 2 (2066.18), with a large sellside liquidity pool sitting in the path.
HOW TO READ THE OUTPUT
When a setup fires you will see four horizontal levels with right-side labels:
ENTRY (solid line, signal-direction color)
The closing price of the signal bar.
REFERENCE LEVEL 1 (dashed line, reference color)
Placed at 1R by default. Informational only - the setup does not close here. Useful for partial-exit planning or scaling.
REFERENCE LEVEL 2 (dashed line, reference color)
Placed at 2R by default. Reaching this level closes the setup as a success.
INVALIDATION (dotted line, invalidation color)
Placed at 3 ATR from entry by default. Reaching this level closes the setup as a failure.
Outcome and historical record
The setup closes when either Reference Level 2 or Invalidation is reached intrabar. Outcome is detected on the bar's high/low. When a single bar's range spans both levels, the setup closes on that bar; the script does not assume intrabar order, so the user should treat such ambiguous closures cautiously when reviewing historical results.
When the trade closes, right-side labels and connectors are removed and the four lines freeze at the closure bar. The signal label at the firing bar remains as a permanent record. To keep object counts within PulseWire limits on long histories, the script retains the most recent 400 signal labels and the most recent 400 closed-trade lines; older items are recycled automatically.
COOLDOWN
After any trade closes, the script waits a configurable number of bars before arming the next setup. Prevents back-to-back firing on noisy moves.
THE DASHBOARD
A 9-row status panel reports:
Regime - Trend Up, Trend Down, Range, Volatile, or Neutral.
Phase - Quiet, Normal, or Active.
Pattern rows - for each of the five behaviors: rolling Activity count and a Low / Medium / High Emphasis rating based on recent follow-through reliability on this chart.
Patterns Required - the integer minimum that must align for a signal to fire on the current bar. Equal to your "Minimum Patterns Required" input in Quiet and Normal phases; tightened by one (capped at five) in Active phase.
Status - Ready, Cooldown, or Signal Active.
THE HUNTING LAYER
Drawn while no trade is active and the script is hunting for confluence:
Buyside Liquidity zones - blue boxes above swing highs.
Sellside Liquidity zones - teal boxes below swing lows.
Bullish Order Blocks - teal boxes at the last bearish candle before a strong bullish impulse.
Bearish Order Blocks - red boxes at the last bullish candle before a strong bearish impulse.
Compression bars - amber boxes on narrow-range candles.
Stopping Volume markers - amber triangles at high-volume rejection candles at local extremes.
BOS labels - text labels at confirmed structural breaks, centered on the broken level.
Sweep markers - text labels at the bar where price violated a confirmed pivot extreme, marking where liquidity was taken.
Reclaim labels - text labels at the bar where price closed back inside the prior range, confirming the sweep. Together with the Sweep marker, these tell the complete two-event Sweep+Reclaim story.
HH / HL / LH / LL pivot labels - market structure narration. Pivots are independent of the BOS module switch and are shown whenever the pivot toggle is enabled.
Duplicate BOS, Sweep, and Reclaim markers at the same price level within a recent window are automatically suppressed. Each confirmed pivot can be swept and reclaimed at most once until a new pivot forms.
At signal fire
Each active hunting item is evaluated:
- If its pattern type contributed to the signal, it is recolored to the signal's direction and promoted to history.
- If it is a liquidity zone or order block sitting inside the trade's expected path AND structurally aligned with the trade, it is promoted as context.
- Everything else is erased instantly.
At signal fire, BOS and Reclaim markers are explicitly drawn so every fired setup carries its structural anchor. The Reclaim marker is guaranteed when the Sweep pattern contributed; the BOS marker is drawn when BOS contributed and no recent BOS marker exists at the same level.
TIMEFRAME GUIDANCE
1m and 3m - high-frequency scalping on liquid pairs (BTC/USDT, ETH/USDT, NQ, ES).
5m and 15m - intraday swing entries on the same instruments and other liquid markets.
30m and above - functional but signal frequency drops noticeably; suitable for positional approaches.
The Auto-Calibrate by Timeframe input automatically scales swing lookback, ATR length, volume lookback, sweep window, stopping-volume percentile, and compression lookback. Disable only for full manual control.
HOW TO USE IT
1. Load on a clean chart. Leave Auto-Calibrate enabled.
2. Watch the Hunting Layer to see what the script is monitoring.
3. Wait for a signal label to print at bar close. The label text lists the contributing patterns.
4. The four levels appear automatically.
5. The setup auto-closes when Reference Level 2 or Invalidation is reached. After cooldown, hunting resumes.
INPUTS GUIDE
Auto-Calibrate by Timeframe - master switch that scales all lookbacks to the chart timeframe.
Pattern Modules - enable or disable any of the five detectors individually.
Core Parameters - manual swing, ATR, and volume lookbacks (used when Auto-Calibrate is OFF).
Pattern Tuning - per-pattern sensitivity controls.
Adaptive Learning - evaluation window, follow-through threshold in ATR multiples, learning memory, and minimum emphasis floor.
Regime Filter - toggle regime awareness and set its lookback.
Volatility Phase - toggle phase-based threshold tightening and set its lookback.
Confluence Decay - toggle linear decay of residual opposing scores.
Output - Quiet Mode (only High-Confluence tier fires), minimum patterns required, cooldown bars, RR for Reference Levels 1 and 2, Invalidation distance in ATR multiples, and label offset from the last bar.
Visual - color tones for bullish, bearish, reference, invalidation, and label background.
ICT Hunting Layer - individual toggles and color controls for every visual element and the legend panel.
ALERTS
Six alert conditions cover every tier and direction combination:
- Bullish High-Confluence
- Bearish High-Confluence
- Bullish Alignment
- Bearish Alignment
- Bullish Watch
- Bearish Watch
Add through the standard PulseWire alert dialog.
TECHNICAL NOTES
- All pattern detection and signal arming occur on confirmed bar close. No intrabar fires, no repaint.
- No request.security() calls. No higher-timeframe lookups. No lookahead modifiers. No future leakage.
- Pivots use 3-bar right confirmation - structural lag is intentional and removes false breaks.
- The script uses one active trade slot at a time. New setups can only arm after the current one closes and cooldown expires.
- Same-bar conflict between Reference Level 2 and Invalidation resolves conservatively as invalidation. This is the honest interpretation when intrabar order is unknown.
- Object retention is bounded: 400 signal labels, 400 closed-trade lines, 400 hunting-history items. Adaptive learning memory is configurable up to 1000 bars per pattern.
WHAT THIS SCRIPT IS NOT
- Not a strategy. It does not place trades or compute P&L.
- Not a holy grail. No indicator is.
- Not a black box. Every threshold and lookback is exposed as an input.
- Not predictive. It reacts to confirmed structural events at bar close.
DISCLAIMER
This script is published as an open-source educational and analytical tool. It does not constitute financial advice, a recommendation to buy or sell any instrument, or any guarantee of future performance. Past behavior of any pattern on any chart does not guarantee future results. You are solely responsible for your trading decisions, your risk management, and your testing on a demo environment before any live use. The author and PulseWire accept no liability for losses incurred from use of this script.
CREDITS
Concepts inspired by public ICT (Inner Circle Trader) educational material. All detection logic, scoring, regime classification, adaptive learning, lifecycle management, and visualization is original implementation by the author. Indicator

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

Delivery Shift CISD [Viprasol]Overview
This indicator is based on an open-source "Change in State of Delivery (CISD)" community script, which detects the ICT concept of a delivery shift — the moment price reverses and closes back through the opening level of the opposing momentum leg that produced it. The original tracks swing-point liquidity, detects bullish and bearish CISD events using a displacement-ratio test, marks the origin level, and flags "strong" CISDs that occur right after opposing liquidity is swept. This version keeps that detection engine intact and adds a Viprasol confluence and execution layer: a 0-4 confluence score with A/B/C grading, optional volume-surge and higher-timeframe bias filters, a signal cooldown, a minimum-score gate, and an ATR-anchored Entry/SL/TP risk overlay drawn on qualified signals.
It is built for ICT/SMC traders who use CISD as a confirmation of intraday delivery direction and want each event graded by confluence, with optional filters and an automatic risk projection.
How It Works
Swing Liquidity (from original):
Pivot highs and lows over the swing period create horizontal liquidity lines that extend forward each bar. A line is mitigated when price trades through it (high >= level for a high, low <= level for a low) on a confirmed bar, and removed; lines older than the expiry threshold stop updating. The most recently mitigated high and low, and how many bars ago they were taken, are retained for the sweep test below.
CISD Detection (from original):
When a candle flips color (a down candle followed by an up candle, or vice versa), its open is stored as a potential CISD origin along with its bar index. On each later bar the script checks whether price has closed back beyond that stored open. If it has, it measures the displacement of the leg as a ratio: for a bearish CISD, (highest close in the leg − origin open) / (top of the bearish run − origin open). If that ratio exceeds the Noise Filter, the event qualifies as a CISD, the origin level is drawn, and the trend state flips. Weaker candidates are discarded and the scan continues to older candidates.
Liquidity-Sweep Confluence (from original):
A CISD is flagged "strong" when it fires within the liquidity-lookback window after the opposing liquidity was swept — a bearish CISD where a swing high was just taken and price closed back below it, or a bullish CISD where a swing low was taken and price closed back above. These print the labeled sweep arrows.
Confluence Score & Grade (new):
Every CISD event is scored 0-4 by summing four independent confluence checks:
score = strongDisplacement? + liquiditySweep? + htfAligned? + volumeSurge?
- strongDisplacement = the measured ratio is at least halfway between the Noise Filter and 1.0 (a decisively strong leg, not a marginal one).
- liquiditySweep = the original sweep confluence is present.
- htfAligned = the CISD direction agrees with the higher-timeframe EMA.
- volumeSurge = volume on the CISD bar exceeds its rolling average × the multiplier.
The score maps to a grade — A (>= 3), B (= 2), C (<= 1) — labeled at the origin level.
Filters & Qualified Signals (new):
Four optional gates can be applied without altering the original CISD drawing: a volume-surge requirement, a higher-timeframe EMA bias (bull only above, bear only below), a per-signal cooldown (minimum bars between qualified signals), and a minimum-confluence-score requirement. A CISD that passes all active gates becomes a "qualified" signal, which is what the risk overlay and the two new qualified alerts use. With every gate at its default (cooldown 0, filters off, min score 0), every CISD qualifies and the original behaviour is unchanged.
Risk Overlay (new):
On a qualified CISD, the script projects three lines: Entry at the CISD origin level, Stop-Loss beyond the CISD swing extreme (the highest/lowest close captured during detection) plus an ATR buffer, and Take-Profit at Entry ± risk × the Risk:Reward ratio, where risk is the Entry-to-SL distance. Colored ENTRY/SL/TP price labels mark the line ends. Only the most recent qualified signal's projection is kept, to avoid clutter.
What Is Original (Viprasol Additions)
1. Confluence score (0-4) and A/B/C grade per CISD, from displacement strength, liquidity sweep, HTF alignment, and volume surge.
2. Minimum-confluence-score gate and the "qualified signal" concept layered on top of raw CISD detection.
3. Optional volume-surge filter (volume above its rolling average × multiplier on the CISD bar).
4. Optional higher-timeframe EMA bias filter (and an always-computed HTF read used for grading).
5. Per-signal cooldown to prevent qualified-signal clustering.
6. ATR-anchored Entry/SL/TP risk overlay with colored price labels, with the stop anchored to the CISD swing extreme.
Key Features
From the Original:
- Swing-point liquidity lines with forward extension, mitigation, and expiry
- Displacement-ratio CISD detection for both directions with a Noise Filter
- Origin-level lines drawn on each CISD
- Trend/delivery-state tracking
- Liquidity-sweep confluence with labeled strong-CISD arrows
- Swing-high / swing-low dots
- Trend-gradient candle coloring
Added in This Version (Viprasol):
- 0-4 confluence score with A/B/C grade label
- Minimum-score gate and qualified-signal logic
- Volume-surge filter, HTF EMA bias filter, and signal cooldown
- ATR-anchored Entry/SL/TP risk overlay with price labels
- Info dashboard (delivery state, last grade, sweep, HTF bias, volume, live liquidity counts)
- Two new alerts for qualified bull/bear signals; all alert messages made dynamic
How to Use
Getting Started:
1. Add to a standard candlestick chart (not Heikin Ashi).
2. With defaults, every CISD is drawn and graded — read the A/B/C label to judge each event's confluence.
3. To trade only stronger setups, raise the Minimum Confluence Score or enable the volume / HTF filters.
Reading the Chart:
- Candles tint green/red with the current delivery state.
- A thick green/red horizontal line marks a CISD origin level; the A/B/C label shows its grade.
- ▲/▼ arrows mark strong CISDs that followed an opposing liquidity sweep.
- On a qualified CISD (with SL/TP enabled), Entry/SL/TP lines and price labels project to the right.
Recommended Starting Points:
- Intraday (1m-15m): Swing Period 10-12, Noise Filter 0.6-0.7, Min Score 0-1
- Swing (1H-4H): Swing Period 15-20, Noise Filter 0.7-0.8, Min Score 2, enable HTF bias
- Higher conviction: Min Score 3 (grade A), or require volume surge + HTF bias
These are starting points only — every market and timeframe behaves differently. Backtest and adjust before trading live.
Settings
Calculations: Noise Filter (displacement ratio threshold), Swing Period, Expiry Bars, Liquidity Lookback.
Signal Filters (Viprasol): signal cooldown, volume-surge requirement (length + multiplier), and HTF EMA bias (resolution + length).
Confluence & Quality (Viprasol): show grade on CISD, minimum confluence score.
Risk Overlay (Viprasol): show SL/TP on qualified CISD, show price labels, ATR period, SL ATR buffer, Risk:Reward.
Appearance: bullish/bearish colors, candle body and wick transparency, hide expired levels, hide mitigated levels.
Dashboard / Display: dashboard toggle and position.
Alerts
1. Swing High Mitigation — a swing-high liquidity line was taken
2. Swing Low Mitigation — a swing-low liquidity line was taken
3. Bearish CISD — a bearish change in state of delivery fired
4. Bullish CISD — a bullish change in state of delivery fired
5. Strong Bearish (Sweep) — bearish CISD following an opposing liquidity sweep
6. Strong Bullish (Sweep) — bullish CISD following an opposing liquidity sweep
7. Qualified Bull — a bullish CISD that passed all active filters and the score gate
8. Qualified Bear — a bearish CISD that passed all active filters and the score gate
All alerts include {{ticker}}, {{close}}, and {{interval}} for dynamic notification messages.
Limitations & Disclaimer
- CISD detection scans backward through stored candidate origins and uses closing relationships; signals are evaluated as bars confirm and the displacement ratio is measured after the move.
- The HTF EMA bias uses request.security with lookahead disabled; HTF values update only as the higher-timeframe bar develops.
- Swing liquidity lines are capped (oldest pruned) and can expire; in fast markets some mitigations may occur off-screen relative to the visible levels.
- The risk overlay's stop is anchored to the captured swing extreme plus an ATR buffer — it is a mechanical projection, not an optimized stop, and the lines are visual references only; they do not place or manage trades.
- Filters and the minimum-score gate reduce the number of qualified signals; in choppy conditions valid CISDs may not qualify, while with all gates off qualified signals equal raw CISDs.
- Past performance does not guarantee future results. This indicator is for educational and analytical purposes only and is not financial advice. Always use proper risk management and test on historical data before trading live.
Credits & Attribution
Based on an open-source "Change in State of Delivery (CISD)" community indicator, which provided the swing-point liquidity lines with extension/mitigation/expiry, the displacement-ratio CISD detection for both directions, the origin-level drawing, the trend/delivery-state tracking, the liquidity-sweep confluence with labeled strong-CISD arrows, the swing dots, and the trend-gradient candle coloring. CISD is an Inner Circle Trader (ICT) concept. Added by Viprasol: the 0-4 confluence score and A/B/C grading, the minimum-score gate and qualified-signal logic, the volume-surge and HTF EMA bias filters, the signal cooldown, the ATR-anchored Entry/SL/TP risk overlay with colored price labels, the info dashboard, and the two additional qualified-signal alerts with dynamic messages.
Published open-source per PulseWire House Rules.
Indicator

The Boy Plunger | AnonycryptousThe Boy Plunger | Anonycryptous
Description & user manual
Why is this indicator different?
Most breakout indicators do one thing: they draw a line and fire a signal when price crosses it. They do not ask whether the move is real. They do not ask whether the volume confirms it. They do not ask whether the broader trend supports it. They just fire.
The Boy Plunger is built on a different philosophy. It does not look for crossings. It looks for proof.
Every signal in this indicator requires the market to pass through a series of gates before anything fires. A key structural level must be present. Price must approach it with observable intent. Volume must confirm participation. The body of the breakout candle must show conviction. The ribbon must be aligned with the move. Only when all required conditions are satisfied does a signal appear.
This is confirmation trading in its strictest form. It produces fewer signals than most indicators. That is not a weakness. That is the point.
Most indicators on PulseWire that claim to be based on Livermore's method are either a single pivot high/low scanner or a basic breakout line. None of them implement the full confirmation philosophy — the waiting zone, the volume proof, the structural gate, the failed breakout detection. This indicator does all of that in a single tool, across all markets and timeframes, with a modular seven-preset system that lets you trade pure Livermore methodology or adapt it to modern intraday conditions.
A tribute to Jesse Lauriston Livermore (1877-1940)
He started with five dollars and a notebook. No connections, no capital, no safety net — just the ability to read price and the discipline to wait. By 1929 he had turned that into an estimated one hundred million dollars, shorting the crash while the rest of the world burned.
He defined what it means to trade with conviction. Wait for the decisive point. Watch how the market behaves around key levels. Demand proof before committing. Exit without hesitation when the market proves you wrong.
He called these moments pivot points — not a formula, but a philosophy. The market reveals its hand when it breaks away from structure with strength and volume. Everything before that is noise.
But Livermore also lost it all. Four times. He broke his own rules, overtraded, let emotion overrule his system. The man who made one hundred million dollars was declared bankrupt in 1934. On November 28, 1940, he took his own life in a New York hotel. His farewell note read: "My life has been a failure."
It wasn't. He gave traders a language to describe what markets do. A century later, his observations are still the foundation of how serious traders think about price.
This indicator is built on his principles:
- structure defines the battlefield
- volume confirms the move
- trend determines the direction
- proof before entry, always
What you do with it is your decision.
1. Overview
The Boy Plunger is a multi-engine confluence indicator built for traders who want to trade with structure, confirmation, and discipline. It works on all markets and timeframes — equities, crypto, futures, forex, indices. Nothing is hardcoded to a specific instrument.
The indicator contains seven engines that work together:
- Silk ribbon — multi-strand MA system for macro trend
- Htf levels — higher timeframe pivot structure as key levels
- Volume engine — spike detection with delta confirmation
- Signal gate — preset-based multi-condition filter
- Fvg engine — fair value gap detection for entry refinement
- Htf reversal radar — multi-timeframe warning system
- Trade block — locked entry, stop, and take profit management
All seven engines are visible simultaneously on the main chart. The dashboard gives you a real-time read of every active condition. The trade block locks the moment a signal fires and does not move until the trade is resolved.
2. The waiting zone system
This is the core visual innovation of the indicator. Rather than coloring elements only when a signal fires, every component communicates the current stage of a developing setup:
Scanning — price is away from any key level. The ribbon is grey and dimmed. No setup is developing.
Watching — price has entered the proximity zone around a key htf level (within a configurable ATR distance). The level turns gold. The waiting zone is active. This is the "I am watching" state that Livermore described — the market is approaching the decisive point but has not proven anything yet.
Confirmed — price breaks the level with volume spike and body conviction. Everything fires to full color. The signal candle is highlighted. If the preset requires it, the signal fires.
This three-state system means the chart is always telling you something — not just when a signal happens, but what stage of development you are in. Scanning means relax. Watching means pay attention. Confirmed means decide.
3. Presets
The indicator has seven presets that define which gates are required for a signal to fire. You change the preset in the settings under the preset group.
Livermore
The purest implementation of his method. No EMA gate — he did not use EMAs. Level proximity required. Volume spike required. Body conviction required. This preset is designed for traders who want to apply his original philosophy as closely as possible to modern markets. The recommended cooldown is 10 bars based on testing across multiple instruments — long enough to avoid noise, short enough to catch valid retests of confirmed levels. Best results observed on 15m and above.
Boy plunger
The intraday adaptation. Macro trend gate added via the ribbon (HMA 8/21 by default). Level required. Volume required. Body required. Cooldown shorter by default. Built for scalp-oriented traders who want Livermore's structure logic on faster timeframes. The HMA is used instead of EMA because of its faster response and cleaner directional read on lower timeframes.
Ribbon
Uses the MA cross as the primary gate. The level acts as a structural filter rather than a requirement. Best for trend-following traders who want ribbon-confirmed entries near key structure.
Sensitive
Level and volume spike only. No trend gate, no body filter. Produces more signals. Use when you want maximum opportunity detection and prefer to filter visually yourself.
Balanced
Trend, level, and volume. The middle ground between sensitivity and selectivity. Recommended starting point if you are new to the indicator.
Fvg entry
Balanced gates plus a requirement that price is inside an active fair value gap at signal time. This produces the tightest entries and smallest stop distances. Note: fair value gaps are not part of Livermore's original methodology. This preset is for modern traders who combine his structural philosophy with imbalance-based entry timing.
Custom
All engine gates become individual toggles. You build your own preset. Every toggle has a tooltip explaining its function and its relationship to Livermore's original method.
4. The silk ribbon
The ribbon consists of seven MA strands between your fast and slow periods, with gradient fills between them. The MA type applies to all strands simultaneously.
Available types: EMA, HMA, DEMA, TEMA, ZLEMA.
HMA is recommended for intraday scalping. EMA is more stable for swing setups. DEMA and TEMA reduce lag further but can be noisy on short timeframes. ZLEMA minimizes lag while maintaining smoothness.
The ribbon colors purely based on trend direction:
- Green when fast strand is above slow strand (bull)
- Red when fast strand is below slow strand (bear)
- Grey when flat
The color intensity and fill transparency are controlled by a single transparency slider. The fast strand width is separately configurable.
Cross signals (tiny circles) fire when the fast and slow strands cross. These are early warnings of potential trend change, not entry signals by themselves.
5. Htf levels
The indicator pulls pivot highs and lows from a higher timeframe of your choice using request.security. This means the levels you see on your 1m or 5m chart are actual structural levels from the 4h or daily chart — not redrawn approximations.
You can set a separate count for resistance levels and support levels. The nearest-only toggle reduces this to one resistance and one support — the most relevant levels on each side of price.
Each level has three visual states that match the waiting zone system described above. Scanning levels are dimmed. Watching levels turn gold. Confirmed breakout levels turn green or red.
An optional current timeframe overlay adds the pivots from your active chart at high transparency. This gives structural context without cluttering the main htf levels.
The failed breakout marker fires when price confirms a level, then returns through it within a configurable number of bars. This is the direct implementation of Livermore's rule: if the market moves back against you after a breakout, exit quickly with a small loss.
6. Volume engine
The volume engine has two components:
Spike detection: volume must exceed the configurable-period SMA multiplied by the spike multiplier. Default is 1.5x — meaning volume must be at least fifty percent above average to qualify.
Body conviction: the candle body must represent at least a configurable percentage of the total candle range. Default is 55%. This filters out doji candles and wick-heavy indecision candles from being counted as confirmed breakouts.
The volume halo appears on the chart for every spike bar. Its height scales with the volume ratio — a 3x spike produces a taller halo than a 1.5x spike. The halo color uses delta logic:
- Green for bull body with conviction (buying commitment)
- Red for bear body with conviction (selling commitment)
- Gold for high-volume doji or mixed candle (institutional activity, unclear direction)
The ratio text inside the halo shows the exact multiple (2.1x, 3.4x, etc.). Its opacity scales with strength — a weak spike shows faint text, a strong spike shows full text. This means glancing at the halo tells you both the direction and magnitude of institutional participation at that bar.
7. Htf ghost candles
The ghost candle engine projects the last N closed higher timeframe candles to the right of your chart, plus the current live (unfinished) htf candle. This gives you the htf price structure in candle form without switching timeframes.
The ghost candle timeframe is independent from the htf level timeframe. You can show 4H structural levels while projecting 1H ghost candles, or combine them however fits your workflow.
Closed candles are drawn left to right, oldest to newest. Each candle consists of a body box and a wick line. Bull candles are green, bear candles are red. No time labels appear on any candle — pure price structure only.
The live candle (the current unfinished htf bar) is drawn rightmost in a gold tint to distinguish it from closed candles. As the htf bar develops, this candle updates in real time.
Optional OHLC labels show the high, low, and close price to the right of each candle. The close label uses the candle direction color (green or red). High and low labels are grey.
Configurable settings:
- Ghost candle timeframe (independent from htf level TF)
- Number of closed candles to show (1-8)
- Right offset from last bar
- Candle width in bars
- Gap between candles
- OHLC labels on/off
- Bull, bear, wick, and live candle colors
8. Fair value gaps
Fair value gaps are three-bar imbalances where the middle candle leaves a gap between the high of the first candle and the low of the third candle (for bullish gaps) or the reverse. They represent areas where price moved too fast to fill orders on both sides.
In this indicator, fvgs are disabled by default in all presets except fvg entry. This is intentional — they are not part of Livermore's method and were not available to him. They are provided as an optional tool for traders who use modern imbalance concepts alongside structural analysis.
When enabled, fvgs show partial mitigation as price fills them progressively. Fully mitigated gaps are either removed or shown in a dimmed grey depending on your settings. The max visible fvg count prevents the chart from becoming cluttered on instruments with frequent gaps.
9. Htf reversal radar
The reversal radar monitors three configurable higher timeframes simultaneously for potential reversal conditions. A warning fires when two or more timeframes show:
- An EMA cross in the opposite direction to the current trend, or
- An RSI extreme exit (above 70 crossing back down, or below 30 crossing back up)
The warning appears as a small diamond plotshape and is reflected in the dashboard. It does not block signals — it is contextual information that something may be changing on higher timeframes while you are looking at a lower timeframe setup.
10. Rsi divergence
The divergence engine compares price pivot highs/lows to RSI pivot highs/lows. Bullish divergence fires when price makes a lower low but RSI makes a higher low. Bearish divergence fires when price makes a higher high but RSI makes a lower high.
Lines are drawn connecting the pivots that form the divergence. A small "div" text label appears at the endpoint. Line width and colors are separately configurable.
Divergence does not gate signals in any preset. It is contextual information — a potential warning that momentum is weakening even as price extends.
11. Signal quality filters
Three additional filters apply across all presets:
Cooldown: a minimum number of bars must pass between signals. This prevents multiple signals from firing on the same setup as it develops. Recommended: 10 bars as a starting point. Adjust based on your timeframe and how often valid setups appear. The dashboard shows either "ready" or the number of bars remaining.
Max ATR distance: if price is too far extended from the ribbon fast strand, the signal is blocked. This prevents entries on moves that are already largely done. Default is 3 ATR from the ribbon.
Pullback gate: an optional filter that requires price to return toward the ribbon after a breakout before confirming an entry. This is the cleanest implementation of Livermore's preferred entry timing — let the level break, let the market prove it wants to go, then enter on the retest rather than the initial breakout. Fewer signals, better risk to reward.
12. Trade block
The trade block appears only when a trade is active. It locks the moment a signal fires and does not move until the trade closes.
Components:
- Entry line with label showing price and direction
- Stop line (ATR, swing high/low, or hybrid of the two)
- Three take profit lines at configurable R multiples
- Risk zone box between entry and stop
- Reward boxes between entry and each TP
- Phase label above TP3 showing preset and direction
- R:R ratio and win rate displayed in the reward zone
TP lines dim when not yet reached and become fully saturated when hit. This gives you an immediate visual read of where you are in the trade without looking at the dashboard.
When the trade closes, a labeled exit appears at the exit candle:
- tp1, tp2, tp3 in green with dark text
- sl in red with dark text
- trail in gold with dark text
These labels remain on the chart after the trade closes so you can review the history.
Stop loss modes:
- ATR: stop at entry plus or minus ATR multiplied by a configurable value
- Swing: stop at the recent swing high or low
- Hybrid: the wider of the two — provides the most structure-aware placement
Trail stop activates after TP1 is hit. After TP1, the stop moves to breakeven. After TP2, the stop trails behind the ribbon fast strand with a configurable buffer.
13. Dashboard reference
The dashboard updates every bar at the latest bar. All values are live.
Htf — the timeframe driving the structural levels
Macro trend — ribbon direction (bull / bear)
Ribbon — active MA type
Active level — nearest htf pivot level to current price
Level state — scanning / watching / confirmed up / confirmed down
Volume ratio — current bar volume relative to the SMA (e.g. 1.8x avg or spike 2.3x)
Body ratio — current candle body as percentage of total range
Fvg active — count of active unmitigated bull and bear fvgs
Divergence — bull div or bear div if active, otherwise --
Htf radar — number of higher timeframes showing reversal conditions
Signal gate — active preset name
Last signal — most recent signal direction and whether trade is active
Tp progress — three dots showing current trade's TP hit status (o unlit, ^ hit)
Tp1 rate — percentage of total trades that reached TP1
Tp2 rate — percentage of total trades that reached TP2
Tp3 rate — percentage of total trades that reached TP3
Failed breakouts — cumulative count of failed breakout signals
Long win rate — TP1 hit rate on long signals only
Short win rate — TP1 hit rate on short signals only
Cooldown — bars remaining before next signal is allowed, or "ready"
14. Settings overview
Preset group
- Signal gate preset (7 options)
- Custom gate toggles (active only in custom preset)
- Signal cooldown on/off and bar count
- Pullback gate on/off and window
- Max ATR distance on/off and multiplier
Silk ribbon group
- Show ribbon on/off
- MA type
- Fast and slow periods
- Ribbon transparency slider
- Fast strand width
- Show cross signals on/off
- Bull and bear cross colors
Htf levels group
- Htf timeframe
- Pivot length
- Max resistance levels shown (1-8)
- Max support levels shown (1-8)
- Nearest only toggle
- Level line width
- Resistance, support, watching, and confirmed colors
- Show current TF levels on/off
- Current TF pivot length
- Watching zone ATR distance
- Failed breakout lookback bars
Volume engine group
- Show volume halo on/off
- Volume SMA length
- Spike multiplier
- Min body ratio
- Halo height ATR multiplier
Htf ghost candles group
- Show ghost candles on/off
- Ghost candle timeframe
- Number of candles to show
- Right offset, width, and gap between candles
- Show OHLC labels on/off
- Bull, bear, wick, and live candle colors
Fvg group
- Show fvgs on/off (off by default except in fvg entry preset)
- Max visible fvg count
- Min gap size in ATR
- Extend to right on/off
- Keep mitigated gaps on/off
- Bull, bear, and mitigated colors
Htf reversal radar group
- Enable radar on/off
- Three radar timeframes
Divergence group
- Show divergence on/off
- Pivot left and right lookback
- Max bars between pivots
- Show divergence lines on/off
- Line width
- Bull and bear divergence colors
Trade block group
- Show trade block on/off
- Show exit labels on/off
- Exit label colors (TP, SL, trail)
- SL source (ATR, swing, hybrid)
- ATR stop multiplier
- Swing lookback
- TP1, TP2, TP3 R multiples
- Trail stop on/off
- Trail buffer ATR multiplier
- Project bars (width of the trade block)
Dashboard group
- Show dashboard on/off
- Position (four corners)
- Size (tiny, small, normal)
15. How to use — beginners
If you are new to technical analysis and confluence-based trading, start here.
Step 1: add the indicator and set the preset to "balanced."
Step 2: set your htf timeframe to something higher than the chart you are watching. If you are on a 5m chart, use 1H. If you are on a 15m chart, use 4H.
Step 3: watch the dashboard. When level state changes from "scanning" to "watching," that means price is approaching a key level. This is your cue to pay close attention.
Step 4: wait. Do not act on "watching." Wait for volume to confirm. Wait for the ribbon to be aligned. Wait for the body ratio to show a conviction candle. When the level state changes to "confirmed," that is when the indicator agrees a signal may be valid.
Step 5: if a triangle signal appears below or above a candle, that means all preset gates passed simultaneously. The trade block will lock your entry, stop, and targets automatically.
Step 6: manage the trade with the trade block. Watch the TP progress dots in the dashboard. When dots light up, TPs are being hit.
Step 7: after the trade closes, look at the exit label on the chart. This tells you how the trade resolved — tp1, tp2, tp3, sl, or trail.
Step 8: over time, watch the dashboard metrics. TP1 rate above 60% on your chosen preset and timeframe is a solid foundation. If it is below 50%, try adjusting the cooldown, the volume multiplier, or the htf level pivot length.
16. How to use — experienced traders
For traders who understand confluence and want to customize the indicator for their own methodology:
The custom preset gives you individual control over every gate. Use this if you have a specific condition combination that the named presets do not cover.
The pullback gate is the highest-value optional filter in the indicator. Enable it if you find that your signals are entering too early on breakout candles and getting caught in the initial wick. It waits for price to retrace toward the ribbon before confirming entry.
The ribbon period settings matter significantly on lower timeframes. For 1m and 5m, test HMA 8/21. For 15m, HMA 13/34 or EMA 21/55. For 1H and above, EMA 21/89 gives cleaner swing context without too much noise.
The volume spike multiplier should be adjusted by instrument. Crypto and oil tend to have more frequent spikes than equity index futures. Start at 1.5x and move up to 2.0x if you are getting too many false spikes.
The failed breakout lookback (default 3 bars) can be extended to 5-8 bars on higher timeframes where reactions take longer to develop.
For multi-timeframe setups, use the htf reversal radar with timeframes one step above your normal analysis chain. If you trade on 15m, set the radar to 1H, 4H, and daily. A warning on two or more of those while a signal fires on your 15m is meaningful context.
17. Performance notes from testing
The Livermore preset on 15m across multiple instruments (MNQ, BTC futures, micro gold, crude oil) showed the following general ranges across several hundred signals. These are not guarantees and will vary by instrument and market conditions.
TP1 rate: 66-75% depending on instrument
TP2 rate: 27-45%
TP3 rate: 14-25%
Long win rate (TP1 as measure): 68-80%
Short win rate (TP1 as measure): 55-70%
The gap between long and short rates reflects the natural long bias of most risk assets over time. Instruments with persistent directional trends tend to show higher rates in the direction of that trend.
A 10-bar cooldown showed better results than 5 bars or 50 bars in testing. At 5 bars, too many signals clustered around the same level. At 50 bars, valid retests were missed entirely. At 10 bars, the indicator captures the initial breakout and the first meaningful retest while filtering pure noise.
These numbers should be treated as starting points for your own testing, not as targets to optimize around. Your instrument, timeframe, and current market regime will all affect them.
18. Alerts
The indicator includes eight alert conditions accessible through PulseWire's alert system:
- Long signal confirmed
- Short signal confirmed
- Failed breakout detected
- Htf bear reversal warning (2+ timeframes)
- Htf bull reversal warning (2+ timeframes)
- Bull divergence detected
- Bear divergence detected
- Level watching (price approaching key htf level)
Set the alert on "once per bar close" for the cleanest signals without repainting on the current bar.
19. Compatibility
Works on all instruments: equities, ETFs, crypto, forex, futures, indices, commodities.
Works on all timeframes from 1m to monthly.
No hardcoded tick sizes, contract specifications, or session times.
No repainting on closed bars. The current bar may repaint as it develops, which is expected behavior for any indicator.
Pine Script v6. Requires PulseWire Essential plan or above for the best performance due to the multiple request.security calls used for htf levels.
20. What this indicator does not do
- Does not connect to any broker
- Does not place trades automatically
- Does not guarantee any level of profitability
- Does not predict future price movement
- Does not work without price data — it needs bars to calculate
- Does not replace your own market analysis and judgment
The indicator provides structured visual context and a confirmation framework. The decision to enter, manage, and exit a trade remains entirely yours.
21. Disclaimer
This indicator is provided for educational and informational purposes only. Nothing in this document constitutes financial advice or any form of recommendation to buy or sell any financial instrument.
All trading decisions are made entirely by the user. Trading financial instruments involves substantial risk of loss. Past indicator performance on historical data is not indicative of future results. You may lose all of your invested capital.
Anonycryptous accepts no responsibility or liability for any trading losses incurred as a result of using this indicator.
Indicator

No-Repaint Entry Score Multi-Factor Confluence [LunqFX]No-Repaint Entry Score — Multi-Factor Confluence
Most indicators tell you a signal exists. This one tells you how strong
it is, why it fired, and how long it has been holding — on every bar,
across every market.
One number: 0–100. Five factors. Zero repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ HOW TO USE IT — 4 STEPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1 — CHECK HTF TREND
Look at the SIGNAL section of the panel.
HTF Trend shows ▲ BULL or ▼ BEAR based on a confirmed higher
timeframe EMA. Only take setups in this direction.
Counter-trend setups are automatically penalised by the score.
STEP 2 — WAIT FOR THE ENTRY WINDOW
When score reaches your Signal Threshold (default 75), the panel
shows "✓ ENTRY WINDOW" and a green Entry Zone box appears on the chart.
Do not enter below this threshold — conditions are not aligned.
STEP 3 — CHECK THE CAUTION ROW
The panel always shows your weakest component.
Caution: Momentum ↓ → wait for a strong candle close
Caution: Session ↓ → wait for market session to open
Caution: Structure ↓ → you may be entering against the trend
Fix the caution before entering.
STEP 4 — LOOK FOR PRIME AND PERSISTENCE
PRIME label (score ≥80) = all 5 factors aligned. Best entries.
◆ SUSTAINED (3+ bars) → candles turn cyan. High conviction.
◆◆ ELITE (6+ bars) → candles turn gold. Exceptional setup.
The longer the streak holds, the stronger the setup.
STOP LOSS — place below/above the Entry Zone outer band (±0.55 ATR).
TAKE PROFIT — next confirmed swing level or session high/low.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ SCORE TIERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆◆ ELITE PRIME ≥80, held 6+ bars — exceptional, rare
◆ SUSTAINED ≥80, held 3+ bars — high conviction
PRIME ≥80, first bar — valid entry signal
GOOD 65–79 — quality setup, consider entry
MODERATE 40–64 — mixed signals, wait
WEAK <40 — avoid, confluence collapsed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ READING THE DASHBOARD PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ENTRY SCORE — composite score 0–100. Header color shifts with tier:
green (PRIME) → cyan (SUSTAINED) → gold (ELITE) → red (WEAK)
Progress bar — 8-block visual bar. Updates every tick.
Score ▲▼— — arrow shows if score is building (▲) or fading (▼).
Useful for timing: enter when score is rising, not when it peaks.
Tier row — current tier label. Upgrades automatically to
◆ SUSTAINED PRIME or ◆◆ ELITE PRIME when streak activates.
COMPONENTS — individual 0–100 scores:
Structure = HTF EMA alignment × candle direction
Proximity = distance from nearest swing pivot level
Session = trading session quality by hour
Momentum = candle body strength (body ÷ total range)
Volatility = ATR vs 50-bar average (filters dead and spiking markets)
HTF Trend — higher timeframe direction. Confirmed bar only, no drift.
Caution — your weakest component. One actionable reason to wait.
Entry — ENTRY WINDOW or WAIT based on your Signal Threshold setting.
Persistence — consecutive PRIME bar counter.
— = no active streak 3 bars = SUSTAINED 6 bars = ELITE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ RECOMMENDED TIMEFRAMES AND MARKETS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best timeframes: 1H · 4H · Daily
Works on: 5M · 15M · 30M (more signals, lower quality per signal)
Avoid: below 5M
Forex (EURUSD GBPUSD USDJPY) → NY or London session mode
Gold (XAUUSD) → NY session, 1H or 4H
Crypto (BTCUSD ETHUSD) → Crypto 24/7 mode
Indices (SPX NAS DAX) → NY session
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ WEIGHT PRESETS FOR DIFFERENT TRADING STYLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Weights are fully adjustable. Presets to get you started:
Trend Following (default)
Structure 30 / Proximity 25 / Session 20 / Momentum 15 / Volatility 10
Scalping (5M–15M)
Structure 20 / Proximity 15 / Session 30 / Momentum 25 / Volatility 10
Swing Trading (Daily–Weekly)
Structure 35 / Proximity 30 / Session 5 / Momentum 20 / Volatility 10
Mean Reversion (range markets)
Structure 15 / Proximity 40 / Session 20 / Momentum 15 / Volatility 10
Crypto 24/7
Structure 30 / Proximity 30 / Session 5 / Momentum 20 / Volatility 15
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ ALERTS — 6 CONDITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Prime Setup Detected — score enters ≥80
2. Good Setup Forming — score enters 65–79 from below
3. Setup Degraded — score drops from quality zone
4. Weak Setup Warning — score collapses below 40
5. Sustained PRIME (3 bars)— streak hits 3 consecutive PRIME bars
6. Elite PRIME (6 bars) — streak hits 6 consecutive PRIME bars
Set alerts to "Once per bar close" in PulseWire settings.
All alerts fire on confirmed closed bars only — no false triggers.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ HOW THE SCORE IS CALCULATED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Score = weighted average of 5 components, normalised to 100%.
Weights are user-configurable and auto-normalised — they do not
need to sum to exactly 100.
1. STRUCTURE (default 30%)
Compares candle direction to HTF EMA(20) direction.
Fully bi-directional: bearish candle in bearish HTF = same score
as bullish candle in bullish HTF.
Aligned: score = 65 + (body ratio × 35), max 100
Misaligned: score = 5 + (body ratio × 25), max 30
2. PROXIMITY (default 25%)
Measures distance from the nearest confirmed pivot high or low
using ta.pivothigh/pivotlow (5-bar lookback) in ATR units.
Score = 100 − (ATR distance × 18), clamped 0–100.
At the level = 97–100. Far from structure = 0–20.
3. SESSION (default 20%)
Hour-by-hour quality score based on New York time.
NY mode: 08:00–11:00 = 100 · 03:00–05:00 = 88 ·
11:00–13:00 = 72 · 13:00–16:00 = 60 ·
dead zones = 25
London and Tokyo modes follow their respective peak hours.
Crypto 24/7 = flat 75 (no session bias).
4. MOMENTUM (default 15%)
Candle body divided by total candle range.
Full-body candle = 100. Doji = 0.
Filters indecisive wick-heavy candles.
5. VOLATILITY (default 10%)
ATR(14) divided by its 50-bar SMA.
Sweet spot 0.7–1.6 = score 100.
Too quiet (< 0.7): score scales down.
Too explosive (> 1.6): score drops sharply.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ NO-REPAINT — HOW IT IS ACHIEVED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Three sources of repaint addressed:
HTF EMA: request.security(..., ta.ema(close,20) , lookahead_on)
The reads the EMA of the PREVIOUS confirmed HTF bar.
Locked until the next HTF candle closes. No live-bar drift.
Labels: all signals fire only on barstate.isconfirmed.
Never drawn on an open bar.
Pivots: 5-bar right lookback on confirmed bars only.
Verify: PulseWire Replay mode — bar-by-bar playback matches
published chart exactly on any historical period.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Higher Timeframe — blank = auto.
Auto logic: 1–5M→30M · 6–15M→1H · 16–60M→4H ·
61–240M→Daily · Daily→Weekly · Weekly→Monthly
Signal Threshold — Entry Window fires above this score. Default 75.
PRIME tier is always fixed at ≥80 regardless of this setting.
Trading Session — NY · London · Tokyo · Crypto 24/7
Component Weights — all five individually adjustable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
█ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is a decision-support tool, not a trading strategy.
No backtested win rate or profit factor is implied or claimed.
Past signals do not guarantee future performance.
Always use a defined stop loss and proper position sizing.
Trading involves risk of loss. Use at your own discretion. Indicator

SMC Flip Zone Engine ViprasolOverview
The original detects a break of structure, walks back to find the reaction leg that preceded it, and draws a colored zone box, with optional Liquidity Sweep, Fair Value Gap, HTF EMA alignment, and OTE (discount/premium) filters that can be toggled on to reduce noise. This version keeps that zone-detection engine intact and adds a Viprasol confluence and lifecycle layer: a 0-4 confluence score with A/B/C grading, a minimum-score gate, zone mitigation (retest) and invalidation tracking, a per-side cooldown, and an ATR-free risk overlay that projects Entry/SL/TP from a zone when price returns to it.
It is built for traders who work with break-of-structure flip zones and want each zone graded by how much SMC confluence actually backs it, plus automatic tracking of when zones are retested or broken.
How It Works
Structure Break & Reaction Leg (from original):
A bullish flip is triggered when close crosses over the prior highest-high of the lookback window (supply broken); a bearish flip when close crosses under the prior lowest-low (demand broken). On a break, the script walks back over the reaction-leg length to find the extreme of the trap leg — for a bull flip, the lowest low in that window and its bar's high define the zone's bottom and top. A box is drawn from that reaction bar forward.
SMC Filters (from original, toggle-gated):
Four optional filters can each be required before a zone is drawn:
- Liquidity Sweep — the reaction leg must have exceeded the prior structural extreme (taken liquidity).
- FVG / Displacement — a fair value gap must be present around the break (e.g. low > high ).
- HTF Alignment — bull zones only above, bear zones only below, the 50 EMA of a higher timeframe.
- OTE (Discount/Premium) — the zone midpoint must sit in the discount half (bull) or premium half (bear) of the leg, where equilibrium = leg low + (leg high − leg low) × 0.5.
Confluence Score & Grade (new):
Independently of which filters are toggled on, the script evaluates all four confluence conditions as raw booleans on every new zone and sums them into a 0-4 score:
score = sweep? + fvg? + ote? + htfAligned?
The score is mapped to a grade — A (>= 3), B (= 2), C (<= 1) — and printed on the zone box. This means even with all filters off (so every break draws a zone), you can still see which zones are backed by genuine confluence. A "Minimum Confluence Score" input then lets you suppress any zone below a chosen score without having to hard-require specific filters.
Zone Mitigation & Invalidation (new):
Every existing zone is tracked across bars. A zone is mitigated the first time price trades back into its range (low <= top and high >= bot) — this fires a mitigation alert (a potential entry as the flip zone is retested). A zone is invalidated when price closes through it (close < bot for a bull zone, close > top for a bear zone); invalidated zones are recolored gray (or can be left as-is) and fire an invalidation alert. Each transition fires once per zone.
Risk Overlay on Mitigation (new):
When "Show SL/TP on Mitigation" is enabled, the first retest of a zone projects three lines: Entry at the near edge of the zone, Stop-Loss at the far edge (so the zone height is the risk), and Take-Profit at Entry ± zone-height × the Risk:Reward ratio. Colored ENTRY/SL/TP price labels mark the line ends. Only the most recent mitigation's projection is kept, to avoid clutter.
Per-Side Cooldown (new):
An optional cooldown enforces a minimum number of bars between new zones on the same side (tracked as bar_index − lastSideBar >= cooldown), preventing a burst of overlapping zones during a single fast move.
What Is Original (Viprasol Additions)
1. Confluence score (0-4) and A/B/C grade printed on each zone, computed from raw sweep/FVG/OTE/HTF conditions regardless of which filters are toggled.
2. Minimum-confluence-score gate — suppress low-quality zones without hard-requiring individual filters.
3. Zone mitigation (retest) detection with a dedicated alert.
4. Zone invalidation detection (price closes through) with recoloring and a dedicated alert.
5. Risk overlay — Entry/SL/TP projection with colored price labels drawn on the first mitigation of a zone, sized by zone height and the Risk:Reward ratio.
6. Per-side zone cooldown to prevent clustering.
Key Features
From the Original:
- Break-of-structure detection via crossover/crossunder of the lookback high/low
- Reaction-leg walk-back to locate the trap zone behind the break
- Bullish and bearish flip-zone boxes with labels
- Optional Liquidity Sweep, FVG, HTF 50-EMA alignment, and OTE filters
- Oldest-zone pruning to limit chart clutter
Added in This Version (Viprasol):
- 0-4 confluence score with A/B/C grade on every zone
- Minimum-score quality gate
- Mitigation (retest) and invalidation lifecycle tracking with recoloring
- Entry/SL/TP risk overlay with colored price labels on mitigation
- Per-side cooldown
- Info dashboard (active zone counts, HTF state, filters-on count, min score)
- Six alert conditions with dynamic {{ticker}}/{{close}}/{{interval}} messages
How to Use
Getting Started:
1. Add to a standard candlestick chart (not Heikin Ashi).
2. With all filters off (default), every structure break draws a graded zone — read the A/B/C grade to judge quality.
3. To trade only stronger setups, either raise "Minimum Confluence Score" or turn on the specific filters you require.
Reading the Chart:
- Green zone = bullish flip (drawn after a supply break); red zone = bearish flip (after a demand break).
- The bracket on each zone, e.g. , is the confluence grade and score.
- A zone turning gray means price closed through it — it is invalidated.
- When price returns into a zone and SL/TP is enabled, Entry/SL/TP lines and price labels project to the right.
Recommended Starting Points:
- Intraday (5m-15m): Lookback 20, Reaction 7, Min Score 0-1, Cooldown 0-3
- Swing (1H-4H): Lookback 30, Reaction 7-10, Min Score 2, enable HTF alignment
- Higher conviction: Min Score 3 (grade A only), or require Sweep + FVG
These are starting points only — every market and timeframe behaves differently. Backtest and adjust before trading live.
Settings
Market Structure: structure lookback period, reaction-leg length, and max zones kept per side.
SMC Strict Filters: toggles for Liquidity Sweep, FVG (displacement), HTF 50-EMA alignment (with HTF resolution), and OTE (discount/premium). All default off so zones appear immediately.
Confluence & Quality (Viprasol): minimum confluence score, show grade on zone, and per-side zone cooldown.
Risk Overlay (Viprasol): show SL/TP on mitigation, show price labels, and the Risk:Reward ratio.
Visuals: bullish/bearish fill and border colors, and a toggle to dim invalidated zones gray.
Dashboard / Display: dashboard toggle and position.
Alerts
1. New Bull Zone — a bullish flip zone was created
2. New Bear Zone — a bearish flip zone was created
3. Any New Zone — either direction created
4. Bull Mitigation — price returned to a bullish zone (potential long)
5. Bear Mitigation — price returned to a bearish zone (potential short)
6. Zone Invalidated — a zone was closed through and invalidated
All alerts include {{ticker}}, {{close}}, and {{interval}} for dynamic notification messages.
Limitations & Disclaimer
- Zones are created on the bar the structure break confirms; because detection uses crossover/crossunder of close versus the prior swing, signals are evaluated on the closing relationship and the reaction leg is identified after the fact.
- The HTF alignment filter uses request.security with lookahead disabled; HTF values update only as the higher-timeframe bar progresses.
- The FVG and OTE checks are simplified single-bar/leg-midpoint approximations, not full multi-leg ICT constructs.
- Mitigation is detected on the first wick back into a zone; this is an awareness signal, not a guaranteed reversal.
- SL/TP lines and price labels are visual references only and do not place or manage trades.
- Filters and the minimum-score gate reduce the number of zones; in choppy ranges valid zones may be suppressed, while in fast trends overlapping zones may appear if cooldown is off.
- Past performance does not guarantee future results. This indicator is for educational and analytical purposes only and is not financial advice. Always use proper risk management and test on historical data before trading live.
Credits & Attribution
Based on an open-source "Advanced SMC Flip Zones" community indicator, which provided the break-of-structure detection (crossover/crossunder of the lookback high/low), the reaction-leg walk-back that locates the trap zone, the bullish and bearish flip-zone boxes, the optional Liquidity Sweep / FVG / HTF 50-EMA / OTE filters, and the oldest-zone pruning. Added by Viprasol: the 0-4 confluence score and A/B/C grading, the minimum-score quality gate, zone mitigation and invalidation lifecycle tracking with recoloring, the Entry/SL/TP risk overlay with colored price labels, the per-side cooldown, the info dashboard, and the six-condition dynamic alert set.
Published open-source per PulseWire House Rules.
Indicator

Viprasol Naive Bayes Order FlowOverview
This indicator is based on "Institutional Order Flow Signals " by PMT, an open-source script that classifies order-flow conditions with a Naive Bayes classifier trained on Cumulative Volume Delta (CVD) features. The original produces a posterior probability that the current bar belongs to a Bull, Bear, or Diverged regime, then prints directional signals when that probability clears a threshold and price agrees with a trend EMA. This version keeps that classifier intact and layers a Viprasol signal-filter stack on top: a signal cooldown, an optional volume-surge confluence requirement, a bar-close confirmation gate, live classifier hit-rate tracking, and regime-flip detection.
It is built for traders who want a probabilistic read on whether buying or selling pressure (measured through volume delta) is currently dominating, with explicit noise controls applied before any signal fires.
How It Works
Cumulative Volume Delta (from original):
Each bar's volume is split into buying and selling pressure by where the close sits inside the bar's range. Buy volume = volume × (close − low) / range; sell volume = volume × (high − close) / range. The bar delta is buy minus sell, and these deltas are summed into a running CVD line. CVD rising means net buying pressure is accumulating; falling means net selling.
Three Classifier Features (from original):
The classifier is trained on three z-score-normalised features so they are comparable across instruments:
- F1 — CVD rate of change over the momentum period, normalised against its own rolling mean and standard deviation.
- F2 — price/flow divergence: price ROC minus CVD ROC, normalised. Large values flag price moving without matching flow (or vice versa).
- F3 — CVD slope: the first difference of a linear regression on the CVD line, normalised. Captures the acceleration of flow.
Naive Bayes Classification (from original):
Every bar is labelled into one of three classes from the prior bar's outcome — Bull (price up and CVD up), Bear (price down and CVD down), or Diverged (anything else). For each class the script maintains running sums of each feature and each feature squared, from which it derives a per-class mean and standard deviation online (no arrays of history needed). The likelihood of the current feature vector under each class is the product of three Gaussian PDFs (the "naive" independence assumption). Combined with class priors (the observed class frequencies), Bayes' rule yields the posterior probability of each class:
posterior(class) = prior(class) × likelihood(class) / evidence
A signal requires the posterior to clear the entry threshold, price to be on the correct side of the trend EMA, and CVD to be moving in the signal's direction. Signals fire only on the first bar of a new cluster to avoid consecutive repeats.
Signal Cooldown (new):
After any signal fires, a configurable number of bars must elapse before the next signal of any direction is allowed, tracked as bar_index − lastSignalBar >= cooldown. During fast moves the classifier can re-cross the threshold repeatedly; the cooldown collapses those into one actionable signal. A cooldown of 5 bars on a 15-minute chart enforces a 75-minute minimum gap between entries.
Volume-Surge Confluence (new):
When enabled, a signal is additionally gated on current volume exceeding its rolling average by a multiplier (default 1.5×). The logic is volume > sma(volume, length) × multiplier. This filters out classifier signals that occur on thin participation, where flow estimates are least reliable.
Bar-Close Confirmation (new):
When enabled, signals are only confirmed on a fully closed bar (barstate.isconfirmed). Because the posterior and CVD update intrabar, a developing bar can flip in and out of a signal state before it closes; this gate holds the signal until the bar settles.
Classifier Hit-Rate Tracking (new):
On every live bar the script takes the argmax of the three posteriors as its prediction, then on the following bar compares that prediction to the realised class label. It accumulates a running hit count and evaluation count and displays the ratio as a live "Hit Rate" in the dashboard. This is an honest in-sample diagnostic of how often the classifier's single most-likely class matched the next realised label — not a trade win rate.
Regime-Flip Detection (new):
The script tracks the active regime (+1 bull, −1 bear, 0 neutral) and fires a dedicated alert whenever it transitions into a new bull or bear regime, independent of the entry-cluster logic. Useful for traders who want to be notified of context shifts rather than individual entries.
Diverged Class Surfaced (new):
The original computes a third "Diverged" class but never displays its posterior. This version surfaces P(Diverged) in the dashboard so the trader can see when the classifier considers the tape conflicted (price and flow disagreeing) rather than directional.
What Is Original (Viprasol Additions)
1. Signal cooldown system — enforces a minimum bar gap between signals to prevent clustering during fast moves.
2. Volume-surge confluence filter — optionally requires above-average volume on the signal bar so signals occur on real participation.
3. Bar-close confirmation gate — optionally holds signals until the bar closes, removing intrabar flip-flop.
4. Classifier hit-rate tracking — online comparison of the argmax-posterior prediction to the next realised class, displayed live.
5. Regime-flip detection — separate state machine and alert for bull/bear regime transitions.
6. Diverged-class posterior surfaced in the dashboard, exposing the third class the original computed but hid.
Key Features
From the Original (PMT):
- CVD line built from close-position volume splitting
- Three z-score-normalised classifier features (CVD ROC, price/flow divergence, CVD slope)
- Online Naive Bayes classifier over Bull / Bear / Diverged classes with Gaussian likelihoods
- Posterior-probability entry threshold with trend-EMA and CVD-direction agreement
- Confidence tiers (high / mid / normal) driving signal shape and band opacity
- Confidence-scaled posterior band and regime background shading
- ATR-based SL/TP projection lines
- Warmup gate (LIVE only after the classifier has trained on enough bars)
- Zen mode for clean screenshots
Added in This Version (Viprasol):
- Signal cooldown, volume-surge confluence, and bar-close confirmation filters
- Live classifier hit-rate diagnostic
- Regime-flip detection and alert
- Diverged-class posterior in the dashboard
- Colored TP / ENTRY / SL price labels on the projection lines
- Expanded info dashboard with selectable position
- Six alert conditions with dynamic {{ticker}} / {{close}} / {{interval}} messages
How to Use
Getting Started:
1. Add to a standard candlestick chart (not Heikin Ashi).
2. Wait for the dashboard to read LIVE — the classifier needs to train on enough bars first (status shows WARMUP and an N-trained counter until then).
3. Long signals print below the bar (circle = high conviction, triangle = normal); short signals print above the bar.
Reading the Dashboard:
- Bull P / Bear P / Diverged P — the three class posteriors. The dominant one drives the regime.
- CVD Flow — whether net delta is currently rising (buy) or falling (sell).
- Vol Surge — whether the current bar cleared the volume-surge threshold.
- Hit Rate — share of bars where the most-likely class matched the next realised class.
- N Trained — how many bars the classifier has trained on; ✓ once warmed up.
Recommended Starting Points:
- Crypto/Forex (5m-15m): Lookback 100, Threshold 0.70, Cooldown 3
- Stocks (15m-1H): Lookback 120, Threshold 0.72, Cooldown 5
- Indices (1H-4H): Lookback 150, Threshold 0.75, Cooldown 8
These are starting points only. Volume data quality and tape behaviour differ by instrument — backtest and adjust before trading live.
Settings
Naive Bayes Classifier: classifier lookback (bars before signals go live), entry threshold (minimum posterior), and prior bull probability.
CVD Features: CVD momentum period, CVD slope period, and the z-score normalisation window applied to all features.
Signal Filters (Viprasol): signal cooldown in bars, bar-close confirmation toggle, volume-surge requirement with average length and multiplier.
Signal Levels: show SL/TP lines, show price labels, SL ATR multiplier, risk:reward ratio, ATR period, and trend EMA period.
Visual: posterior band toggle, regime background toggle, and bull / bear / diverged colors.
Dashboard / Display: Zen mode, dashboard toggle, and dashboard position.
Alerts
1. Long Signal — bull posterior cleared the threshold with CVD rising and all filters passed
2. Short Signal — bear posterior cleared the threshold with CVD falling and all filters passed
3. Any Signal — either direction fired
4. High-Conviction Long — long signal with P(Bull) at or above 85%
5. High-Conviction Short — short signal with P(Bear) at or above 85%
6. Regime Flip — the active regime transitioned into a new bull or bear state
All alerts include {{ticker}}, {{close}}, and {{interval}} for dynamic notification messages.
Limitations & Disclaimer
- The classifier trains in-sample on the chart's own history and updates continuously; the displayed hit rate is a diagnostic of class-label agreement, not a trade win rate, and is not predictive of future results.
- CVD here is approximated from candle range and volume, not from true bid/ask tick data. Volume quality varies by broker and instrument, so the same symbol on different feeds can produce different signals.
- The classifier needs a warmup period before signals appear; on fresh charts or low-history symbols it may stay in WARMUP for a long time.
- Posteriors and CVD update intrabar; without bar-close confirmation enabled, signals can appear and disappear before a bar closes.
- SL/TP lines and price labels are visual references only — they do not place or manage trades.
- Filters reduce noise but also reduce signal count; in fast trends the cooldown may delay otherwise valid entries.
- Past performance does not guarantee future results. This indicator is for educational and analytical purposes only and is not financial advice. Always use proper risk management and test on historical data before trading live.
Credits & Attribution
Based on "Institutional Order Flow Signals " by PMT, which provided the CVD construction, the three z-score-normalised classifier features (CVD ROC, price/flow divergence, CVD slope), the online Naive Bayes classifier over Bull/Bear/Diverged classes with Gaussian likelihoods, the posterior-threshold entry logic with trend-EMA and CVD agreement, the confidence tiers, the posterior band and regime background, and the ATR-based SL/TP projection lines. Added by Viprasol: signal cooldown, volume-surge confluence filter, bar-close confirmation gate, live classifier hit-rate tracking, regime-flip detection and alert, the surfaced Diverged-class posterior, TP/ENTRY/SL price labels, an expanded dashboard, and a six-condition dynamic alert set.
Published open-source per PulseWire House Rules.
Indicator

Adaptive Gann & Fibonacci ConfluenceAdaptive Gann & Fibonacci Confluence
Overview
This indicator automatically detects the dominant swing on your chart — the highest high and lowest low over a lookback you set — and projects three classic geometric tools from that single shared anchor: a Gann fan, a Fibonacci fan, and Fibonacci retracement levels. Because all three are built on the same swing, their levels can be compared directly on one chart.
Why these tools are combined
A Gann fan and Fibonacci retracements measure two different things. A Gann fan measures trend slope — the geometric balance between price and time, where the 1×1 angle represents one unit of price per unit of time. Fibonacci retracements measure pullback depth — proportional price levels inside a move (23.6 / 38.2 / 50 / 61.8 / 78.6%). Used separately, each tool is anchored differently and the two rarely line up. By forcing both to share one auto-detected swing origin and direction, the script exposes price areas where a Gann angle and a Fibonacci level coincide. A level confirmed by both slope geometry and retracement proportion is the intended point of interest — more meaningful than a level from either method alone.
How the components work together
The script finds the swing once, then anchors the Gann fan, the Fibonacci fan, and the retracement grid to the same origin and trend direction. The Gann rays and the Fibonacci levels therefore sit on a common reference, so you can spot where a fan ray crosses a retracement level at roughly the same price — that overlap is the "confluence." Shaded zones mark the retracement bands, and a compact table summarizes the live read: directional bias, nearest support and resistance among the levels, current retracement depth, and a plain-language note on where price sits in the swing.
What makes it original
Rather than drawing Gann angles at fixed chart degrees (which break when you change instrument or zoom), the 1×1 angle here is scaled to the swing's actual price-per-bar, so the angles stay consistent across symbols and timeframes. That swing-scaled Gann geometry is then rendered together with Fibonacci fan and retracement structure on a single, automatically updating anchor — with confluence surfaced visually and condensed into a live snapshot table. The drawing engine rebuilds only when the underlying swing changes, keeping it light.
How to use it
Set Swing lookback to the structure you trade: smaller values track recent swings, larger values capture higher-timeframe structure.
The gold line is the 1×1 (trend-balance) angle; how price reacts to it gauges trend strength.
Treat confluence (a fan ray meeting a retracement level) as an area of interest to study, not an automatic signal.
1×1 unit = 0 auto-scales to the swing; set it above 0 to fix a manual ticks-per-bar Gann unit.
Toggle the Gann fan, Fibonacci fan, retracement, zone shading, glow, and table independently in settings.
Disclaimer
For educational and informational purposes only. This script plots geometric levels and a mechanical summary of price position. It is not financial advice, not a recommendation to buy or sell, and offers no guarantee of future performance. Always do your own research and manage your risk. Indicator
