Trade Wzrd - Null Range [Rampage Series]✨ TRADE WZRD - NULL RANGE
Every range has two middles. The one price draws - the midpoint - and the one VOLUME draws: the exact price where everything traded inside the range nets to nothing. Half the participation above, half below. The balance point where the tug-of-war reads null .
Null Range plots that line, builds a channel out of volume's own deviation, and fades the pokes that venture beyond it - out where participation thins to nothing. Not a promise - a receipt.
⚡ THE RAMPAGE SERIES ⚡
Null Range is a release in the Rampage Series - a growing family of volume-and-levels tools built by Trade Wzrd. Every Rampage script ships with the same built-in automation layer: signals don't just paint, they speak. One alert, one webhook, and every entry, exit and fill fires a plain-text order string.
✨ THE NULL RANGE ✨
The dealing range's volume is distributed across a hundred invisible bins, and the 50/50 split becomes a single glowing line. Not a midpoint. Not an average. The price where the crowd's money actually nets to zero. And the line itself is the regime read: it runs CYAN when volume's center of mass sits in the cheap half, RED when it sits in the expensive half. Its right-edge tag carries VOL CENTER - the exact percentage. Hover it for the full story.
⚡ THE VOLUME CHANNEL ⚡
The same bins yield volume's standard deviation - so Null Range draws the channel where participation actually lives: two glowing sigma walls around the line with graded fills, and nothing else. ~95% of traded volume lives inside. Price beyond the wall is price out where volume goes null - extended, exhausted, and ripe for the trap.
✨ KINETIC FUEL ✨
Under the structure, a fuel strip burns: volume times speed, candle by candle, normalized against recent history. Bull fuel hangs off the discount wall in cyan, bear fuel off the premium wall in red - spike squares mark the bars that moved real mass, and WALL SLAM diamonds stamp the bars where that mass physically hit a wall. When a trap springs off a slam, the whole crowd pushed - and still failed.
⚡ THE MARGIN PROFILE ⚡
In the right margin, the range's own bins draw themselves quietly - spanning exactly wall to wall, because that's where the volume that matters lives. Every row is tinted by who owned that price: cyan where buyers dominated, red where sellers did. The Point of Control is ringed in gold. Width, offset, delta coloring - all yours. It's the same engine as the line, laid on its side.
✨ FLOW HEAT ✨
No labels. No lines. Just heat. When price sinks while buy pressure quietly rises, the tape washes faint cyan - someone is loading into weakness. When price rises while sell pressure builds, it washes faint red - someone is unloading into strength. The disagreement between pressure and price, painted as weather. The dashboard's FLOW HEAT row names the shift when it's live.
✨ THE FILTERS ✨
Trade only what the database believes in. Min Win Probability skips signals from cold buckets (once they have enough samples to judge - TRACKING signals always pass). Max Extension skips blow-off pokes. Balance Alignment demands volume's center be on your side. Every active filter shows on the dashboard's FILTERS row, so you always know what the engine is allowed to take.
✨ THE TRAP ✨
The signal: price pokes beyond the two-sigma wall - out into the null - and closes back inside within the trap window. The fakeout. Fade it back toward the line - the default target IS the null range itself, because mean-reversion trades deserve mean-reversion targets. Premium traps short from above, discount traps long from below. EQ Reclaim mode (decisive crosses back through the line, 0.2 ATR minimum, no whipsaw) is there for continuation players.
⚡ THE CONVICTION SCORE ⚡
Here is where Null Range stops asking for trust. Every signal carries one compact number - CONVICTION - that no single ingredient could give you. Underneath it sits this chart's own live database: traps bucketed by how deep the extension ran (0–0.25, 0.25–0.5, 0.5–1.0, 1.0+ ATR beyond the wall), reclaims bucketed by whether volume's center was on their side. That historical win rate is the base - then the score bends with the scenario: volume's center on your side or against you, a tidy poke or a blow-off, a spike bar or thin air. History + balance + depth + fuel, fused into one grade from 5 to 95. Early on, before the buckets earn their samples, the score runs on structure alone - and says so.
And the hover is REACTIVE . Point at any signal and the verdict breaks the score into its parts: the conviction line, thin-sample warnings when a bucket is young, hot/cold bucket verdicts, depth-risk notes on blow-off extensions, balance alignment with the crowd's cost basis, and a fuel read on the participation behind the poke. Same model, different situation, different answer.
✨ THE RECEIPTS ✨
Signals stay on the chart as compact conviction chips - ▲ T 72, ▼ R 64 - one glance, one grade. Every closed trade stamps ✓ TP HIT or ✗ SL HIT exactly where it died. The dashboard tracks the VOL CENTER and PRICE POS gauges, the regime word, EQ/POC/channel width, the last signal with its conviction, the FLOW HEAT state, the database total, and a 10-dot streak row. The trade box carries entry, dashed stop, solid target with live R:R - and the conviction rides inside the entry tag.
⚡ YOURS TO SHAPE ⚡
Every visible piece answers to you: walls on or off, the line gradient or solid, EQ and POC tags toggleable, POC width, profile width and offset, delta colors or one solid tone, fuel strip, slam markers, flow heat, channel fills. The defaults are the house look - the knobs are all yours.
⚡ BUILT-IN AUTOMATION ⚡
One alert ("Any alert() function call") + your webhook URL, and Null Range speaks TradeWzrd order strings:
⚡ Entries with SL/TP prices attached
⚡ Optional opposite-signal close prepended to new entries
⚡ TP/SL-hit close alerts that mirror the on-chart trade box
The same readable comma syntax drives automation across 7+ platforms - percent-risk or fixed-volume sizing, magic numbers, order comments. No lock-in: plain text, any endpoint.
✨ HOW TO READ IT ✨
⚡ One glowing line = where the range's volume nets to null. Cyan = volume built low, red = volume built high
⚡ The graded channel = where ~95% of the volume lives. Price outside the wall = out in the null, extended
⚡ Fuel candles below/above the walls = kinetic energy per bar; squares = spike bars; diamonds = wall slams, mass meeting structure
⚡ Faint cyan/red wash behind the tape = flow heat: pressure and price disagreeing
⚡ The quiet profile in the margin, wall to wall = who owns each price: cyan rows buyers, red rows sellers, gold ring POC
⚡ ▲ T / ▼ T chips = the trap just failed - the number is conviction: this chart's track record bent by balance, depth and fuel. Hover for the breakdown
⚡ ▲ R / ▼ R chips = decisive reclaims of the line, same conviction engine
⚡ Dashboard: gauges, regime, FILTERS row, FLOW HEAT row, DATABASE row (trap and reclaim rates separately), streak dots
⚡ HOW TO USE ⚡
⚡ Drop it on any liquid symbol, 5m to 4H - tuned defaults for XAUUSD 15m
⚡ Let it run. The database is empty at first - conviction runs on structure alone until the buckets earn their samples
⚡ Compare buckets: if shallow traps earn 70% and deep ones earn 40%, you know exactly which pokes to take
⚡ Wire one alert when you're ready to automate
✨ LIMITATIONS ✨
⚡ Conviction starts from this chart's own history, bucketed - a sample, not a promise. Small samples lie confidently; the hover tells you when a bucket is young
⚡ The database resets when you change symbols, timeframes, or core settings - every context earns its own track record
⚡ Traps fade extensions - in a runaway trend, the outer wall keeps getting hit and the trap window is the honest filter
⚡ On symbols without volume data, the line falls back to midpoint and sigma to range/4
✨ CREDITS ✨
Kinetic fuel concept inspired by "Kinetic Momentum Vectors" by BigBeluga (CC BY-NC-SA 4.0). Concept only and Null Range's fuel is re-engineered from zero: volume times speed, burning off our own volume-channel walls. No code or geometry shared with the original.
Rift maps WHERE the volume traded. Null Range knows WHERE THE VOLUME NETS TO NOTHING - and what fading the void has been worth.
Educational shell. Not financial advice. Not a signal service. 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

Premium & Discount Matrix1. Dynamic Intraday Dealing Range
The core of the PD Matrix is the "dealing range." The script calculates this by finding the absolute highest high and lowest low of the current daily session:
It automatically detects when a new day begins.
As the day progresses and price creates new highs or lows, the script dynamically updates the top and bottom boundaries in real-time.
2. Matrix Box & Equilibrium
Once the dealing range is established, it draws the matrix components:
The Box: It draws a single, fully transparent rectangle around the entire daily range. The background is completely clear so it doesn't obstruct your candlesticks, and only the outer border is visible.
Equilibrium (50%): It automatically calculates the exact mathematical midpoint of the daily high and low. It then draws a dashed line straight through the middle of the box to represent the 50% Equilibrium level.
3. Smart Market Labeling
To make the zones instantly readable, the script places three floating text labels neatly to the right of your current live candle. These labels move with the price action:
Premium (Red): Positioned in the upper half (above 50%). According to ICT concepts, this is expensive pricing where institutional algorithms seek to distribute (sell short).
Eq (50%) (Gray): Points directly to the dashed equilibrium line, representing fair value.
Discount (Green): Positioned in the lower half (below 50%). This is cheap pricing where institutional algorithms seek to accumulate (buy long).
4. Customization & Performance
Like the previous script, this is highly optimized for PulseWire. It uses a single dynamic box, a single line, and three labels that constantly update on the very last bar, preventing your chart from being cluttered with hundreds of historical drawings.
You can fully customize the colors of the box border, the equilibrium line, and all three text labels directly from the indicator settings! 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

Cross Exchange Premium Drift Map [AGPro Series]Cross Exchange Premium Drift Map
🧠 Core Idea
Is the active crypto venue drifting away from the exchange basket, or is the market staying aligned across venues?
📌 Overview / What it does
Cross Exchange Premium Drift Map is a crypto market structure tool designed to compare the active chart against a configurable basket of exchange reference symbols.
Instead of reading only the local chart, the script builds a venue basket from multiple exchange feeds and measures whether the active venue is trading at a premium, discount, or neutral alignment versus that basket.
It produces a premium drift path, a dispersion path, a right-side venue premium stack, event labels, strongest/weakest venue context, and a compact panel. It does not predict price direction, automate trading, or claim that a premium will close immediately.
🎯 Purpose & Design Philosophy
This script was built to fill a specific gap in crypto analysis: many traders look at one exchange chart and assume that chart represents the whole market.
Crypto is fragmented across venues. Premiums, discounts, and venue dispersion can appear before important shifts in liquidity, risk appetite, or execution quality.
The purpose of this tool is to make that fragmentation visible in a structured, readable, and non-predictive way.
⚡ Why This Script Is Different
Most tools focus on the active chart alone, or compare futures against spot using a basis model.
This script does NOT operate as a funding, carry, open interest, or perp-versus-spot basis indicator.
Instead, it compares the active venue against a configurable cross-exchange reference basket, then maps premium drift, venue dispersion, strongest venue, weakest venue, and alignment quality into a dedicated visual workflow.
⚙️ Methodology
1. Venue Basket Construction
The script requests multiple user-defined exchange symbols and builds an average reference basket from available venue prices.
2. Premium Drift Detection
The active chart is compared against the venue basket to calculate premium or discount.
3. Dispersion Evaluation
The script measures how far individual venues are spread around the basket.
4. State Classification
Premium, discount, spread expansion, spread compression, and exchange alignment are converted into readable states.
5. Visual Output
The chart displays premium paths, event labels, a right-side venue stack, and a panel summary.
🗺️ How to Read the Chart
The premium drift path shows how the active chart behaves relative to the venue basket.
The dispersion path shows whether exchange prices are widening away from each other or compressing toward alignment.
The right-side venue stack shows the current premium/discount context, basket drift, dispersion, strongest venue, and weakest venue.
Labels mark meaningful changes such as Venue Premium, Venue Discount, Spread Expansion, and Exchange Alignment.
The panel summarizes state, score, premium, drift z-score, velocity, dispersion, direction, grade, and venue count.
🚦 Signals & States
• Venue Premium → the active chart trades meaningfully above the exchange basket
• Venue Discount → the active chart trades meaningfully below the exchange basket
• Spread Expansion → venue dispersion is widening
• Spread Compression → venue prices are moving closer together
• Exchange Alignment → venues are compressed and the active chart is near the basket
• Check Venue Set → selected symbols may not represent the same asset or may be mismatched
🔔 Alerts Logic
Alerts trigger when the script detects a fresh state transition into a meaningful venue condition.
Venue Premium alerts mark active-chart premium pressure versus the basket.
Venue Discount alerts mark active-chart discount pressure versus the basket.
Spread Expansion alerts mark widening cross-exchange dispersion.
Exchange Alignment alerts mark compression toward venue agreement.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest readings occur when premium drift, drift z-score, velocity, dispersion, and persistence align.
When these conditions align, the venue message becomes more meaningful, but it still remains context rather than a prediction.
📊 When to Use
• Crypto spot charts with active multi-exchange liquidity
• BTC, ETH, and major liquid altcoin pairs
• Periods where venue premium, discount, or spread quality matters
• Market structure review before interpreting local price action
• Cross-exchange monitoring during volatile sessions
⚠️ When NOT to Use
• Illiquid symbols with unreliable venue references
• Symbols where the basket does not match the active chart asset
• Extremely noisy low-timeframe conditions
• Markets where one or more venue feeds are missing or stale
• Situations where the user expects guaranteed arbitrage signals
🎛️ Key Inputs
• Venue Symbols → define the exchange reference basket
• Venue Labels → control the short exchange names shown in the visual stack
• Premium Threshold → controls when active-chart premium or discount becomes relevant
• Dispersion Threshold → controls when cross-exchange spread widening matters
• Premium Baseline Length → controls the drift baseline
• Premium Z-Score Length → controls normalization
• Visual Settings → control panel, labels, paths, and venue stack display
🖥️ Interface & Visual Design
The interface is built for quick market reading.
The panel provides compact state information.
The premium stack shows the current venue relationship without using pale or white primary visuals, preserving readability on both dark and light chart backgrounds.
Labels are designed to be visible, premium, and not buried inside candles.
🧪 Practical Usage Workflow
1. Confirm that the venue symbols match the active chart asset.
2. Read the panel state and score.
3. Check whether the active chart is premium, discount, aligned, or mismatched.
4. Inspect the strongest and weakest venue labels.
5. Use the premium and dispersion paths to understand whether the relationship is widening or normalizing.
🔍 Interpretation Guidelines
A venue premium does not automatically mean price must fall.
A venue discount does not automatically mean price must rise.
Spread expansion means exchange prices are becoming less aligned.
Exchange alignment means the active venue is closer to the basket.
The script should be read as market context, not as a buy or sell system.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an arbitrage execution tool.
It is not an auto-trading system.
It does not guarantee that premiums, discounts, or spreads will normalize.
⚠️ Limitations & Transparency
Cross-exchange readings depend on symbol quality, venue availability, quote currency differences, and PulseWire data access.
USD and USDT references may behave slightly differently.
Low-liquidity assets can produce unstable readings.
Timeframe differences and exchange data behavior can affect how states appear.
🧠 Market Context Notes
Crypto markets are fragmented.
The same asset can trade differently across exchanges because of liquidity, regional flow, quote currency differences, venue-specific demand, and execution conditions.
This script attempts to make that fragmentation easier to see.
🧾 Use Case Examples
When the active chart trades above the basket while dispersion expands, the market may be showing venue-specific premium pressure.
When the active chart trades below the basket while dispersion expands, the market may be showing local venue weakness.
When premium and dispersion compress together, the market may be returning toward exchange alignment.
🧱 System Philosophy
Cross Exchange Premium Drift Map follows the AGProLabs design principle of building decision-support maps rather than prediction tools.
The goal is to improve context, visual structure, and trader awareness.
🔐 Non-Promise Statement
No signal in this script guarantees a future price move.
No premium or discount reading guarantees convergence.
All outputs require broader market interpretation.
📉 Risk Disclosure
Trading involves risk.
Users are fully responsible for their own decisions.
This script does not provide financial advice, investment advice, or guaranteed trading outcomes.
📚 Educational Note
This tool is designed for educational and analytical use. It helps traders study cross-exchange price behavior, venue alignment, and premium drift as part of a broader market structure workflow.
Indicator

Perpetual Basis Drift Map [AGPro Series]Perpetual Basis Drift Map
🧠 Core Idea
Is the perpetual market quietly drifting away from spot, or is the basis relationship compressing back toward neutral?
📌 Overview / What it does
Perpetual Basis Drift Map is a crypto derivatives context tool designed to monitor how the active perpetual or futures market behaves against a matching spot reference.
The script compares the active chart price with an automatically selected spot reference, measures basis percentage, basis drift, normalized basis z-score, drift velocity, persistence, and trend context. It converts that relationship into an open three-rail basis drift meter, state labels, right-side tags, alerts, and an AG Pro dashboard.
It does not read official funding payments, automate trades, predict future price direction, or promise that basis must mean-revert. It is a structured visual map for interpreting perpetual premium, perpetual discount, basis expansion, basis compression, reset, and spot-reference mismatch conditions.
🎯 Purpose & Design Philosophy
This script was built to separate basis drift from generic funding or premium talk.
Funding pressure can be noisy, and a raw premium number is often not enough. Traders need to know whether the relationship between perp/futures and spot is widening, compressing, persisting, or simply resetting.
The design goal is to make basis behavior visible as a chart story, not just a number in a panel.
⚡ Why This Script Is Different
Most tools show a spread or premium value and leave the interpretation to the user.
This script does NOT treat basis as a simple buy or sell signal, does NOT claim that premium must reverse, and does NOT hide reference mismatch risk.
Instead, it maps the basis relationship into states: Positive Drift, Negative Drift, Basis Expansion, Basis Compression, Reset, and Check Spot Ref, while the chart labels use Premium Drift, Discount Drift, Spread Expansion, and Basis Compression for faster visual reading. It uses spot-reference comparison, baseline drift, z-score, velocity, persistence, and trend context together.
⚙️ Methodology
1. Context Detection
The script builds a spot reference from the active chart base currency, selected exchange, and selected quote.
2. Reference Mapping
It compares the active market against the spot reference and calculates basis percentage.
3. Reaction Evaluation
The model evaluates basis drift from baseline, normalized basis z-score, drift velocity, persistence, and trend context.
4. Visual Output
The result is shown as a compact open basis drift meter, centered meter label, right-side tags, event labels, and dashboard panel.
🗺️ How to Read the Chart
The basis drift meter separates the current read into three visible layers: state rail, basis value rail, and pressure score rail. It is intentionally open-ended rather than a closed corridor, so the visual story feels different from zone-first tools.
Labels mark state changes such as Premium Drift, Discount Drift, Spread Expansion, and Basis Compression. Optional compact pulse markers add additional context when premium, discount, expansion, or compression pressure appears without turning the script into a signal engine.
Colors communicate context:
• Teal = positive/perp-premium drift pressure
• Pink = negative/perp-discount drift pressure
• Yellow = spread expansion or reference warning
• Indigo = compression/reset regime
The panel summarizes state, score, basis, basis z-score, velocity, persistence, direction, quality, spot reference, trend, and meter values.
🚦 Signals & States
• Positive Drift → perpetual/futures market is drifting above the spot reference
• Negative Drift → perpetual/futures market is drifting below the spot reference
• Basis Expansion → basis deviation and drift velocity are widening
• Basis Compression → basis deviation is compressing back toward neutral
• Reset → no active drift state is strong enough to dominate the read
• Check Spot Ref → selected spot reference appears mismatched or unavailable
🔔 Alerts Logic
Alerts trigger when the script transitions into selected basis states.
Positive Basis Drift alerts mark meaningful upward perp-versus-spot drift.
Negative Basis Drift alerts mark meaningful downward perp-versus-spot drift.
Basis Expansion alerts mark widening basis deviation and drift velocity.
Basis Compression alerts mark movement back toward a neutral basis relationship.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest context appears when multiple components align:
Basis percentage + normalized basis z-score + drift velocity + persistence + trend context.
When basis widens and persists, the relationship may deserve closer attention. When basis compresses, the market may be returning toward a more neutral perp-versus-spot condition.
📊 When to Use
• Crypto perpetual and futures charts
• Markets where spot reference comparison is meaningful
• Perp/spot monitoring on BTC, ETH, and liquid crypto pairs
• Basis expansion, basis compression, and drift-context analysis
• Sessions where derivatives premium or discount behavior matters
⚠️ When NOT to Use
• Symbols with poor spot-reference alignment
• Illiquid markets with unreliable pricing
• Spot-only charts if the user expects a derivatives basis story
• Extreme news events where spread behavior can become unstable
• Markets where the active symbol and selected reference are not comparable
🎛️ Key Inputs
• Auto Spot Reference → automatically builds a matching spot reference
• Basis Baseline Length → controls how quickly the normal basis relationship adapts
• Basis Normalization Lookback → controls how unusual basis drift must be
• Drift Velocity Lookback → measures whether basis is widening or tightening
• Persistence Window → measures whether basis behavior continues across bars
• Reference Mismatch Guard % → prevents mismatched references from being interpreted as real basis drift
• Visual Settings → control meter projection, labels, right-side tags, and font sizes
🖥️ Interface & Visual Design
The interface is designed around a premium chart-first story.
The basis drift meter provides the main visual anchor. Centered meter text explains the state without relying on weak transparent labels or a large corridor box. Right-side tags keep the current state, basis, and score visible near the active price area.
The panel follows the AG Pro standard with a merged blue header row, adjustable location, adjustable theme, and adjustable font size.
🧪 Practical Usage Workflow
1. Apply the script to a crypto perpetual or futures chart.
2. Keep Auto Spot Reference enabled for the first pass.
3. Confirm the Spot Ref row matches the active market base currency.
4. Read State, Score, Basis, Basis Z, and Velocity.
5. Inspect whether basis is drifting, expanding, compressing, or resetting.
6. Confirm the read with broader market structure, liquidity, volatility, and risk management.
🔍 Interpretation Guidelines
Positive basis drift can show perp premium building, but it does not automatically mean price must fall.
Negative basis drift can show perp discount building, but it does not automatically mean price must rise.
Basis expansion is a context marker, not a trade instruction.
Basis compression can indicate normalization, but normalization does not guarantee direction.
🚫 What This Script Is NOT
This script is not a prediction engine.
This script is not financial advice.
This script is not an auto trading system.
This script is not a guaranteed signal engine.
This script does not read official funding payments directly.
This script does not claim that basis drift must immediately reverse.
⚠️ Limitations & Transparency
The script estimates basis from active-symbol versus spot-reference price behavior.
Reference quality matters. If the selected reference is wrong or unavailable, the script shows Check Spot Ref rather than presenting the spread as valid basis drift.
Different exchanges, contract types, liquidity conditions, and timeframes can produce different basis behavior.
Very low basis values can be visually clean but may not produce a dramatic story.
🧠 Market Context Notes
Perpetual basis can help traders understand whether derivatives pricing is leaning above or below spot.
The value of this tool is strongest when combined with structure, volatility, liquidity, open interest, and disciplined risk management.
Basis tells context. It does not create certainty.
🧾 Use Case Examples
When a perpetual chart trades persistently above spot and basis velocity expands, the script may classify Positive Drift or Basis Expansion.
When a perpetual chart trades persistently below spot and basis velocity expands downward, the script may classify Negative Drift.
When basis returns toward its baseline, Basis Compression can help show normalization.
🧱 System Philosophy
Perpetual Basis Drift Map follows the AGProLabs principle of building decision-support maps rather than prediction tools.
The script is designed to make hidden derivatives context easier to see, not to replace judgment.
🔐 Non-Promise Statement
No basis model can guarantee future price direction.
No drift score removes uncertainty.
This tool helps organize context; it does not create certainty.
📉 Risk Disclosure
Trading involves risk.
Crypto derivatives can be highly volatile and may involve leverage, liquidation risk, exchange risk, funding-cost changes, and rapid market movement.
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
📚 Educational Note
Use the script as a learning layer for understanding how perpetual premium, perpetual discount, basis drift, basis velocity, and spot-reference behavior can combine into a cleaner derivatives-context read.
Indicator

Funding Carry Stress Map [AGPro Series]Funding Carry Stress Map
🧠 Core Idea
Is the market carrying a hidden derivatives premium or discount that is becoming crowded enough to matter?
📌 Overview / What it does
Funding Carry Stress Map is a crypto derivatives context tool designed to estimate when perpetual-style premium, carry pressure, basis drift, and volatility-adjusted crowding are becoming structurally relevant on the chart.
The script compares the active chart symbol against a user-selected spot reference, builds a smoothed carry baseline, measures premium/discount deviation, evaluates persistence, and converts the result into a visual carry stress framework. It produces a projected carry stress corridor, state labels, right-side tags, alerts, and a compact AG Pro dashboard.
It does not read official exchange funding payments, automate trades, predict future price direction, or promise that elevated carry stress must reverse. It is a structured analytical layer for reading derivatives pressure, premium imbalance, discount imbalance, carry squeeze risk, and cooling behavior.
🎯 Purpose & Design Philosophy
This script was built to fill a gap in the public AGProLabs lineup: most chart tools focus on trend, volume, support/resistance, momentum, or volatility. Crypto traders also need a clean way to think about derivatives-side pressure without turning the chart into a noisy data terminal.
The design goal is to make carry stress visible as a chart story. Instead of showing only a raw spread number, the script asks whether premium/discount is large, unusual, persistent, and supported by enough volatility context to deserve attention.
It is built for traders who want to monitor crowded long carry, crowded short carry, squeeze risk, and stress cooling while still making their own decisions from broader market context.
⚡ Why This Script Is Different
Most tools either show generic premium/basis values or treat funding-related pressure as a simple bullish/bearish signal.
This script does NOT claim to know the next candle, does NOT treat carry pressure as an automatic reversal signal, and does NOT depend on official funding-rate feeds that may not be available on every chart.
Instead, it converts spot-vs-active-symbol premium behavior into a structured carry stress map: premium size, normalized basis deviation, persistence, volatility rank, price reaction, and cooling behavior are combined into one visual decision-support framework.
⚙️ Methodology
1. Context Detection
The script reads the active chart price and a spot reference. By default, it automatically builds that reference from the chart base currency, selected exchange, and selected quote.
2. Reference Mapping
The premium series is smoothed into a carry baseline. The script then measures how far current premium/discount has moved away from that baseline.
3. Reaction Evaluation
The model evaluates basis z-score, absolute premium percentage, persistence across a recent window, volatility rank, and whether price is starting to reject the crowded side.
4. Visual Output
The result is displayed as a carry stress corridor, event labels, right-side tags, and a dashboard panel showing state, stress score, premium, basis z-score, persistence, volatility rank, and current interpretation.
🗺️ How to Read the Chart
The carry stress corridor represents the active price area where derivatives-side pressure is being monitored.
Labels mark important state transitions such as premium stress, discount stress, carry squeeze risk, and carry cooling.
Colors communicate state:
• Pink = positive carry / long-crowding stress
• Teal = negative carry / short-crowding stress
• Yellow = squeeze-risk reaction
• Indigo = cooling or neutralization
The panel summarizes the current condition so the user can quickly read whether carry pressure is low, watch-level, elevated, or extreme.
🚦 Signals & States
• Premium Stress → positive premium/carry pressure is active and persistent enough to monitor
• Discount Stress → negative premium/discount pressure is active and persistent enough to monitor
• Carry Squeeze Risk → elevated carry pressure is present while price begins reacting against the crowded side
• Carry Cooling → previously meaningful carry stress has faded below the model’s cooling zone
• Reset → no active carry imbalance is strong enough to dominate the current read
🔔 Alerts Logic
Alerts trigger when the internal state changes into one of the selected alert conditions.
Premium Stress alerts mark a transition into meaningful positive carry pressure.
Discount Stress alerts mark a transition into meaningful negative carry pressure.
Carry Squeeze Risk alerts mark a transition where crowded carry pressure and adverse price reaction align.
Carry Cooling alerts mark a transition where carry stress has materially faded.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest context appears when multiple components align:
When premium size + basis z-score + persistence + volatility rank align, the carry stress score becomes more meaningful.
When that elevated score also appears with price rejection against the crowded side, the context shifts from simple premium/discount monitoring into potential squeeze-risk awareness.
📊 When to Use
• Crypto perpetual and futures markets where a spot reference can be selected
• Perpetual charts compared against their closest spot market
• High-interest crypto pairs where basis and carry pressure can influence behavior
• Volatile sessions where crowded positioning may matter more than usual
• Market regimes where traders want to monitor long-crowd or short-crowd pressure
⚠️ When NOT to Use
• Illiquid symbols with unreliable spot or futures pricing
• Charts where the selected spot reference is not comparable to the active symbol
• Markets with very noisy or fragmented data
• Extreme news events where spread behavior can become unstable
• Non-crypto symbols unless the user deliberately selects a meaningful reference
🎛️ Key Inputs
• Auto Spot Reference → automatically builds the spot reference from the chart base currency, selected exchange, and selected quote
• Carry Baseline Length → controls how quickly the premium baseline adapts
• Stress Normalization Lookback → controls how far back the script looks to judge unusual basis behavior
• Persistence Window → measures whether carry pressure persists across several bars
• Premium Stress Threshold % → defines the minimum premium/discount level required for active stress
• Reference Mismatch Guard % → prevents mismatched symbols from being interpreted as real carry stress
• Basis Z-Score Threshold → defines how unusual the spread must be before stress can activate
• Visual Settings → control corridor projection, labels, right-side tags, bar colors, and font sizes
🖥️ Interface & Visual Design
The interface is designed around a premium first-glance chart story.
The corridor gives the chart an active visual anchor. The centered label explains the current stress read without forcing the user to inspect every panel row. Right-side tags keep the current state visible near the active price area.
The panel uses the AG Pro layout standard with a blue merged header row, adjustable location, adjustable theme, and adjustable font size.
🧪 Practical Usage Workflow
1. Apply the script to a perpetual or futures chart.
2. Keep Auto Spot Reference enabled, or manually select the closest matching spot market.
3. Read the panel state and stress score.
4. Check whether the corridor is neutral, premium-stressed, discount-stressed, or showing squeeze risk.
5. Evaluate price reaction around the corridor together with broader market structure, volatility, and risk rules.
🔍 Interpretation Guidelines
Treat carry stress as a context layer.
Premium stress can mean long-side carry is becoming crowded, but it does not automatically mean price must fall.
Discount stress can mean short-side carry is becoming crowded, but it does not automatically mean price must rise.
Carry squeeze risk is stronger when elevated stress and adverse price reaction appear together, but it still requires confirmation from broader market context.
🚫 What This Script Is NOT
This script is not a prediction engine.
This script is not financial advice.
This script is not an auto trading system.
This script is not a guaranteed signal engine.
This script does not read official funding payment data directly.
This script does not claim that premium or discount must immediately mean-revert.
⚠️ Limitations & Transparency
The script estimates carry stress from active-symbol versus spot-reference behavior. It is a proxy framework, not an official exchange funding-rate feed.
Results can vary by exchange, symbol mapping, liquidity, timeframe, and data quality.
The selected reference must match the active market. Auto Spot Reference is enabled by default to help keep ETH charts on an ETH reference, BTC charts on a BTC reference, and similar mappings aligned.
Fast market moves, low liquidity, stale references, or mismatched symbol selections can affect the accuracy of the stress interpretation.
Market conditions change, and the same stress score may behave differently across different volatility regimes.
🧠 Market Context Notes
In crypto markets, derivatives pressure can matter because perpetual traders may become crowded on one side when premium, basis, and volatility remain elevated.
This does not create certainty. It creates context.
The value of the script is strongest when the user combines carry stress with structure, liquidity, trend quality, volatility, and disciplined risk management.
🧾 Use Case Examples
When price trades above the spot reference with persistent premium and the panel shifts into Premium Stress, the user may monitor whether long-side carry is becoming crowded.
When price trades below the spot reference with persistent discount and the panel shifts into Discount Stress, the user may monitor whether short-side pressure is becoming crowded.
When elevated carry stress appears and price starts rejecting the crowded side, the Carry Squeeze Risk state can help highlight a context worth closer attention.
🧱 System Philosophy
Funding Carry Stress Map follows the AGProLabs principle of building decision-support maps rather than prediction tools.
The script is designed to make hidden context easier to see, not to replace judgment.
Its purpose is to organize information into a cleaner visual workflow: read the state, inspect the corridor, evaluate reaction, and confirm with broader context.
🔐 Non-Promise Statement
No script can guarantee market direction.
No carry stress model can remove uncertainty.
This tool helps organize context; it does not create certainty.
📉 Risk Disclosure
Trading involves risk.
Crypto derivatives can be highly volatile and may involve leverage, liquidation risk, exchange risk, funding-cost changes, and rapid market movement.
This script is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading outcomes.
Users remain responsible for their own decisions.
📚 Educational Note
Use the script as a learning layer for understanding how premium, discount, persistence, volatility, and price reaction can combine into a more complete derivatives-pressure read.
Indicator

AG Pro Premium Discount Zone Engine [AGPro Series]AG Pro Premium Discount Zone Engine
Overview / What it does
AG Pro Premium Discount Zone Engine is a dealing-range and retracement context overlay built to map relative value inside a selected swing. Instead of treating price as a sequence of isolated candles, the script frames current price location against an active high-low range and highlights where price is trading relative to equilibrium, premium, discount, and the OTE area.
The core purpose of this tool is organizational. It is designed to help traders read where price is positioned inside a live swing and how price reacts when it moves into higher-value or lower-value retracement zones. This is especially useful when a chart is moving inside a pullback, when trend continuation is being evaluated, or when users want to distinguish between shallow retracements and deeper repricing within an existing range.
The script supports multiple ways to define the active range. Users can work with an automatically detected swing, a higher-timeframe dealing range, or a manual-lite anchor mode based on bar offsets. Once a valid range is identified, the script projects premium and discount territory, marks the 50% equilibrium, and highlights the OTE area using the 61.8, 70.5, and 78.6 retracement levels.
The output is intentionally visual, structured, and restrained. Premium and discount zones are shown as clean value blocks. The OTE area is treated as the main focus zone rather than a minor detail. The panel summarizes the active bias, current location, zone state, equilibrium level, and OTE boundaries so that users can read the chart quickly without relying on aggressive signal language.
Unique Edge
What makes this script different is that it is not built as a market-structure detector, imbalance mapper, liquidity event scanner, or order-block locator. Its job is narrower and more specific: it organizes relative price location inside a defined dealing range.
That distinction matters. Many overlays attempt to explain everything on the chart at once. This script does not. It does not try to label breaks of structure, detect fair value gaps, mark liquidity sweeps, or classify institutional zones. Instead, it answers a more focused question: where is price trading inside the current swing, and how is it behaving as it enters or leaves important retracement territory?
This also separates the script from other AG Pro tools. Some AG Pro overlays are built around structure transitions, some around imbalance behavior, some around reaction quality, and some around event detection. AG Pro Premium Discount Zone Engine is built around valuation context. It does not compete with those tools directly. It complements them by adding a relative-value map around a selected range.
Another difference is the zone-state logic. The script does not stop at drawing premium and discount blocks. It also tracks how price interacts with the OTE area and classifies that interaction using a simple state model such as Fresh, First tap, Retested, Rejected, Accepted, and Invalidated. This creates a more contextual read than a static retracement overlay.
Methodology
The script begins by identifying an active swing range. In Auto Swing mode, it uses pivot-based range detection. In HTF Swing mode, it builds the range from a higher-timeframe high-low window. In Manual-Lite Swing mode, it uses bar-offset anchors to let the user define a practical swing reference without requiring manual drawing tools.
Once the active range is available, the script calculates the internal value map:
- Swing High
- Swing Low
- 50% Equilibrium
- Premium territory above equilibrium
- Discount territory below equilibrium
- OTE zone using 61.8, 70.5, and 78.6 retracement levels
The script then monitors how price behaves around those levels. This produces context states rather than directional promises. For example, price entering the OTE area is not treated the same as price rejecting from it, accepting beyond it, or invalidating the active range. These are intentionally different events because they describe different chart conditions.
The equilibrium level is included as a centerline reference, while the OTE band is given stronger visual emphasis. This helps distinguish broad valuation territory from the narrower retracement pocket that many users monitor more closely.
Signals & Alerts
The signals in this script are event-based and deterministic. They are not designed as standalone trade instructions. They are designed to describe interaction with the active range.
Available event logic includes:
- OTE Test
- OTE Reject
- OTE Accept
- Discount Reaction
- Premium Rejection
- Equilibrium Cross
- Range Invalidated
- OTE Failure
These events are intended to provide chart context. For example, an OTE Test simply means price entered the active OTE zone. A Premium Rejection means price traded into the premium side and closed back below the local premium threshold used by the script. A Discount Reaction means price interacted with the discount side and responded upward under the script's rules. These are context events, not guarantees of continuation.
Alerts follow the same philosophy. They are defined in a rules-based way so users can monitor range interaction without needing to watch the chart continuously. The alert layer is most useful when the script is used as a location filter inside a broader workflow.
Key Inputs
Swing mode
Lets the user choose between Auto Swing, HTF Swing, and Manual-Lite Swing depending on whether the goal is reactive automation, higher-timeframe framing, or a more controlled local range definition.
Auto pivot length
Controls how sensitive the pivot-based swing detection is in Auto mode.
HTF timeframe and HTF lookback
Used to define the broader dealing range in higher-timeframe mode.
Manual high bars back / manual low bars back
Used to create a manual-lite range by referencing earlier bars as anchors.
Render bars back / render bars forward
Controls how far the active range projection extends on the chart.
Zone opacity and theme
Used to refine the visual balance between premium, discount, and OTE areas.
Label controls
Used to reduce visual noise by controlling label cooldown, label render window, and maximum visible labels.
Panel controls
Allow the user to reposition the panel and adjust its text size to fit different chart layouts.
Limitations & Transparency
This script does not predict direction. It does not forecast reversals. It does not decide whether a chart should trend, break, or fail. It maps relative value inside a selected range and reports interaction events inside that framework.
The quality of the output depends on the quality of the active swing. If the selected or detected range is not meaningful for the user's workflow, the valuation map will also be less meaningful. This is especially important in highly compressed, extremely noisy, or structurally unclear conditions.
Auto Swing mode is practical, but like any automated swing model, it depends on pivot confirmation and may update as newer pivots become available. HTF mode provides broader context but may feel less reactive on smaller charts. Manual-Lite mode gives more control but still depends on the user choosing sensible anchor distances.
OTE logic is range-relative. It does not incorporate unrelated concepts such as order blocks, liquidity pools, fair value gaps, session models, or external structure classifications unless the user combines those ideas manually in a separate workflow.
This script is best understood as a valuation-context overlay. It is not a complete strategy, not a full decision engine, and not a substitute for risk management.
How this differs from other AG Pro scripts
AG Pro Premium Discount Zone Engine is intentionally not a structure-break tool, not a CHoCH/BOS detector, not a liquidity sweep scanner, not an FVG engine, and not an order-block mapper.
Its role inside the AG Pro family is to answer a different question:
Where is price trading inside the active dealing range, and what is the quality of its interaction with that value map?
That makes it particularly useful for users who already understand direction from another process and want cleaner execution context. In other words, some tools focus on structural change, some focus on imbalance, and some focus on reaction events. This one focuses on valuation location.
Risk Disclosure
This script is for chart analysis and educational use only. It does not provide financial advice, investment advice, or guaranteed trade signals. Any use of this tool should be combined with independent analysis, risk controls, position management, and market-specific judgment.
The presence of an alert, label, premium zone, discount zone, or OTE interaction does not imply that price must react in a specific way. Markets can continue, reverse, compress, or invalidate a range without warning. Users should treat this script as a context tool, not as a promise of outcome.
Indicator

Smart Confluence█ SMART CONFLUENCE (SC)
Multi-Factor SMC Trading System
Smart Confluence combines multiple market structure signals into a single confluence score . When enough signals align, it generates BUY/SELL setups with precise Entry Zones, Stop Loss, and 3 Take Profit levels — all fully automated.
Free and Open Source.
█ THE CONCEPT: WHY CONFLUENCE MATTERS
No single indicator is reliable on its own. A CHOCH can fail. An Order Block can break. A sweep can be a fakeout. But when 4-6 different signals all agree at the same time — that's when the probability is in your favor.
Smart Confluence requires a core trigger (CHOCH, Sweep, or EQ-Grab) PLUS enough confirmations to reach the minimum confluence threshold before any signal fires. This eliminates most false signals.
█ CORE FEATURES
1. Market Structure Detection
Automatic Swing High/Low identification with Change of Character (CHOCH) — the moment a downtrend breaks above the last swing high (bullish) or an uptrend breaks below the last swing low (bearish). CHOCH is worth 2 confluence points.
2. Liquidity Sweeps
Detects stop-hunt patterns where price sweeps below recent lows (or above recent highs) and reverses. These sweeps indicate smart money collecting liquidity before the real move. Worth 2 confluence points.
3. EQH/EQL (Equal Highs/Lows)
Identifies liquidity pools where multiple swing points cluster at the same price level. When price sweeps through these clusters (EQ-Grab), it signals institutional order flow. Worth 3 confluence points (configurable).
4. Order Blocks & Fair Value Gaps
Order Blocks — The last opposing candle before a strong move — institutional supply/demand zones. +1 point when price is inside.
FVGs — Price imbalances (gaps between candles) that act as magnets. +1 point when price is inside.
5. Premium/Discount Zones
Calculates where price is relative to the current range. Buy in discount (<50%), sell in premium (>50%). OTE (Optimal Trade Entry) bonus for the 62-79% retracement zone. Up to +3 confluence points.
6. Confirmation Filters
Volume — High volume confirms institutional activity (+1-2 points)
RSI Divergence — Momentum exhaustion = strong reversal signal (+2 points)
EMA Trend Filter — Price vs EMA21/50/200 alignment (+1-2 points)
ATR Volatility — High volatility confirms market activity (+1 point)
HTF Trend — Higher timeframe trend agreement (+1 point)
Candlestick Patterns — Engulfing, Hammer, Shooting Star (+1 point)
█ AUTO-TIMEFRAME ADAPTATION
All parameters auto-adjust to your chart timeframe: Swing Length, Cooldown, OB Lookback, Min Confluence, HTF selection, SL Buffer, Min R:R, EQ Tolerance, EQ Age, Setup duration, S/R Cluster. Supports 1m to Monthly.
█ S/R ZONE DETECTION
Automatic Support/Resistance zones built from clustering multiple sources: Swing points, Order Blocks, FVGs, EQH/EQL levels, HTF levels. Each zone gets a strength score (1-5). Only shows the strongest zones.
█ ENTRY / SL / TP SYSTEM
Entry Zone — Based on active Order Block or FVG. Falls back to current candle range.
Stop Loss — 4 modes: Entry-Based, Swing, ATR, or SMC (below OB/FVG). R:R filter ensures minimum reward.
Take Profit — 4 modes: Structure (next swing), Fixed R:R, ATR-based, or Hybrid (structure if available, else R:R).
Partial TP — Configurable distribution (50/30/20, 33/33/34, 40/40/20, 60/30/10).
█ DASHBOARD
Compact dark-themed info panel showing: Mode (Auto/Manual + TF), Trend direction, HTF confirmation, Premium/Discount zone, S/R levels with strength, Bull/Bear confluence scores, Active setup details (direction, R:R, SL, Entry, TP1-3), SL/TP mode, Partial distribution.
█ ALERTS (8 CONDITIONS)
BUY Signal — Full confluence with valid R:R
SELL Signal — Full confluence with valid R:R
Bullish CHOCH — Trend reversal detected
Bearish CHOCH — Trend reversal detected
EQH Grab — Liquidity pool swept (bearish)
EQL Grab — Liquidity pool swept (bullish)
Bullish Sweep — Stop hunt detected
Bearish Sweep — Stop hunt detected
█ PRO VERSION
The PRO version (Smart Confluence Pro) adds:
Signal Profile Presets — Scalping, Intraday, Swing, Position, Aggressive, Conservative, SMC Pure
Asset Auto-Detection — Crypto, Forex, Stock, Futures with 8 scaling factors
A/B/C Signal Grading — Quality scoring based on Zone, HTF, Volume, Session, Divergence
Risk Management — Account size, risk %, position sizing, custom partial distributions
Session Filter — London, New York, Asia sessions with overlap detection
Funding Rate — Crypto perpetual funding rate as contrarian confluence
Trailing Stop Loss — Break-Even + Trail TP modes
Trade Management Alerts — TP1/TP2/TP3 hit, SL hit, Trailing updates, Setup expiry
14+ Alert Types — Including A-Grade only alerts
█ NON-REPAINTING
All signals require confirmed bars (barstate.isconfirmed for EQH/EQL). Signal confirmation waits for the next candle. HTF data uses lookahead=barmerge.lookahead_off. No future data leakage. No repainting.
█ WORKS ON
Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Monthly.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss.
Indicator

Premium / Discount Screener for Range today with VWAPPremium / Discount Screener – Today’s Range Midpoint + VWAP Deviation
This open-source overlay indicator is a clean, real-time visual screener that shows whether current price is trading at a **premium** (overvalued relative to today's range + VWAP) or **discount** (undervalued), helping traders quickly assess intraday location bias.
Core Concept
Intraday traders often use the developing daily range and VWAP as reference points for value:
- Price significantly above the midpoint of today's high/low → premium zone → potential mean-reversion sells or overextended rallies
- Price significantly below the midpoint → discount zone → potential mean-reversion buys or oversold bounces
- VWAP deviation adds context (institutional fair value proxy)
This script combines both references and flags extreme deviations with color-coded labels and background tint.
How It Works
1. Tracks today's high/low (resets at new day)
2. Calculates midpoint = (Today's High + Today's Low) / 2
3. Tracks session VWAP (hlc3-based, resets daily)
4. Computes two deviation percentages:
- Distance from midpoint (%)
- Distance from VWAP (%)
5. Classifies status based on user-defined threshold (default 0.5% from midpoint):
- Premium (red): close > midpoint + threshold
- Discount (green): close < midpoint – threshold
- Fair/Neutral (gray): within threshold band
Visual Output
- Last-bar label (toggleable) showing:
- Status: PREMIUM / DISCOUNT / FAIR
- % distance from midpoint
- % distance from VWAP
- Background tint:
- Light red → premium zone
- Light green → discount zone
- No tint → neutral/fair
Why this is useful
- Provides instant visual context for bias without needing complex zone drawing
- Helps filter entries: e.g., look for longs in discount + bullish structure, shorts in premium + bearish structure
- VWAP deviation adds institutional reference — price far from VWAP often signals exhaustion or absorption
- Lightweight and non-repainting — ideal for fast decision-making on lower timeframes
How to Use
- Best on **5m–1h timeframes** for intraday trading (forex majors, indices, gold, futures, high-volume stocks)
- Recommended symbols: EURUSD, GBPUSD, XAUUSD, NAS100, ES1!, NQ1!, SPY
- Typical workflow:
1. Wait for price to reach deep discount/premium zone
2. Confirm with price action, structure (BOS/CHOCH), or order blocks
3. Avoid trading near "Fair" zone unless strong catalyst/breakout
- Tune threshold:
- Lower (0.2–0.4%) for very volatile instruments (crypto, gold)
- Higher (0.6–1.0%) for less volatile pairs (EURUSD, major indices)
Inputs
- Show Premium/Discount Label: toggle last-bar text label
- Alert Threshold % from Midpoint: default 0.5% (sensitivity for premium/discount classification)
Publishing Recommendation
- Publish with a clean chart (e.g., 15m–1h XAUUSD, EURUSD or NQ during active session)
- Show a period where price moves into premium and discount zones (label + background tint visible)
- No extra indicators/drawings needed for basic use
This is a simple, educational location bias tool — fully open-source. It highlights relative value zones — not trade signals. Trading involves significant risk of loss. Use discretion and proper risk management.
Feedback welcome — especially suggestions for adding PD high/low lines or session open! Indicator

PD Location Screener (NY Session)PD Location Screener (NY Session) – Premium / Discount / Equilibrium Bias
This open-source overlay indicator is a lightweight visual screener that shows where current price is located relative to the **previous day's range** (PD high/low/midpoint), helping traders quickly identify:
- Discount zones (below 25% of PD range → potential buy bias)
- Premium zones (above 75% of PD range → potential sell bias)
- Equilibrium / neutral (near midpoint → balanced / choppy)
Core Concept
Many intraday traders use the previous day's range as a reference framework:
- Price below the midpoint (especially in the lower 25%) is considered **discount** → undervalued relative to yesterday → higher probability of mean-reversion buys or continuation if momentum builds
- Price above the midpoint (especially in the upper 25%) is considered **premium** → overvalued → higher probability of mean-reversion sells or fading
- Near the midpoint → equilibrium → often choppy or awaiting directional catalyst
This script adds a **NY session filter** (default 08:30–16:00 NY time) so the PD range calculation only includes bars during active New York hours — useful for avoiding thin Asian-range noise and focusing on high-liquidity period behavior.
Why this is useful
- Provides instant visual context for bias without cluttering the chart
- Helps filter trades: e.g., look for longs in discount + bullish structure, shorts in premium + bearish structure
- Session filter makes it particularly effective for NY/London overlap strategies (forex, indices, gold, futures)
How It Works
1. Tracks daily high/low only during NY session (optional toggle)
- Resets at new day
- Updates only when inSession = true
2. Calculates:
- Midpoint = (PD High + PD Low) / 2
- PD Range = PD High – PD Low
- Discount threshold = PD Low + 25% of range
- Premium threshold = PD Low + 75% of range
3. Bias flags:
- Discount: close < midpoint → green triangle below bar
- Premium: close > midpoint → red triangle above bar
4. Optional last-bar label:
- "DISCOUNT ZONE" (green)
- "PREMIUM ZONE" (red)
- "EQUILIBRIUM" (gray)
Visual Output
- Green triangle below bar → price in discount (buy bias area)
- Red triangle above bar → price in premium (sell bias area)
- Last-bar label (toggleable) showing current location
How to Use
- Best on **5m–1h timeframes** for intraday trading (forex majors, indices, gold, futures)
- Recommended pairs: EURUSD, GBPUSD, XAUUSD, NAS100, ES1!, NQ1!
- Typical workflow:
1. Wait for price to reach discount zone + bullish price action / structure → consider longs
2. Wait for premium zone + bearish price action → consider shorts
3. Avoid entries near equilibrium unless strong breakout catalyst
- Combine with:
- Order blocks, FVGs, liquidity sweeps
- Higher-timeframe trend filter
- Session open/high/low
- Toggle "Use NY Session Only" off if you want full 24h range (e.g., crypto or Asian-focused pairs)
Inputs
- Use NY Session Only: true = only NY hours count toward PD range (recommended)
- NY Session: default "0830-1600" (adjust if broker timezone differs)
- Show Location Labels: toggle last-bar text label
Publishing Recommendation
- Publish with a clean chart (e.g., 15m–1h XAUUSD or EURUSD during NY session)
- Show a period where price moves from discount → equilibrium → premium (triangles visible)
- No extra indicators/drawings needed
This is a simple, educational location bias tool — fully open-source. It highlights relative value zones — not trade signals. Trading involves significant risk of loss. Use discretion and proper risk management.
Feedback welcome — especially suggestions for adding PD open or 50% retracement lines! Indicator

Indicator

CandelaCharts - Premium & Discount 📝 Overview
Premium and Discount are key concepts in ICT (Inner Circle Trader) trading strategies, used to pinpoint ideal entry and exit points in the market. These concepts are based on an understanding of market structure and the behavior of institutional traders, commonly referred to as Smart Money.
To understand the Premium and Discount zones, it's crucial to first grasp the concept of the equilibrium level, also known as the basic or fair value. The equilibrium represents the midpoint of a given price range and acts as a reference point, dividing the range into Premium and Discount zones.
The equilibrium reflects the "fair value" of the price within the considered range. Traders use this as a benchmark to assess whether the current price is in the Premium or Discount zone.
The Premium zone lies above the equilibrium level, while the Discount zone is located below it within the price range.
📦 Features
Swing-based detection
Custom detection
Modes
Styling
⚙️ Settings
Range: Determines how you will identify Premium and Discount, either by swing points or by custom date.
Mode: Controls what UI will be displayed
Premium: Sets the Premium color
Discount: Sets the Discount color
Equilibrium: Sets the Equilibrium color
Labels: Controls the labels visibility
⚡️ Showcase
Pro Mode
Solid Mode
Outlined Mode
Flat Mode
The Indicator can be effortlessly applied in replay mode to highlight premium and discount zones based on the most prominent market swings.
🚨 Alerts
The indicator does not provide any alerts!
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator
