Funding Rate & OI Radar [StrixEDGE]What It Does
Funding Rate & OI Radar is a multi-symbol derivatives dashboard that consolidates funding rate intensity, open interest momentum across three timeframes, and price-OI divergence signals into a single on-chart table. It is designed for perpetual futures traders who need to read market positioning at a glance — without switching tabs or charts.
The indicator tracks up to 5 perpetual contract symbols simultaneously, surfaces extreme funding conditions as they develop, and flags structurally weak rallies or drops where price and open interest are moving in opposite directions.
Core Features
Funding Rate with Color Intensity
Funding rate values are color-graded by severity — from dim neutral tones near zero, through elevated orange, to extreme red (longs paying) or bright green (shorts paying). Extreme readings trigger a highlighted cell background so they stand out immediately during fast-moving markets.
Open Interest Change — 1H / 4H / 24H
Three separate OI delta columns show how positioning is shifting across intraday, swing, and daily windows. Each cell includes a directional arrow (▲ ▼ ►) and percentage change, color-coded against your configured alert threshold. This gives you a layered read: is OI building across all timeframes, or only spiking on the short window?
Price-OI Divergence Detection
The SIGNAL column cross-references 24H price change against 24H OI change and classifies the move:
- WEAK▲ — Price rising but OI declining. Rally lacks new capital commitment. Potential short squeeze or exhaustion move.
- WEAK▼ — Price falling but OI rising. New positions opening into the drop. Potential capitulation trap or forced selling.
- STRONG▲ — Price and OI both rising. New money entering on the long side. Structurally supported move.
- STRONG▼ — Price and OI both falling. Positions closing out. Orderly deleveraging.
- NEUTRAL — No meaningful divergence.
Weak signals receive a highlighted background row to ensure they are not missed.
Multi-Symbol Table
Monitor BTC, ETH, SOL, and two custom perpetual contracts of your choice — all rendered in a single dashboard. The table includes configurable column visibility, so you can strip it down to just FR + divergence, or run the full 8-column view.
Aggregate Sentiment Footer
The bottom row averages funding rates across all active symbols and classifies the overall market into one of seven sentiment tiers — from 🟢 EXTREME FEAR through ⚪ NEUTRAL to 🔴 EXTREME GREED. A fast, blunt read on whether the derivatives market is skewing overleveraged in either direction.
Alerts
Four built-in alert conditions, all routed through PulseWire's native alert system:
- Extreme Funding Rate — Any tracked symbol's absolute FR exceeds your configured threshold (default: 0.05%/8h).
- OI Surge — Any symbol's 1H OI change exceeds your OI alert threshold (default: 5%).
- OI-Price Divergence — A WEAK▲ or WEAK▼ signal fires on any tracked symbol.
- Sentiment Extreme — Aggregate average FR across all symbols reaches the extreme zone.
Data Sources & Configuration
The indicator supports two modes for funding rate data:
- Ticker Mode (default) — Pulls funding rate from your exchange's dedicated FR data feed using a configurable ticker suffix (default: `_FR`). Requires the exchange to publish FR data through PulseWire.
- Basis Proxy Mode — Estimates the implied 8-hour funding rate from the perpetual-spot price spread: `(Perp − Spot) / Spot / 3`. Useful when direct FR tickers are unavailable. Note: this is an approximation, not the actual settlement rate.
Open interest data is fetched via configurable OI ticker suffix (default: `_OI`).
Important: Ticker formats vary across exchanges and PulseWire data providers. If columns display "N/A", adjust the OI/FR suffix inputs under 🔌 Data Sources to match your exchange's naming convention. Consult your exchange's PulseWire symbol search for the correct format.
Settings Overview
📊 Symbols — Exchange selector, 3 default symbols (BTC/ETH/SOL perpetuals), 2 optional custom slots.
🔌 Data Sources — OI suffix, FR suffix, FR method toggle, spot suffix override for basis proxy.
🚨 Thresholds — Extreme FR level, elevated FR level, OI alert percentage. These control both color intensity breakpoints and alert trigger levels.
🎨 Display — Table position (8 positions), text size (Tiny / Small / Normal / Large).
📋 Columns — Individual toggles for Price, Price Δ24H, Funding Rate, OI Δ1H, OI Δ4H, OI Δ24H, Divergence Signal, and Sentiment Footer. Disable any column you don't need to keep the table compact.
Technical Notes
- Uses 25 `request.security()` calls across 5 symbols (well within Pine Script's 40-call limit).
- OI changes are calculated from actual multi-timeframe requests (60min, 240min, Daily) — not bar-count estimates — so they remain accurate regardless of your chart's timeframe.
- Table renders only on the last bar (`barstate.islast`) for performance.
- Inactive custom symbol slots (left blank) fall back to the primary ticker internally and are hidden from the table.
How to Read It
Open the indicator on any chart. The table appears as an overlay (default: top-right corner). Scan left to right:
1. Symbol — Which asset.
2. Price — Current perpetual price.
3. Δ24H — Daily price change. Green = up, red = down.
4. FR /8h — Current funding rate per 8-hour interval. Bright color = elevated. Highlighted background = extreme.
5. OI Δ1H / 4H / 24H — Open interest change with directional arrows. Look for alignment across timeframes (all rising = strong conviction) or divergence (1H spiking, 24H flat = short-term noise).
6. SIGNAL — Divergence classification. WEAK▲ and WEAK▼ are the actionable signals — they indicate structural fragility in the current move.
7. Sentiment — Aggregate market tilt from combined funding rates.
Use Cases
- Scalpers & intraday traders — Monitor 1H OI spikes alongside funding rate to detect short-squeeze or long-squeeze setups forming in real time.
- Swing traders — Use the divergence signal column to filter entries. Avoid longing into WEAK▲ conditions; avoid shorting into WEAK▼.
- Portfolio monitors — Track funding costs across multiple positions simultaneously. Elevated aggregate sentiment warns of crowded positioning before liquidation cascades.
Complementary Tools
Designed to pair with liquidity heatmaps and liquidation level estimators. Funding rate tells you who is paying whom. OI tells you how much is at stake. Liquidity maps tell you where the pressure points are. Together, they give a full derivatives positioning read. Indicator

Liquidation Cascade Risk Map [AGPro Series]Liquidation Cascade Risk Map
🧠 Core Idea
When leverage pressure builds, is the market entering a real cascade-risk zone, or is liquidation pressure already cooling?
📌 Overview / What it does
Liquidation Cascade Risk Map is a crypto derivatives analysis tool designed to visualize liquidation-cascade risk without pretending to know exact exchange liquidation levels.
The script evaluates open interest data when available, falls back to a transparent volume-proxy mode when needed, and combines volatility expansion, range pressure, candle body stress, directional movement, and distance from reference structure into a single cascade-risk context.
It produces a cascade pressure path, right-side state tags, event labels, optional pulse markers, and a compact AG Pro dashboard panel. It does not predict future price, automate entries, provide liquidation prices, or act as a guaranteed signal system.
🎯 Purpose & Design Philosophy
This script was built for traders who want to understand when a crypto market may be carrying unstable leverage pressure.
Many liquidation tools focus on exact levels, heatmaps, or speculative liquidation clusters. Those can be useful, but they often require external datasets and may create false certainty when used as chart overlays.
Liquidation Cascade Risk Map takes a different approach. It asks whether current market behavior has the ingredients of cascade vulnerability: expanding pressure, directional stress, range instability, aggressive bodies, and persistence.
⚡ Why This Script Is Different
Most tools focus on liquidation levels, estimated heatmap bands, or simple volatility alerts.
This script does NOT claim to know where every liquidation sits, and it does not draw exchange-style liquidation heatmaps.
Instead, it maps the quality of the surrounding cascade-risk environment. It highlights when the market is showing pressure that may support long-side cascade risk, short-side cascade risk, two-way cascade vulnerability, or cooling after a pressure build-up.
⚙️ Methodology
1. Context Detection
The script checks whether usable open interest data exists. If not, it can fall back to a volume-proxy model so the visual framework remains usable across more symbols.
2. Pressure Mapping
It evaluates data change, volatility shock, candle range pressure, body expansion, distance from reference structure, and directional movement.
3. Cascade Evaluation
Those components are blended into a cascade-risk score. The script then classifies the environment as Long Cascade Risk, Short Cascade Risk, Two-Way Cascade, Risk Cooling, Neutral Risk, or Data Missing.
4. Visual Output
The chart displays a cascade pressure path, a dotted center reference, a vertical pressure needle, right-side tags, event labels, and a panel that summarizes the active state.
🗺️ How to Read the Chart
The upper pressure rail represents elevated liquidation-cascade risk.
The lower pressure rail represents cooling or pressure release context.
The dotted centerline acts as the current reference path.
The vertical needle shows how stretched the active cascade-risk score is inside the pressure path.
Event labels identify important changes such as Long Cascade, Short Cascade, Two-Way Cascade, or Risk Cooling.
The panel summarizes state, score, data change, velocity, persistence, cooling, direction, grade, data mode, ATR shock, data source, and trend.
🚦 Signals & States
• Long Cascade Risk → downside pressure is elevated and long-side liquidation vulnerability may be rising
• Short Cascade Risk → upside pressure is elevated and short-side liquidation vulnerability may be rising
• Two-Way Cascade → volatility and pressure are elevated on both sides, suggesting unstable conditions
• Risk Cooling → cascade pressure is decreasing after a build-up
• Neutral Risk → no strong cascade-risk condition is currently active
• Data Missing → the selected data source is not usable on the current symbol or mode
🔔 Alerts Logic
Alerts can be enabled for Long Cascade Risk, Short Cascade Risk, Two-Way Cascade, and Risk Cooling.
Each alert triggers when the selected state becomes active. Alerts are designed as attention markers, not trade instructions.
🧩 Confluence Logic
The context becomes stronger when data expansion, volatility shock, range pressure, directional bias, and persistence align at the same time.
For example, high volatility with strong directional movement and rising pressure persistence may indicate a more unstable cascade-risk environment than volatility alone.
📊 When to Use
• Crypto perpetual futures
• High-volatility market phases
• Sharp directional moves
• Post-breakout acceleration
• Failed recovery or forced unwind environments
• Situations where leverage pressure may matter more than ordinary trend context
⚠️ When NOT to Use
• Very low liquidity symbols
• Symbols with unreliable volume or open interest data
• Extremely noisy low-timeframe charts
• Markets with abnormal gaps or data breaks
• Any situation where the user expects exact exchange liquidation prices
🎛️ Key Inputs
• Data Mode → chooses between automatic open interest, manual open interest symbol, or volume proxy
• Lookback Length → controls the normalization window for pressure scoring
• Fast / Slow Pressure Length → controls short-term and baseline pressure reaction
• Cascade Threshold → defines how demanding the script is before marking cascade-risk conditions
• Cooling Threshold → controls when pressure is considered to be cooling
• Persistence Bars → measures whether pressure is sustained or only momentary
• Visual settings → control labels, pulse markers, path visibility, panel layout, and font sizes
🖥️ Interface & Visual Design
The interface is built to make the chart readable at first glance.
The cascade path is intentionally not a large boxed zone. It is a pressure-path structure designed to remain visually distinct from corridor, ladder, and basis-style scripts.
The panel uses a merged AG Pro header row, compact metrics, and a dark professional layout. Visual elements avoid white or pale primary treatments so the script remains readable on both dark and light PulseWire chart backgrounds.
🧪 Practical Usage Workflow
1. Read the panel state first.
2. Check whether Data Mode shows real open interest or volume proxy.
3. Look at the cascade pressure path and current needle position.
4. Check event labels for recent pressure build-up or cooling.
5. Compare the state with broader trend, volatility, and market structure.
🔍 Interpretation Guidelines
Do not treat a cascade-risk state as a direct entry or exit signal.
Use it as a context layer. The script is most useful when combined with structure, liquidity, volatility, market regime, and risk management.
Rising cascade risk can mean the market is becoming unstable. Cooling can mean pressure is easing, but it does not guarantee reversal or continuation.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an automated trading system.
It does not calculate exact liquidation prices.
It does not guarantee that a liquidation cascade will happen.
⚠️ Limitations & Transparency
Open interest availability depends on symbol, exchange, and PulseWire data support.
Volume proxy mode is only a proxy. It can help visualize pressure context, but it is not the same as real open interest.
Different timeframes may produce different readings.
Fast markets, illiquid symbols, gaps, and abnormal candles can affect outputs.
🧠 Market Context Notes
Liquidation pressure is often connected to leverage, volatility, liquidity, and forced positioning.
This script focuses on context quality rather than exact liquidation geography. That makes it useful as a decision-support layer, but it should always be interpreted with broader market evidence.
🧾 Use Case Examples
When price accelerates downward while pressure score and persistence rise, the chart may show Long Cascade Risk.
When price squeezes upward with high pressure and volatility expansion, the chart may show Short Cascade Risk.
When volatility and pressure expand without clean directional separation, the chart may show Two-Way Cascade.
When pressure falls after a build-up, the chart may show Risk Cooling.
🧱 System Philosophy
AGProLabs scripts are built as structured decision-support tools.
The goal is not to make the chart louder. The goal is to make hidden market context easier to read, compare, and question.
🔐 Non-Promise Statement
No script can remove uncertainty.
No state should be treated as certainty.
No visual element should replace trader judgment.
📉 Risk Disclosure
Trading involves risk.
Crypto derivatives and leveraged markets can be especially volatile.
This script is for educational and analytical purposes only.
Nothing in this script should be interpreted as financial advice, investment advice, or a guarantee of outcome.
Users remain fully responsible for their own decisions.
📚 Educational Note
Use this script to study how pressure, volatility, persistence, and directional stress interact before and after unstable crypto market moves.
Indicator

Leverage Reset Quality Map [AGPro Series]Leverage Reset Quality Map
🧠 Core Idea
Did leverage actually reset, or did the market only pause before risk rebuilt again?
📌 Overview / What it does
Leverage Reset Quality Map is a crypto derivatives context tool designed to evaluate whether a leverage washout is developing into a cleaner reset, a fragile reset, a crowded stress condition, or a reload-risk environment.
The script combines open interest when available, a transparent volume-proxy fallback, data-change behavior, volatility shock, range expansion, wick flush behavior, recovery quality, persistence, and trend context. It converts those inputs into a reset-quality ladder, compact state labels, right-side tags, pulse markers, alerts, and an AG Pro dashboard.
It does not liquidate positions, predict future price direction, automate entries, or claim that a reset must lead to a reversal. It is an analytical map for reading whether leverage pressure appears to be clearing, rebuilding, or remaining unstable.
🎯 Purpose & Design Philosophy
This script was built for traders who want to separate a true leverage reset from a simple bounce, pause, or noisy reaction.
After sharp moves, many markets look relieved for a short period. The important question is whether participation pressure cooled, volatility stabilized, and price recovered with acceptable structure. Leverage Reset Quality Map turns that question into a visible workflow.
The design philosophy is simple: a reset is not automatically bullish or bearish. A reset is a context condition. Its quality depends on stress release, recovery quality, volatility behavior, and whether participation starts rebuilding too early.
⚡ Why This Script Is Different
Most tools focus on liquidation levels, open interest changes, or raw volume spikes.
This script does NOT draw another liquidation heatmap, does NOT treat every OI drop as bullish, and does NOT mark every volume spike as meaningful leverage cleansing.
Instead, it evaluates reset quality as a multi-factor condition. It asks whether stress is building, whether pressure is releasing, whether the market is recovering cleanly, and whether leverage-style participation is reloading before the reset matures.
⚙️ Methodology
1. Context Detection
The script reads official open interest when available. If official OI is unavailable and fallback is enabled, it uses volume as a transparent leverage-participation proxy.
2. Stress Mapping
It evaluates data-change pressure, velocity, volatility shock, range shock, and wick flush behavior to estimate whether leverage-style stress is present.
3. Reset Quality Evaluation
It measures participation contraction, volatility cooling, price recovery, wick recovery, and trend context to estimate reset quality.
4. Visual Output
The output is displayed as a reset-quality ladder with state, quality, reload risk, event labels, compact pulse markers, reaction tracks, and a dashboard panel.
🗺️ How to Read the Chart
The reset-quality ladder is the main visual object.
The upper step represents the current reset or stress state.
The middle step represents reset quality.
The lower step represents reload risk.
The vertical needle shows where current reset quality sits inside the ladder.
Labels mark state transitions such as Clean Reset, Fragile Reset, Reload Risk, and Stress Build.
Compact pulse markers add context:
• R = Clean Reset pulse
• F = Fragile Reset pulse
• L = Reload Risk pulse
• S = Stress Build pulse
Colors communicate context:
• Teal = cleaner reset pressure
• Yellow = fragile or incomplete reset
• Pink = reload or stress risk
• Indigo = neutral reset-quality structure
The panel summarizes state, reset quality, data change, stress score, persistence, reload score, direction, grade, data mode, volatility shock, OI source, and trend.
🚦 Signals & States
• Clean Reset → stress release and recovery quality are improving
• Fragile Reset → some reset behavior is visible, but quality remains incomplete
• Reload Risk → participation may be rebuilding before the reset is healthy
• Crowded Stress → leverage-style pressure is building without a clean reset
• Neutral Reset → no active reset state dominates the current read
• Data Missing → official OI and fallback data are not available
🔔 Alerts Logic
Alerts trigger when the script transitions into selected reset-quality states.
Clean Reset alerts mark improving reset quality.
Fragile Reset alerts mark incomplete reset conditions.
Reload Risk alerts mark renewed leverage-style participation before quality improves.
Stress Build alerts mark stress expansion without a clean reset read.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest context appears when several components align:
Participation contraction + volatility cooling + wick recovery + price recovery + improving reset quality.
The weakest context appears when participation expands again, volatility stays hot, and reset quality remains low.
📊 When to Use
• Crypto perpetual and futures charts
• Post-selloff or post-squeeze environments
• High-volatility reactions
• Open interest or volume-pressure analysis
• Markets where leverage reset quality matters more than a raw signal
⚠️ When NOT to Use
• Extremely illiquid symbols
• Markets with unreliable open interest or volume data
• Very low-volatility sideways charts where leverage pressure is not active
• News-driven gaps where normal reset logic may be distorted
• Any situation where the user expects a direct buy or sell signal
🎛️ Key Inputs
• Data Mode → selects official OI, manual OI, or volume-proxy behavior
• Manual Open Interest Symbol → lets the user define a specific OI source
• Context Lookback → controls the normalization window
• Fast Reaction Length → controls the short-term recovery track
• Slow Baseline Length → controls the slower reset baseline
• Minimum Stress Score → controls how much pressure is required for stress states
• Minimum Quality Score → controls how much recovery quality is required for a clean reset
• Event Label Cooldown → controls label spacing and visual density
• Panel / label settings → control visual layout and readability
🖥️ Interface & Visual Design
The interface is designed to feel different from zone-first or corridor-first tools.
Instead of drawing a large boxed area, the script uses a staggered reset-quality ladder. This keeps the chart readable on both dark and light PulseWire backgrounds and reduces the risk of looking like a duplicate of nearby derivatives tools.
The panel uses a merged blue AG Pro header row and a compact information hierarchy.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check whether data mode is Open Interest or Volume Proxy.
3. Look at the reset-quality ladder.
4. Compare reset quality with reload risk.
5. Review recent event labels and pulse markers.
6. Confirm the broader chart structure.
🔍 Interpretation Guidelines
A Clean Reset does not mean price must rise.
A Reload Risk state does not mean price must fall.
The script is designed to help users think in terms of leverage pressure, reset quality, and context alignment. It should be interpreted with broader structure, liquidity, trend, and risk controls.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It is not a liquidation heatmap.
It does not guarantee reversals, continuations, entries, exits, or outcomes.
⚠️ Limitations & Transparency
Open interest availability depends on the symbol, exchange, and PulseWire data support.
When official OI is unavailable, the script can use volume as a transparent proxy. A proxy is not the same as official open interest.
Timeframe differences may change how reset quality appears.
Volatility spikes, exchange-specific behavior, and sudden news events may distort the read.
🧠 Market Context Notes
Leverage resets often appear after forced movement, sharp volatility expansion, wick-heavy reactions, or participation contraction.
The important distinction is whether the reset becomes cleaner or whether risk reloads before the market has stabilized.
This script focuses on that distinction.
🧾 Use Case Examples
When price flushes lower, participation contracts, volatility cools, and price recovers toward the reaction track, the script may show Clean Reset.
When a market bounces but participation expands again while reset quality remains weak, the script may show Reload Risk.
When volatility remains hot and stress score remains elevated, the script may show Crowded Stress.
🧱 System Philosophy
Leverage Reset Quality Map follows the AGProLabs principle of building decision-support maps rather than prediction tools.
The goal is to make hidden market conditions easier to observe, compare, and interpret without overclaiming certainty.
🔐 Non-Promise Statement
No script can know future price direction.
No state should be treated as certainty.
Every output should be interpreted as context, not as an instruction.
📉 Risk Disclosure
Trading involves risk.
Crypto derivatives can be highly volatile and may involve leverage, liquidation risk, exchange risk, data limitations, and rapid market movement.
Users remain fully responsible for their own decisions.
This script does not provide financial advice.
📚 Educational Note
This script is intended for educational, analytical, and visual market-structure study.
Its value comes from helping users ask better questions about leverage pressure, reset quality, and risk rebuilding.
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

Open Interest Commitment Map [AGPro Series]Open Interest Commitment Map
🧠 Core Idea
Is open interest expansion actually committing with price, or is participation building without conviction?
📌 Overview / What it does
Open Interest Commitment Map is a crypto derivatives context tool designed to evaluate whether open interest expansion, contraction, price movement, volatility, and persistence are aligning into a meaningful market participation state.
The script attempts to read open interest data through configurable OI symbol builders, including Perp Contract OI, Chart Ticker + _OI, Dot-P + _OI, and Manual mode. When supported open interest data is available, it measures OI change, normalizes that change, compares it with price movement, and classifies the result into commitment states. If official open interest data is unavailable, it can fall back to a transparent Volume Proxy mode so the user knows exactly what data mode is being used.
It produces a projected commitment zone, state labels, right-side tags, alerts, and an AG Pro dashboard. It does not predict price direction, automate entries, or claim that open interest expansion must continue.
🎯 Purpose & Design Philosophy
This script was built because open interest is often discussed as if it has one simple meaning. In reality, rising open interest can support a trend, pressure a crowded side, reflect absorption, or become irrelevant without price confirmation.
The goal is to turn open interest into a readable commitment map rather than a raw number. The script asks whether participation is expanding, whether price is accepting that expansion, whether the behavior persists, and whether the current state deserves attention.
It is designed for crypto futures and perpetual traders who want to evaluate derivatives participation without relying on a simplistic “OI up equals bullish” or “OI down equals bearish” interpretation.
⚡ Why This Script Is Different
Most tools show open interest as a separate line or histogram.
This script does NOT treat open interest as a standalone signal, does NOT assume rising OI is automatically bullish, and does NOT hide data limitations when official OI is unavailable.
Instead, it maps OI behavior into structured states: Long Build, Short Build, OI Unwind, Absorption, Reset, or Data Missing. It combines OI change, normalized OI deviation, price movement in ATR units, trend acceptance, persistence, and volume rank into one visual commitment framework.
⚙️ Methodology
1. Context Detection
The script builds or reads the open interest source and checks whether official OI data is available.
2. Reference Mapping
Open interest change is measured over a configurable lookback and normalized against a longer historical window.
3. Reaction Evaluation
The model compares OI expansion or contraction with price movement, trend position, volatility, and persistence.
4. Visual Output
The final state is displayed through a projected commitment zone, state tags, event labels, and a compact AG Pro panel.
🗺️ How to Read the Chart
The commitment zone represents the active area where price and participation behavior are being monitored.
Labels mark key state transitions such as Long Build, Short Build, OI Unwind, and OI Absorption.
Colors communicate context:
• Teal = Long Build
• Pink = Short Build
• Yellow = OI Unwind
• Indigo = Absorption or neutral commitment context
• Light/neutral = Reset or Data Missing
The panel shows state, score, OI change, OI z-score, persistence, volume rank, direction, quality, data mode, OI source, and distance from the OI baseline.
🚦 Signals & States
• Long Build → open interest expands while price shows constructive acceptance
• Short Build → open interest expands while price shows bearish acceptance
• OI Unwind → open interest contracts meaningfully while price moves
• OI Absorption → open interest expands but price movement remains compressed
• Reset → no strong commitment state is active
• Data Missing → no usable open interest or proxy data is available
🔔 Alerts Logic
Alerts trigger when the script transitions into a selected commitment state.
Long Build alerts mark expanding participation with constructive price acceptance.
Short Build alerts mark expanding participation with bearish price acceptance.
OI Unwind alerts mark meaningful open interest contraction while price is moving.
OI Absorption alerts mark expanding open interest with limited price movement.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest read appears when multiple conditions align:
Open interest change + OI z-score + price movement + trend acceptance + persistence + volume rank.
When expansion appears without price progress, the context can shift from directional commitment to absorption. When contraction appears with price movement, the context can shift toward unwind behavior.
📊 When to Use
• Crypto perpetual and futures markets
• Symbols where PulseWire provides open interest data through `_OI`
• High-participation sessions where trader positioning may matter
• Breakout, breakdown, compression, and post-liquidation environments
• Situations where the user wants to distinguish commitment from noise
⚠️ When NOT to Use
• Symbols with no reliable open interest data when proxy mode is not desired
• Illiquid markets with unstable volume or fragmented data
• Very low timeframe noise without broader context
• Spot-only markets where open interest is not relevant
• Major news events where positioning can change faster than the model can stabilize
🎛️ Key Inputs
• OI Symbol Mode → controls whether the script uses Perp Contract OI, Chart Ticker + _OI, Dot-P + _OI, or Manual OI source selection
• Manual Open Interest Symbol → allows manual OI source selection if needed
• Allow Volume Proxy Fallback → uses transparent proxy mode when official OI is unavailable
• OI Baseline Length → controls the smoothing baseline for participation data
• OI Change Lookback → controls the change window for OI expansion or contraction
• OI Normalization Lookback → controls how unusual the OI change must be
• OI Commitment Z Threshold → defines the minimum normalized expansion required for commitment
• Visual Settings → control zone projection, event labels, right-side tags, and font sizes
🖥️ Interface & Visual Design
The interface is built around a clean commitment zone and a compact AG Pro panel.
The chart should feel active but not crowded. The projected zone gives the screenshot a visible story, right-side tags show the live state, and event labels highlight meaningful historical transitions.
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. Start with OI Symbol Mode set to Perp Contract OI.
3. Confirm the Data Mode row says Open Interest when official OI data is available.
4. If Data Mode says Volume Proxy, try Chart Ticker + _OI, Dot-P + _OI, or Manual mode before using the screenshot for publication.
5. Read the State and Score rows.
6. Inspect whether price and OI are building, unwinding, absorbing, or resetting.
7. Confirm the context with broader market structure, liquidity, volatility, and risk management.
🔍 Interpretation Guidelines
Rising open interest is not automatically bullish.
Falling open interest is not automatically bearish.
Open interest expansion becomes more meaningful when price movement and persistence support the same story.
Absorption can be important because participation is increasing without clean price progress.
Unwind can be important because positioning is contracting while price is moving.
🚫 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 guarantee official open interest data exists on every symbol.
This script does not claim that open interest expansion must continue or reverse.
⚠️ Limitations & Transparency
Official open interest availability depends on the symbol, exchange, and PulseWire data support.
If official OI data is not available and proxy fallback is enabled, the panel clearly shows Volume Proxy mode.
Volume Proxy is not the same as official open interest. It can still help visualize participation pressure, but it should be interpreted more cautiously.
Different exchanges, contract types, timeframes, and liquidity conditions can produce different open interest behavior.
🧠 Market Context Notes
Open interest can help traders think about participation, but it needs context.
Expansion with price acceptance may indicate commitment.
Expansion without progress may indicate absorption.
Contraction with movement may indicate unwind.
No single state removes uncertainty.
🧾 Use Case Examples
When OI expands and price accepts higher while trend context supports the move, the script may classify Long Build.
When OI expands and price accepts lower while trend context supports the move, the script may classify Short Build.
When OI expands but price remains compressed, OI Absorption can warn that participation is building without clean directional progress.
When OI contracts while price moves, OI Unwind can help identify positioning reduction.
🧱 System Philosophy
Open Interest Commitment Map follows the AGProLabs design principle of building decision-support maps rather than prediction tools.
The script is designed to organize participation context into a readable workflow: read the panel, inspect the zone, check the state, evaluate reaction, and confirm with broader structure.
🔐 Non-Promise Statement
No open interest model can guarantee future price direction.
No commitment score creates certainty.
This tool helps structure interpretation; it does not replace judgment.
📉 Risk Disclosure
Trading involves risk.
Crypto derivatives can be highly volatile and may involve leverage, liquidation risk, exchange risk, 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 participation, price movement, volatility, persistence, and open interest behavior can combine into a more complete 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

Settlement Cycle VWAP Ladder [TechnicalZen]Must have in a technical trader's toolkit! Four volume-weighted anchors stacked across derivatives-expiry horizons for all major markets.
What This Is
A multi-horizon VWAP reference stack, anchored to the settlement calendar of your chosen market (options and futures expiry dates). Four volume-weighted levels — monthly, weekly, week-to-date, and session — rendered on the price pane with a 20-bar historical table showing how each has evolved.
The indicator does NOT guess or lag. It computes hard reference levels from actual volume and price, snaps them to real expiry dates (last Thursday for NSE, third Friday for Europe, etc.), and prints them as step-lines and accumulating curves on your chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What It Does — The Four Ladders
Monthly Anchor — N-day VWMA (default 20-day) whose value is snapped on the monthly expiry day and held flat until the next monthly expiry. This is your longest-horizon volume-weighted reference, updating once a month.
Weekly Anchor — N-day VWMA (default 5-day) snapped every weekly expiry day. Updates once a week. Between expiries it's a flat step-line — deliberately so, because that's what makes it useful as a reference level.
Week-to-Date VWAP — true cumulative VWAP accumulating bar-by-bar through the trading week. Resets the day AFTER weekly expiry (Friday for US / Europe, Monday for NSE Thursday-expiry, Wednesday for BSE Tuesday-expiry). Shows where volume-weighted consensus is building during the current cycle.
Session VWAP — classic daily VWAP, resets at each session open. Tightest anchor, your intraday fair-value line.
Stacked, these four tell you where price sits relative to volume-weighted consensus at every horizon: intraday → this week → this month → longer term. When price respects all four from one side, you have a strong directional bias. When price oscillates around the tight ones while respecting the wider ones, you have a range.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Market Presets — Derivatives Expiry Conventions Built In
Expiry days differ by market. Pick a preset and everything calibrates:
US Standard (3rd Friday) — SPX, NDX, S&P options, most index futures
US EOM (Last Friday) — SPX / SPY end-of-month options
Europe (3rd Friday) — DAX, FTSE 100, EURO STOXX 50, CAC 40, SMI, IBEX 35, AEX
India NSE (Last Thursday) — NIFTY, Bank NIFTY, stock futures, stock options
India BSE (Last Tuesday) — SENSEX, BANKEX
Custom — pick any weekday + "Third" or "Last" rule manually
Selecting the right preset sets the weekly snap day, the monthly snap rule (third vs last occurrence in the month), AND the week-start day for the Week-to-Date accumulator — so your "week" aligns with the actual options cycle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How to Use It
Load with defaults. Pick the market preset that matches your instrument.
Read price relative to the four ladders:
Above all four = strong volume-weighted uptrend across all horizons
Below all four = strong downtrend
Mixed (above some, below others) = transitional
Oscillating around tight (Session, WTD) while respecting wide (Weekly, Monthly) = range within bigger trend
Use the Monthly and Weekly anchors as support / resistance levels — they're where institutions mark to market at expiry.
Use the Week-to-Date VWAP as an intra-cycle fair value — price far above it = stretched bullish, far below = stretched bearish.
Use the Session VWAP as intraday mean — a classic reversion magnet.
Consult the history table for quick reference to recent values of all four, with date headers showing exactly which bar each column represents.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Main Features
Six market presets plus Custom mode for any derivatives expiry convention worldwide
Four stacked VWAP horizons — monthly, weekly, WTD, session — each independently togglable
Session-aware for futures — NQ, ES, CL, GC and other overnight-session instruments correctly identify their trading date via time_close("D"), so Friday's expiry snap lands on Friday even when the session starts Thursday evening
Date-headered history table — 20 columns of recent values, auto-formatted (HH:mm on intraday, dd MMM on daily+)
Adjustable text sizes — Tiny / Small / Normal / Large / Huge for both data cells and headers
Direction-aware colors — each cell and plot line shows bar-over-bar direction at a glance
Step-line plots with diamonds for the snapshot-held anchors (Monthly, Weekly); circles for WTD; continuous line for Session
Same-timeframe bug resolved — on D charts, VWMAs compute locally to avoid the 1-bar lookahead-off delay that `request.security` introduces; on sub-daily charts, `request.security` uses `lookahead_on` so intraday bars see today's evolving daily VWMA
NA guards — anchors never get clobbered by na on the first snap if chart history is short; they simply stay blank until a valid snap fires
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Settings
Market Preset — dropdown of expiry conventions (see above)
Monthly VWMA length (days) — default 20
Weekly VWMA length (days) — default 5
Source — price used for VWMA and cumulative calcs (default close)
Show Monthly / Weekly / WTD / Session — four independent plot toggles
Show History Table + position + column count
Data Cell Text Size / Header/Label Text Size — both adjustable
Custom: Monthly Rule — Third or Last (used only when Market Preset = Custom)
Custom: Expiry Weekday — Mon / Tue / Wed / Thu / Fri (used only when Market Preset = Custom)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Session-Aware Design
Cash equities (TSLA, AAPL, SPY) have a daily bar that sits squarely on the trading date. Futures (NQ, ES, CL) have an overnight session that starts the previous calendar evening. Most VWAP indicators that use `dayofweek(time)` get NQ wrong — they read Friday's session as Thursday because that's when it started.
This indicator uses `time_close("D")`, which always resolves to the trading date's session close — correct for both cash equities and overnight-session futures. No manual configuration needed; it just works on whatever symbol you load.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Disclaimer
This is a visualization and analytical tool, not financial advice or a signal service. VWAP levels are reference points — they do not guarantee reversals, breakouts, or any specific market behavior. Past price reactions at these levels do not guarantee future ones. Trade with your own risk management. Every trade can lose.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Four volume-weighted anchors. One chart.
— TechnicalZen
Indicator

Indicator

Crypto Derivatives Dashboard v1█ OVERVIEW
Crypto Derivatives Dashboard is a non-overlay indicator that analyzes futures market positioning data (Open Interest and Premium Index) to classify the current market regime and detect structural divergences between price action and derivatives flow.
It does NOT generate entry/exit signals. Instead, it provides a contextual layer to help you understand WHAT the derivatives market is doing — so you can decide whether to act on your primary strategy signals or wait.
█ WHAT IT MEASURES
1. OPEN INTEREST (OI)
• Daily OI change (%) — bars show inflow/outflow of contracts
• OI Z-Score — normalized deviation from its moving average (SMA 20)
• OI Rate of Change — momentum of OI over a configurable lookback
2. PREMIUM INDEX (Funding Proxy)
• Fetched from Binance PREMIUM tickers (hourly resolution)
• Converted to Z-Score to identify extremes:
→ Z > +2.0 = "Funding Hot" — overcrowded longs, correction risk
→ Z < -2.0 = "Funding Cold" — potential short squeeze setup
3. OI-PRICE DIVERGENCE
• Compares normalized ROC of OI vs Price
• Bearish divergence: price rises but OI doesn't follow (exhaustion)
• Bullish divergence: OI rises faster than price (accumulation)
4. REGIME CLASSIFICATION
Based on OI trend vs Price trend:
🟢 OI↑ + Price↑ = Healthy Trend (genuine demand)
🟡 OI↓ + Price↑ = Short Covering / Exhaustion (caution)
🔴 OI↑ + Price↓ = Shorts Building (avoid longs)
🟠 OI↓ + Price↓ = Long Liquidations (wait)
⚪ Neutral
5. COMPOSITE SCORE
Combines OI momentum, funding extremes, and divergence into a single number:
→ Positive = favorable environment for longs
→ Negative = unfavorable, consider waiting
6. LONG SIGNAL CHECK
A simple GO/WAIT flag: ✅ GO only when regime is healthy (🟢), funding is NOT extreme, AND no bearish divergence is active.
█ SUPPORTED ASSETS
BTC, ETH, SOL, BNB, XRP, PEPE — all via Binance Perpetuals.
Select the asset from the dropdown input. Tickers are constructed dynamically (handles PEPE → 1000PEPEUSDT automatically).
█ VISUAL COMPONENTS
• Column chart: Daily OI change % (teal = inflow, red = outflow)
• Blue line: OI Z-Score with ±2.0 reference levels
• Orange line: Premium Z-Score with configurable extreme thresholds
• Purple stepline: Divergence Score
• Background color: Regime classification (green/yellow/red/orange)
• Shape markers: Bearish/Bullish divergence triangles + Funding extreme icons
• Info Table (top-right): Real-time dashboard showing all metrics at a glance
█ ALERTS (6 CONDITIONS)
1. Regime Bearish — regime shifts to shorts building or liquidations
2. Bearish OI Divergence — price rises but OI doesn't confirm
3. Bullish OI Divergence — OI rises faster than price (accumulation)
4. Funding Hot — overcrowded longs, correction risk
5. Funding Cold — potential short squeeze
6. Derivatives GO — all conditions favorable for longs
█ INPUTS
Asset Selection: BTC / ETH / SOL / BNB / XRP / PEPE
OI Change Lookback: 14 (default)
OI SMA Length: 20 (default)
Divergence Z-Score Threshold: 1.5 (default)
Premium Z-Score Lookback: 50 (default)
Premium Extreme Thresholds: +2.0 / -2.0 (default)
Display toggles: Table, Background, Divergence markers
█ HOW TO USE IT
This indicator is designed as a VETO FILTER, not a signal generator.
Use it alongside your primary strategy:
1. Check the regime background before entering a trade
2. If 🟢 and no warnings → your strategy signals are confirmed
3. If 🔴🟠🟡 or bearish divergence → consider skipping the signal
4. Monitor funding extremes for contrarian context
5. Set alerts on regime changes to stay informed without watching the chart
█ TIMEFRAME
Optimized for Daily (D1). Works on any timeframe, but regime classification and z-scores are most meaningful on higher timeframes.
█ DATA SOURCES
• Open Interest: BINANCE:{ASSET}USDT.P_OI
• Premium Index: BINANCE:{ASSET}USDT_PREMIUM (1H resolution)
• Price: BINANCE:{ASSET}USDT.P (perpetual close)
█ LIMITATIONS
• Only Binance Perpetuals data (not aggregated across exchanges)
• Premium Index is a proxy for funding rate (not exact funding)
• Funding Rate, Long/Short Ratio, Liquidations, and Taker Buy/Sell Volume are NOT available as native PulseWire tickers
• Regime classification uses smoothed trends — may lag at turning points
Indicator

Total Futures Volume & Open Interest (Aggregated Curve)Description
Most futures indicators only look at the front contract, but that often tells an incomplete — and sometimes misleading — story.
This indicator solves that problem by aggregating Volume and Open Interest across the entire futures curve, not just the nearest expiry.
Instead of focusing on a single contract, the script automatically scans up to 40 futures contracts ahead (roughly one year forward) for the same underlying root symbol and sums their data into a single, unified series.
🔍 Why this matters
Open Interest is about commitment, not just activity.
A drop in front-month OI can simply mean rolls, not liquidation
Rising total OI confirms new money entering the market, not just contract switching
Divergences between price and aggregated OI often signal positioning stress, exhaustion, or regime shifts
By looking at total participation across all maturities, you get a much cleaner view of:
Real capital inflows vs. mechanical rolls
Structural positioning changes
Whether volatility is driven by speculation or true exposure changes
This is especially useful during high-volatility phases, contract roll periods, and major macro moves, where front-month data alone can be deceptive.
⚙️ How it works
Automatically iterates through the last 40 futures contracts of the same root symbol starting from ~1 year ahead expiry.
Aggregates: Total Open Interest and Total Volume
Lets you choose what to display directly from the indicator settings
Fully dynamic — no manual symbol selection, no roll management
The result is a continuous, roll-agnostic view of futures participation.
🧠 How to use it
Confirm breakouts with rising aggregated OI
Detect false moves when price expands but total OI contracts
Analyze post-spike behavior to see whether moves were driven by forced liquidation or fresh positioning
Compare volatility spikes against true market engagement
Indicator

Session Anchored OIWAP [Arjo]The Session Anchored OIWAP (Open Interest Weighted Average Price) indicator shows you a weighted average price that uses Open Interest (OI) changes during different trading sessions . It divides the day into four clear sessions: Opening Hour , Morning Session , Mid-Day Session , and Closing Session .
For each session , it calculates a weighted average price using both market price and open interest data from futures . This line updates as the session progresses and resets when a new session starts .
You can also see optional deviation bands that you visually compare to how far the market price is moving away from the session’s weighted average. This indicator also helps you watch how Open Interest changes connect with price movements during specific market hours.
Concepts
This tool works on a few simple ideas:
Session anchoring
Each session starts fresh. The indicator resets and begins a new calculation when a new time block begins. This allows users to visually study each session independently.
Open-interest weighting
Instead of treating all price moves equally, price changes linked to higher open-interest activity have more influence on the OIWAP. This gives a weighted reflection of where the market has been trading during the session.
Averaging and smoothing
The OIWAP line blends many price data points into one smooth curve, making it easier to follow than raw price movement.
Volatility display with bands
The upper and lower bands are placed at ±0.5 standard deviation from the OIWAP line. These bands simply help you see when price stretches further away than usual from the session average.
Features
Four Independent Session Calculations: Shows separate OIWAP lines for Opening Hour (default: 09:15-10:15), Morning (10:15-11:30), Mid-Day (11:30-14:00), and Closing (14:00-15:30) sessions
Open Interest Weighting: Uses absolute OI change as the weight instead of traditional volume
Customizable Session Times: You can change the time ranges for each session to match your market or what you need
Optional Deviation Bands: You can turn ±0.5 standard deviation bands on or off around each OIWAP line
Color-Coded Sessions: Each session has its own color so you can tell them apart easily
Selective Display: You can turn individual sessions and bands on or off
Data Availability Check: Shows you a notification when Open Interest data isn't available for your symbol
Adjustable Position Timeframe: You can calculate OI changes on different timeframes (Chart, Daily, 15min, 30min, 60min, 120min)
How to use
Add this indicator to a chart of any symbol that has Open Interest data ( from futures or derivatives contracts). Once you add it, you'll see colored lines showing the OIWAP for each session you enable, along with optional deviation bands.
Adjusting Settings:
Turn individual sessions on or off using the checkboxes in the " Sessions " section
Change session colors to match your chart or what looks good to you
Turn deviation bands on or off using the " Show Bands " option in the Display settings
Change session time ranges in the " Session Times " section to match your market hours or what you want to analyze
Change the Position Timeframe if you want to see OI changes calculated on a different time period
Visual Interpretation:
Each OIWAP line shows you the OI-weighted average price for that session
The deviation bands show you how much prices spread out, weighted by OI changes
You can watch how price interacts with these levels to see where significant OI activity happened
Different sessions may show different OIWAP levels, showing you how the OI-price relationship changes throughout the trading day
Note:
This indicator needs Open Interest data to work. If OI data isn't available for your symbol, you'll see a message in the center of your chart. This indicator works only with derivatives markets like futures and options in the Indian Market where OI data is publicly available.
Conclusion
The Session Anchored OIWAP indicator is designed to support structured market observation by combining price, open interest, and session anchoring into a clear visual format. It helps users study market behavior during different parts of the day without generating trading instructions or outcomes.
Disclaimer
This indicator is for educational and visual-analysis purposes only. It does not provide trading signals , financial advice, or guaranteed outcomes . You should perform your own research and consult a licensed financial professional when needed. All trading decisions are solely the responsibility of the user.
Happy Trading
Indicator

Multi Straddle-Strangle ChartThis powerful indicator is designed for options traders who want to visualize and track the combined premium of multiple straddle and strangle strategies in a single, dedicated pane.
Quickly analyze and compare up to five different options strategies at a glance, directly on your chart. This tool is perfect for monitoring volatility, tracking potential profits/losses on a position, and spotting key support and resistance levels based on option premiums.
Key Features:
Plot Up to 5 Strategies: Simultaneously plot any combination of up to 5 straddles or strangles.
Real-Time Data: Fetches live data for both Call and Put options to give you an up-to-the-second view of the combined price.
Dynamic Symbol Generation: Automatically detects the underlying symbol (e.g., NIFTY, BANKNIFTY, stocks) and builds the correct option symbols based on your input.
Customizable Inputs: Easily configure the expiry date, strike prices and line colors for each of the 5 lines.
In-Chart Summary Table: A clean and clear table in the corner of your chart provides a quick summary of each enabled strategy and its current price.
Important Note on Usage:
This tool requires you to input a strike price in all fields, even if you do not plan to use all five lines. This is necessary because of a fundamental rule in the Pine Script language: every input must have a constant, non-empty default value. The indicator is optimized to only fetch data for the lines you have explicitly enabled with the "Enable Line X" checkbox. Indicator

Indicator

Volume-Price PercentileDescription:
The "Volume-Price Percentile Live" indicator is designed to provide real-time analysis of the relationship between volume percentiles and price percentiles on any given timeframe. This tool helps traders assess market activity by comparing how current volume levels rank relative to historical volume data and how current price movements (specifically high-low ranges) rank relative to historical price data. The indicator visualizes the ratio of volume percentile to price percentile as a histogram, allowing traders to gauge the relative strength of volume against price movements in real time.
Functionality:
Volume Percentile: Calculates the percentile rank of the current volume within a user-defined rolling period (default is 30 bars). This percentile indicates where the current volume stands in comparison to historical volumes over the specified period.
Price Percentile: Calculates the percentile rank of the current candle's high-low difference within a user-defined rolling period (default is 30 bars). This percentile reflects the current price movement's strength relative to past movements over the specified period.
Percentile Ratio (VP Ratio): The indicator plots the ratio of the volume percentile to the price percentile. This ratio helps identify periods when volume is significantly higher or lower relative to price movement, providing insights into potential market imbalances or strength.
Real-Time Data: By fetching data from a lower timeframe (e.g., 1-minute), the indicator updates continuously within the current timeframe, offering live, intra-candle updates. This ensures that traders can see the histogram change in real-time as new data becomes available, without waiting for the current candle to close.
How to Use:
Adding the Indicator: To use this indicator, add it to your chart on PulseWire by selecting it from the Indicators list once it is published publicly.
Setting Parameters:
Volume Period Length: This input sets the rolling window length for calculating the volume percentile (default is 30). You can adjust it based on the desired sensitivity or historical period relevance.
Candle Period Length: This input sets the rolling window length for calculating the price percentile based on the high-low difference of candles (default is 30). Adjust this to match your trading style or analysis period.
Interpreting the Histogram:
The histogram represents the volume percentile divided by the price percentile.
Above 1: A value greater than 1 indicates that volume is relatively strong compared to price movement, which may suggest high activity or potential accumulation/distribution phases.
Below 1: A value less than 1 suggests that price movement is relatively stronger than volume, indicating potential weakness in volume relative to price moves.
Near 1: Values close to 1 suggest a balanced relationship between volume and price movement.
Application: Use this indicator to identify potential breakout or breakdown scenarios, assess the strength of price movements, and confirm trends. When volume percentile consistently leads price percentile, it might signal sustained interest and support for the current price trend. Conversely, if volume percentile lags significantly, it might warn of potential trend weakness.
Best Practices:
Multiple Timeframe Analysis: While the indicator provides real-time updates on any timeframe, consider using it alongside higher timeframe analysis to confirm trends and volume behavior across different periods.
Customization: Adjust the period lengths based on the asset’s typical volume and price behavior, as well as your trading strategy (e.g., short-term scalping vs. long-term trend following).
Complement with Other Indicators: Use this indicator in conjunction with other volume-based tools, trend indicators, or momentum oscillators to gain a comprehensive view of market dynamics.
Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Liquidation Levels
I got sick of calculating leverage all of the time, so I made this real time calculator. It is primarily for crypto derivatives.
It tracks and displays the liquidation price for 5 customisable leverage levels and plots them either historically and/or in real time, with labels beside each including the estimated price.
These calculations include maintenance margin and can be configured for linear futures (USDT) or non-linear futures. Never again make dumb mistakes that are obvious with a bit of maths.
To jazz it up, you can customise the colours, disable various labels, set different leverage multiples, and change the offsets and number of bars to plot in the past.
Alternatively, you can change the offset to 24 on an hourly chart and change show last bars to 0. By doing this, you can see which levels most often get liquidated. It is crude, I know, and there are better tools for tracking liquidation hunts. This is not an attempt to replace or compete with them.
Enjoy and trade safely. Indicator

Indicator
