Indicador

$crooge's - A.R.C. [Final]Overview
The A.R.C. Master (Adaptive Ratchet Channel) is a comprehensive trend-following and risk management engine designed for traders who demand precision across different asset classes. Unlike static indicators that fail when volatility spikes, the A.R.C. Master uses a dynamic "Ratchet" logic that recalibrates in real-time based on the specific Character of the asset you are trading.
Whether you are scalping NASDAQ:SNDK on the 1-minute chart or swing trading the S&P 500, this script provides a clear, institutional-grade "line in the sand" for every trade.
Key Features
1. ⏱️ Modular Strategy Horizons
No more changing settings every time you switch timeframes. The A.R.C. Master features four hard-coded modes that automatically adjust the engine’s sensitivity:
SCALP MODE (1m-2m): Ultra-tight tracking for momentum bursts.
INTRADAY MODE (5m-15m): Balanced smoothing for the "daily grind."
SWING MODE (1h-4h): Filters out intraday noise to capture multi-day trends.
TREND MODE (Daily): Focuses on major structural market shifts.
2. 💎 Asset Character Calibration
Different assets breathe differently. This script includes 10 pre-tuned presets to match the unique volatility profiles of:
INDICES: SPY, QQQ, SPX (Uses close for structural stability).
CHIPS / SEMIS: NASDAQ:SNDK , NASDAQ:NVDA , NASDAQ:MU (Optimized for high-velocity gaps).
EV SECTOR: NASDAQ:TSLA , NASDAQ:RIVN (Handles aggressive retail sentiment).
CRYPTO / BTC: Optimized for 24/7 high-beta volatility.
Also includes: Energy, Growth, Leveraged 3x, Forex, Retail, and Biotech.
3. 🏦 Institutional Volume Detection
Stop guessing where "Big Money" is entering. The script monitors volume relative to a 20-period average:
White Bar (Inst. Buy): High-volume absorption at support.
Orange Bar (Inst. Sell): Heavy distribution at resistance.
Visuals can be toggled on/off to keep your charts clean.
4. ⚙️ The "Zero-Reset" Override (New)
For specialized tickers or extreme market events, you can manually override the Volume Threshold or Scalar sensitivity.
The Power of Zero: Simply set the override to 0 to instantly revert to the optimized sector presets.
How to Use the A.R.C. Master
The Entry: Look for the Ratchet Line to flip Cyan (Bullish). Entry is highest conviction when a White Institutional Bar appears right as the price touches the Ratchet Line.
The Hold: As long as the price stays above the Cyan line, the trend is intact. The "Ratchet" will move up with the price, locking in unrealized gains.
The Exit: A candle close below the Ratchet Line (turning the line Pink) is a signal of a structural trend break. Exit or flip bias immediately.
Technical Breakdown
Core Engine: Adaptive ATR-based volatility buffer combined with dual-EMA smoothing.
Source Logic: Intelligently switches between hlcc4 (for volatile sectors) and close (for indices) to ensure you aren't stopped out by rogue wicks.
Disclaimer: Trading involves significant risk. The A.R.C. Master is a tool to assist in decision-making and does not guarantee profits. Use proper stop-losses and risk management at all times. Indicador

Indicador

Indicador

MSL Momentum Deviation Channel
MSL Momentum Deviation Channel is a momentum-state oscillator developed by MarketStructureLab.
The indicator is designed to evaluate not only the direction of price movement, but also the strength of momentum relative to current volatility. It uses a two-stage normalization process: first, price is normalized inside a volatility envelope based on a moving average and standard deviation; then the resulting momentum oscillator is normalized again through its own standard-deviation structure.
This creates a momentum line that is less dependent on the absolute price level and more focused on the current state of market impulse, trend pressure, overextension and possible momentum loss.
What the indicator shows
The main BMD line represents normalized momentum deviation. It measures where the current price-driven impulse sits relative to its own volatility structure.
The line color reflects the active market state:
Bull color, green, means the indicator is in an active bullish state after crossing above the upper threshold.
Bear color, red, means the indicator is in an active bearish state after crossing below the lower threshold.
Gray means the market is neutral or no confirmed momentum state has been triggered yet.
Raw BMD, shown in gray, displays the first-pass oscillator before the second filtering stage. It can be used to compare raw impulse with the filtered BMD state.
The OB zone shows an overbought or overheated momentum area. When BMD is above the OB Level, the market may be extended to the upside.
The OS zone shows an oversold or downside-extension area. When BMD is below the OS Level, the market may be extended to the downside.
Important: OB and OS zones are not automatic entry signals. They are context zones that help evaluate the state of momentum.
How signals are generated
A Bull signal appears when BMD crosses above the Bull Threshold. The default Bull Threshold is 80.
A Bear signal appears when BMD crosses below the Bear Threshold. The default Bear Threshold is 20.
After a Bull or Bear signal appears, the state remains active until the opposite signal is triggered. This helps the indicator focus on momentum-state transitions instead of reacting to every small fluctuation.
The Cooldown filter sets the minimum number of bars required between Bull and Bear flips. This helps reduce clusters of rapid state changes in noisy or sideways market conditions.
How to read the indicator
A Bull label on the price chart means that momentum has shifted into a bullish state.
A Bear label on the price chart means that momentum has shifted into a bearish state.
If the BMD line is green and remains above the mid area, bullish momentum is still active.
If the BMD line is red and remains below the mid area, bearish momentum is still active.
If the BMD line frequently changes color around the middle of the range, the market may be in a noisy, sideways or indecisive phase.
If BMD moves into the OB zone, it does not automatically mean that a bearish trade should be opened. It means the upside impulse is extended, and further confirmation is needed before treating it as a reversal or exit signal.
If BMD moves into the OS zone, it does not automatically mean that a bullish trade should be opened. It means the downside impulse is extended, and further confirmation is needed before treating it as a reversal or recovery signal.
What problem it helps solve
Traditional trend indicators often react with delay because they follow price. Classic oscillators can produce too many countertrend signals during strong trending moves.
MDC combines elements of both approaches:
1. From trend-following tools, it uses the idea of confirmed market states. A signal appears only after BMD crosses a defined threshold, not after every small movement.
2. From oscillators, it uses normalization. The value is not based on absolute price, but on momentum relative to current volatility.
3. The two-stage standard-deviation process helps smooth part of the noise that may remain after the first normalization stage.
4. The Cooldown filter helps prevent frequent back-to-back flips during choppy conditions.
As a result, the indicator can be used as a structured momentum-context tool for identifying bullish and bearish state transitions, overheated zones and downside-extension zones in one separate pane.
Recommended timeframes
H1 and higher.
H1 can be used for intraday swing analysis. Signals appear more frequently, but market noise is also higher.
H4 is the most balanced timeframe for many swing scenarios. The default settings are designed to work well in this mode.
D1 is suitable for position analysis and calmer trend-state tracking.
W1 can be used as a higher-timeframe momentum filter to understand the broader market direction.
The indicator can be used below H1, but lower timeframes usually require more careful tuning because noise increases significantly.
Suggested presets
H1:
baseLen = 25
sdLen = 35
mult = 2.0
Cooldown = 5–10
This setup is more reactive and can produce more frequent signals.
H4:
baseLen = 40
sdLen = 50
mult = 2.0
Cooldown = 5
This is the default balanced swing setup.
D1:
baseLen = 50
sdLen = 60
mult = 2.2
Cooldown = 0–5
This setup is smoother and better suited for longer trend moves.
W1:
baseLen = 60+
sdLen = 60+
mult = 2.2
This mode is better used as a higher-timeframe direction filter rather than a frequent signal tool.
Markets
MDC is most useful on markets that tend to produce clear impulse phases, such as crypto, indices, growth stocks, liquid futures and major forex pairs.
In tight sideways ranges, any momentum-based tool can produce weaker or more frequent false transitions. For this reason, MDC should be used together with market structure, levels, volatility context and higher-timeframe analysis.
Settings
Base Length controls the length of the main moving average used for the volatility envelope. Higher values make the indicator smoother and slower.
SD Length controls the standard-deviation calculation length. Higher values create more stable but slower filtering.
SD Multiplier controls the width of the volatility envelope. Higher values make extreme conditions less frequent.
Bull Threshold defines the level above which BMD switches into a bullish state.
Bear Threshold defines the level below which BMD switches into a bearish state.
Cooldown defines the minimum number of bars between Bull and Bear state changes.
OB Level and OS Level define overbought and oversold context zones. These are not automatic trade signals.
Practical usage logic
A Bull signal is stronger when it appears after compression, after a sideways phase, or in alignment with a bullish higher-timeframe context.
A Bear signal is stronger when it appears after momentum loss, after a local structure breakdown, or in alignment with a bearish higher-timeframe context.
The OB zone can be useful for evaluating upside extension, managing an existing position, taking partial profits or waiting for signs of momentum weakness.
The OS zone can be useful for evaluating downside extension, watching for reaction areas or waiting for momentum recovery.
The best way to use MDC is as a momentum-context tool, not as a complete trading system. It helps identify the current state of impulse, but it does not replace risk management, price structure, levels, position sizing or a complete trading plan.
Alerts
The script includes alerts for:
BMD Bull
BMD Bear
BMD Overbought
BMD Oversold
Disclaimer
This indicator is for market analysis and educational purposes only. It is not financial advice and it is not a stand-alone buy or sell system. Always use proper risk management and your own trading plan. Indicador

Aegis Liquidity Ledger [JOAT]Aegis Liquidity Ledger
Introduction
Aegis Liquidity Ledger is an open-source liquidity pressure indicator built to answer a specific execution question:
Where is directional pressure being sourced, and where has that pressure already left behind a meaningful area of interest?
The script approaches that problem through two linked components:
a volatility-normalized pressure oscillator
shelf detection and origin-zone mapping
The oscillator explains whether participation is pushing in a bullish or bearish direction.
The shelf and origin logic explains where that pressure emerged from.
This separation is intentional.
It gives traders both the why and the where without forcing everything into a single overlay object.
Core Concepts
1. Composite Pressure Engine
The script blends multiple rate-of-change windows into one composite pressure signal.
Short-term impulse and slower campaign participation are both included so the output does not depend on a single lookback length.
2. Volatility-Normalized Thresholds
The pressure signal is measured against its own recent standard deviation rather than a fixed threshold.
This allows the expansion bands to adapt to the instrument and timeframe being viewed.
3. Shelf Detection
The script scans for repeated upper and lower interactions using body extremes and wick touches.
That makes the shelf logic more sensitive to areas where liquidity may have repeatedly rested.
4. Expansion Origin Zones
When pressure transitions through an adaptive bound on a confirmed bar, the script creates a source zone around the origin candle that preceded the release.
This zone remains relevant until price fully accepts through it.
5. Mitigation Logic
Shelves are not removed immediately.
They remain live until price fully accepts through the opposite side of the zone, after which they are visually de-emphasized as mitigated.
Features
Four-window pressure model: fast, medium, slow, and macro ROC blended together
Pressure smoothing: EMA smoothing controls oscillator responsiveness
Adaptive expansion thresholds: thresholds scale with recent pressure volatility
Normalized oscillator: pane output compresses pressure into an interpretable range
Demand and supply shelves: persistent shelf zones are drawn directly on the chart
Origin-zone logic: shelf creation is tied to confirmed expansion events
Touch and intensity tracking: shelf labels summarize interaction count and density
Mitigation state: zones are visually softened after full acceptance through them
Pressure-based candle coloring: optional chart bars reflect dominant liquidity pressure
Institutional dashboard: dashboard summarizes pressure, compression, shelf dominance, and state
Input Parameters
Pressure Engine
Fast ROC
Medium ROC
Slow ROC
Macro ROC
Pressure Smoothing
Expansion Threshold Multiplier
Liquidity Shelves
Shelf Window
Shelf Width ATR
Max Live Shelves Per Side
Show Expansion Origin Zones
Show Shelf Labels
Display
Show Pressure Fill
Show Expansion Glow
Show Zero Line
Color Candles By Pressure
Dashboard Position
Dashboard Size
How to Use This Indicator
Step 1: Read Pressure Before Reading Shelves
Start in the pane.
If the pressure engine is neutral or compressed, shelf interactions are more likely to behave as reaction zones than true continuation sources.
Step 2: Watch for Confirmed Expansion
New shelves matter most when they are created by a confirmed expansion through the adaptive threshold.
That is the moment the script treats the move as meaningful enough to register an origin.
Step 3: Distinguish Live From Mitigated Zones
Fresh shelves are stronger contextual references than mitigated shelves.
Once a zone has been fully accepted through, it should be treated as reduced context rather than untouched inventory.
Step 4: Compare Upper and Lower Density
The interaction counts and intensity values help frame whether the instrument has built more meaningful supply or demand shelves in the current environment.
Step 5: Combine With Structure
Aegis Liquidity Ledger is not a standalone regime classifier.
It works best beside structure or session tools that explain the broader context around the pressure source.
Indicator Limitations
Liquidity shelves are inferred from price behavior, not from direct order book or market-by-order data
Aggressive settings can create more shelves than slower traders may want to track
Pressure normalization adapts to the instrument, but abrupt volatility shocks can still distort thresholds temporarily
A shelf is an area of contextual interest, not a guarantee of reversal or continuation
Originality Statement
Aegis Liquidity Ledger is structured around the relationship between a normalized pressure oscillator and persistent source-zone shelves.
Its design emphasizes where pressure comes from, how dense liquidity has been on each side of price, and whether a prior source has been mitigated, rather than simply plotting another momentum line.
Disclaimer
This indicator is provided for educational and informational purposes only.
It is not a recommendation to trade and should not be interpreted as financial advice.
All shelf and pressure readings are model-based interpretations of chart data and can fail under changing market conditions.
Always use independent analysis and risk management.
Indicador

Uptrick: Liquid Reversal BandsIntroduction
Liquid Reversal Bands is an overlay indicator designed to help traders identify dynamic support and resistance zones, detect mean-reversion opportunities, and read price position within a volatility-aware envelope. Rather than using fixed standard deviation bands around a single moving average, this system builds its band width from multiple volatility components simultaneously, creating a more adaptive and stable envelope that responds to changing market conditions without overreacting to short-term noise. The candle coloring, fair value line, and band fills all carry live visual information, making it possible to assess market state and recent signal context at a glance without needing additional tools on the chart.
How It Works
The centerline, referred to as the Liquid Fair Value, is computed by blending an EMA and an ALMA with a fixed offset and phase bias, then applying a secondary smoothing pass. This produces a centerline that is faster than a plain EMA but more stable than a raw ALMA, reducing lag while avoiding erratic pivots.
Band width is calculated from four volatility components: the standard deviation of price deviation from the fair value, a standard ATR reading, an EMA of absolute deviation, and an EMA of bar range energy. These four components are weighted and blended into a single composite width value that is then smoothed again before being applied to the upper and lower bands. This approach means the bands widen during high-volatility conditions driven by any combination of momentum, range expansion, or sustained deviation, rather than relying on a single measure that may miss one type of volatility while overreacting to another.
Reversal signals are generated when price closes back inside a band after having closed outside it on the prior bar. This close-crossing logic filters out brief wicks and requires a confirmed return into the envelope before triggering. An optional cooldown parameter prevents back-to-back signals within a defined number of bars.
Candle coloring operates in two selectable modes. In Reversal Heat mode, candles are colored continuously based on their real-time position within the band range, shifting from the bullish teal near the lower band to the bearish magenta near the upper band, with a full gradient in between. In Latest Signal mode, all candles take the solid color of the most recent confirmed signal direction, holding that color until the opposite signal fires. This mode is useful for traders who want a persistent visual reminder of the current signal bias rather than a moment-to-moment position readout.
The fair value line uses a separate slope-based gradient that transitions between bull and bear color depending on the direction and smoothed magnitude of the centerline trend. Optional outer bands extend beyond the primary envelope and can be enabled to identify extreme extension zones.
Baseline Design Rationale
The Liquid Fair Value uses EMA and ALMA specifically because they address opposite weaknesses. A standard EMA is computationally stable and reacts smoothly to recent price but carries lag from its uniform weighting. ALMA uses a Gaussian-weighted kernel that concentrates sensitivity toward recent bars while suppressing older data, which reduces lag but can introduce instability on sharp reversals. Blending the two captures the smoothness and stability of the EMA alongside the reduced lag of the ALMA, producing a centerline that neither drags excessively in trends nor overreacts to brief spikes. The secondary EMA pass applied afterward further damps any residual instability from the ALMA component without reintroducing significant lag.
Features
Liquid Fair Value centerline blending EMA and ALMA with dual-pass smoothing for a stable yet responsive mid-line
Composite band width derived from four volatility sources: deviation standard deviation, ATR, absolute deviation EMA, and bar range energy EMA
Primary upper and lower bands with independent multiplier controls
Optional outer bands for identifying extreme price extension, each with its own multiplier
Candle Coloring Mode selector with two options: Reversal Heat for continuous gradient coloring based on live band position, and Latest Signal for persistent directional coloring based on the most recent confirmed signal
Slope-based gradient coloring on the fair value line, transitioning between bullish and bearish color depending on trend direction and strength
Slope sensitivity and smoothing controls to tune how quickly the fair value line color responds to directional changes
Close-crossing reversal signals that trigger only when price re-enters a band after a confirmed close outside it
Configurable signal cooldown to space out signals and reduce repetitive triggers in choppy conditions
Gradient band fills between the fair value and upper and lower bands using directional color transparency
Outer band fills rendered separately with their own transparency layer when enabled
Alert conditions for both buy and sell signals
Inputs
Source: The price series used for all calculations. Defaults to close.
Fair Value Length: Controls the lookback period for both the EMA and ALMA that form the Liquid Fair Value centerline. Higher values produce a smoother and slower centerline.
Z-Width Lookback: The lookback window used to compute deviation standard deviation and absolute deviation mean. Larger values stabilize band width but reduce responsiveness to recent volatility shifts.
Band Smoothness: Controls the final EMA smoothing applied to the composite band width. Higher values produce wider, more stable bands.
Upper Band Multiplier and Lower Band Multiplier: Scale the upper and lower band distances from the fair value independently. Higher values push the bands further out, producing fewer signal triggers.
Outer Upper Band Multiplier and Outer Lower Band Multiplier: Applied on top of the primary multipliers to define the outer band distance. Only visible when outer bands are enabled.
Candle Coloring Mode: Selects how candles are colored. Reversal Heat maps each candle continuously to its current position within the band range. Latest Signal holds the color of the most recent confirmed buy or sell signal until the opposite signal fires.
Show Signals: Toggle to enable or disable reversal signal labels on the chart.
Signal Cooldown: Minimum number of bars that must pass between consecutive signals. Set to zero to allow signals on every qualifying bar.
Show Outer Bands: Toggle to enable or disable the outer band plots and their fills.
Slope Smoothing Length: Controls how many bars are used to smooth the fair value slope before it is mapped to a color. Lower values make the line color react faster to direction changes.
Slope Color Sensitivity: Scales how aggressively the slope magnitude maps to the color gradient. Lower values cause the line to reach full bull or bear color more quickly.
Originality
Most band-based indicators derive their width from a single volatility measure, typically standard deviation or ATR alone. Liquid Reversal Bands constructs its width from a weighted blend of four distinct volatility inputs, each capturing a different aspect of market activity. The additional smoothing hierarchy applied to both the centerline and the width ensures that bands expand and contract in a measured way rather than spiking on single-bar outliers. The dual candle coloring system offers two meaningfully different visual modes: one that reflects continuous real-time price positioning within the envelope, and one that reflects confirmed signal direction as a persistent state, giving traders a choice between positional awareness and signal context depending on their preference. The slope gradient on the fair value line is driven by a normalized and smoothed slope calculation, making it resistant to brief direction changes while still reflecting genuine trend shifts.
Conclusion
Liquid Reversal Bands is built for traders who want a mean-reversion and trend context tool that adapts to volatility through multiple lenses simultaneously. The composite width model, the selectable candle coloring modes, and the close-crossing signal logic together produce a system designed for clarity, stability, and honest visual representation of price state within the envelope.
Disclaimer
This indicator is published for educational and analytical purposes only. It does not constitute financial advice. Past behavior of any indicator does not guarantee future results. Always apply your own analysis and risk management before making any trading decisions. Indicador

Indicador

Indicador

Indicador

Stablecoin Liquidity Pulse Map [AGPro Series]Stablecoin Liquidity Pulse Map
🧠 Core Idea
Is stablecoin liquidity expanding into the market, parking defensively on the sidelines, or drying up before risk appetite weakens?
📌 Overview / What it does
Stablecoin Liquidity Pulse Map is a crypto market-context tool that maps stablecoin liquidity flow, stablecoin dominance pressure, and risk-appetite behavior into a clean visual pulse framework.
The script reads USDT and USDC market-cap sources, optionally includes DAI, compares stablecoin flow against broader crypto market-cap context, and converts those inputs into liquidity pulse states.
It produces a right-side liquidity pulse ribbon, pulse tracks, selective event labels, optional compact markers, and an AG Pro dashboard panel. It does not predict price, automate trades, or claim that stablecoin growth must immediately create a bullish market.
🎯 Purpose & Design Philosophy
Stablecoins are one of the most important liquidity layers in crypto.
When stablecoin supply expands, capital may be entering or preparing to rotate. When stablecoin dominance rises while price weakens, capital may be parking defensively. When stablecoin flow contracts, risk liquidity can become thinner.
This script was built to turn that macro liquidity layer into a practical chart-reading tool without pretending that liquidity alone is a complete trading system.
⚡ Why This Script Is Different
Most tools focus on price, trend, volatility, or exchange-specific derivatives data.
This script does NOT focus on funding, open interest, basis, leverage reset, liquidation levels, or ordinary trend signals.
Instead, it studies the stablecoin liquidity layer behind the market. It asks whether stablecoin flow, dominance pressure, and price behavior are aligned with expansion, defensive parking, dry liquidity, or early rotation.
⚙️ Methodology
1. Stablecoin Flow Detection
The script reads USDT and USDC market-cap data, with optional DAI inclusion.
2. Dominance Pressure Mapping
It compares stablecoin value against total crypto market-cap context when available.
3. Risk-Appetite Evaluation
It evaluates whether price is behaving constructively or defensively relative to a baseline.
4. Pulse Classification
The script combines flow, velocity, dominance pressure, parking risk, dry-liquidity behavior, and rotation context into a single liquidity pulse state.
🗺️ How to Read the Chart
The right-side pulse ribbon is the main visual object.
The center ribbon shows the active liquidity pulse state.
The upper ribbon tracks stablecoin flow and expansion pressure.
The lower ribbon helps identify parking or dry-liquidity pressure.
The vertical needle shows where the current pulse sits inside the active liquidity range.
Event labels identify important state changes such as Liquidity Inflow, Risk-Off Parking, Dry Liquidity, or Rotation Ready.
The panel summarizes state, pulse, stable flow, velocity, dominance, dominance change, direction, grade, risk parking, dry score, and data-source availability.
🚦 Signals & States
• Liquidity Expansion → stablecoin flow is improving while dominance pressure is not defensive
• Risk-Off Parking → stablecoin dominance pressure is rising while market appetite weakens
• Dry Liquidity → stablecoin flow is contracting and liquidity conditions may be thinner
• Rotation Ready → stablecoin flow improves while market behavior begins to recover
• Neutral Pulse → no strong stablecoin liquidity state is active
• Data Missing → selected stablecoin sources are unavailable
🔔 Alerts Logic
Alerts can be enabled for Liquidity Expansion, Risk-Off Parking, Dry Liquidity, and Rotation Ready.
Each alert triggers when the selected state becomes active. Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest reads happen when stablecoin flow, velocity, dominance behavior, and price context align.
For example, rising stablecoin flow with falling defensive dominance pressure can support a constructive liquidity read.
Rising stablecoin dominance while price weakens can suggest defensive parking rather than active risk appetite.
📊 When to Use
• Crypto market-cycle analysis
• BTC and ETH context checks
• Stablecoin liquidity monitoring
• Risk-on / risk-off environment review
• Macro crypto liquidity dashboards
• 1D and 1W chart analysis
⚠️ When NOT to Use
• Very low liquidity altcoins as the only decision source
• Symbols where stablecoin market-cap data does not load
• Extremely noisy intraday charts
• Situations requiring exact exchange order flow
• Any workflow that expects a standalone buy/sell signal
🎛️ Key Inputs
• USDT Market Cap Symbol → primary stablecoin source
• USDC Market Cap Symbol → secondary stablecoin source
• Include DAI Source → optional additional stablecoin component
• Total Crypto Market Cap Symbol → used for dominance pressure
• Liquidity Flow Length → controls stablecoin flow measurement
• Pulse Baseline Length → controls slower liquidity and trend context
• Inflow / Outflow Thresholds → control state sensitivity
• Dominance Pressure Threshold → controls risk-off parking sensitivity
• Visual settings → control ribbon, event labels, tracks, markers, panel, and font sizes
🖥️ Interface & Visual Design
The design is intentionally different from derivatives-focused maps.
It avoids large projected zones, liquidation paths, reset ladders, and basis meters.
The right-side pulse ribbon keeps the visual focused on liquidity context rather than exact price levels. Colors remain visible on both dark and white chart backgrounds, and the panel follows the AG Pro merged-header format.
🧪 Practical Usage Workflow
1. Read the panel state first.
2. Confirm USDT and USDC sources are active.
3. Check stable flow and dominance change.
4. Review the right-side pulse ribbon.
5. Compare the state with price structure and broader market trend.
6. Use alerts as attention markers, not trade instructions.
🔍 Interpretation Guidelines
Liquidity Expansion does not guarantee upside.
Risk-Off Parking does not guarantee downside.
Dry Liquidity does not guarantee immediate volatility.
Rotation Ready means conditions are improving, not that a rotation must occur.
Use the script as a market-context layer alongside structure, trend, volatility, and disciplined risk management.
🚫 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 is not an exact order-flow tool.
It does not guarantee market direction.
⚠️ Limitations & Transparency
Stablecoin market-cap symbols depend on TradingView data availability.
Total crypto market-cap data may not be available in every environment.
Stablecoin supply changes can lag market behavior.
Different timeframes can produce different interpretations.
Extreme events, exchange stress, depegs, or abnormal data conditions can affect readings.
🧠 Market Context Notes
Stablecoin liquidity is not automatically bullish or bearish.
The meaning depends on context. Stablecoins can represent incoming buying power, defensive parking, cash rotation, or liquidity withdrawal.
This script focuses on interpreting that context more clearly.
🧾 Use Case Examples
When stablecoin flow rises and defensive dominance pressure is low, the script may show Liquidity Expansion.
When stablecoin dominance rises while price weakens, it may show Risk-Off Parking.
When stablecoin flow contracts and market appetite is weak, it may show Dry Liquidity.
When stablecoin flow improves with early market recovery, it may show Rotation Ready.
🧱 System Philosophy
AGProLabs scripts are built as structured decision-support tools.
The goal is to make hidden market context easier to read, not to replace judgment with certainty.
🔐 Non-Promise Statement
No liquidity model can remove uncertainty.
No state should be treated as certainty.
No visual element should replace trader judgment.
📉 Risk Disclosure
Trading involves risk.
Crypto markets can be highly volatile and liquidity conditions can change quickly.
This script is for educational and analytical purposes only.
Nothing in this script should be interpreted as financial advice, investment advice, or a guaranteed trading outcome.
Users remain fully responsible for their own decisions.
📚 Educational Note
Use this script to study how stablecoin supply, stablecoin dominance, and risk appetite interact across crypto market cycles.
Indicador

Indicador

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 TradingView 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 TradingView 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.
Indicador

Indicador

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 TradingView 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 TradingView 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.
Indicador

Indicador

MA200 + RSI Pullback + Hard Close A long-only swing-trading indicator that signals entries when an
uptrending stock pulls back to oversold levels — but only during a
confirmed bullish market regime. Force-exits all signals when SPY
breaks its 200-day MA ("hard close").
═══ RULES ═══
• Entry: Close > MA200 AND RSI(14) < 40 AND SPY > SPY MA200 AND VIX < 30
• Exit : RSI > 70 OR Close < MA200 OR 2×ATR(14) trailing stop
• Hard close: exit ALL signals when SPY < SPY MA200 (regime kill switch)
═══ BACKTEST (499 S&P 500 stocks, 2008–2025, 0.1% commission) ═══
• Sharpe ratio: 1.25
• CAGR: 18.6%
• Max drawdown: -17.2%
• Trades: 1,719
• Win rate: 45.8%
• Avg hold: 18.7 days
═══ WALK-FORWARD VALIDATION ═══
• In-sample (2008–2018) Sharpe: 1.59
• Out-of-sample (2018–2025) Sharpe: 1.11
• IS → OOS degradation: ~30% (acceptable; classic edges often degrade 50%+)
• The hard-close filter cuts max drawdown ~9pp vs. the same strategy
without it — and makes IS/OOS more consistent (less regime-dependent).
═══ HOW TO USE ═══
• Daily timeframe, one ticker at a time (S&P 500 large-caps work best)
• Green triangle below bar = LONG signal
• Red triangle above bar = EXIT signal
• Red background = hard-close regime active (SPY in downtrend)
• Status table top-right = current state at a glance
• Five alert conditions provided (entry, all four exits)
═══ WHY IT WORKS ═══
The MA200 filter avoids catching falling knives. RSI < 40 in an uptrend
catches institutional panic that mean-reverts. The market filter and
hard close prevent participation in broad bear markets where mean-
reversion edges break down (2008, 2020, 2022).
═══ HONEST CAVEATS ═══
• Past performance ≠ future results.
• Backtested with ~10bps round-trip costs; higher costs degrade results.
• This is an INDICATOR, not an auto-executing strategy.
• Tested on US large-caps only. Behavior on small-caps, international,
ETFs, or crypto is untested or shown to underperform.
Not financial advice. Trade your own account. DYOR. Indicador

Indicador

Indicador

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

Tactical Regime Score v3 (Dynamic Adaptive)Quant-Grade Market Regime Classification Engine
1. Executive Summary
Market "Regime" is the most critical yet often misunderstood variable in trading. Applying a trending strategy to a mean-reverting market is a mathematical death sentence. The Tactical Regime Score v3 (Dynamic Adaptive) is an institutional-grade tool that utilizes the Augmented Dickey-Fuller (ADF) Test logic to classify price action into two distinct physical states: Mean Reversion (Stationary) and Trending/Random Walk (Non-Stationary).
2. The Engine: How it Works
Unlike retail indicators that rely on lagged moving averages, this engine uses Ordinary Least Squares (OLS) Regression to calculate a normalized ADF-style statistic in real-time.
Stationarity Detection: It measures the "slope" of price changes relative to their lagged values. A negative slope indicates that price has a "restoring force" pulling it back to a mean (Stationarity).
Dynamic Adaptive Thresholding: Static thresholds are a "Retail Trap." Markets evolve; a stationary state in a low-volatility period looks different than one in a high-volatility period. This script uses Linear Interpolation Percentiles over a 500-bar lookback to determine a relative threshold for "restoring force," making it self-adjusting to current market conditions.
3. Key Features
Regime-Colorized Columns:
Green (Mean Reversion): The price is mathematically stationary. Statistical arbitrage and mean-reversion strategies (Oscillators, Mean Reversion Levels) are favored.
Red (Trending/Random): Price is non-stationary. Directional momentum or "Random Walk" dominates. Trend-following logic or breakout strategies are favored.
HV-Percentile Scoring: The height of the columns represents the Historical Volatility (HV) Percentile. A high score in a Red regime indicates a high-conviction trend; a high score in a Green regime indicates an overextended mean-reversion move.
Real-time Dashboard: Displays the raw ADF value, the current dynamic threshold, and the finalized Tactical Score for immediate situational awareness.
4. Tactical SOP (How to use)
Regime Filter: Check the column color before entering a trade.
If Green, do not chase breakouts; look for "Rubber Band" snaps back to the POC.
If Red, do not attempt to "pick tops" or "pick bottoms"; follow the momentum.
Confidence Check: * Score > 75 (High Confidence): Strong physical regime. Expect the current behavior (Trending or Reverting) to persist.
Score < 25 (Low Confidence): "Dead Zone." Market is indecisive. Market makers are usually range-bound.
ADF Scaled Line (White): Watch the interaction between the White Line and the Blue Threshold line. A cross below the threshold is the "Physical Event" that triggers the Green (Mean Reversion) state.
5. Technical Parameters
ADF Lookback: Controls the sensitivity of stationarity detection.
Adaptive Percentile (%): Determines how "strict" the system is before declaring a mean-reversion state. Higher values (35-40%) make the script more likely to turn green.
HV Window: Sets the lookback for the Historical Volatility ranking.
Publishing Instructions for TradingView:
Category: Select Volatility and Indicators.
Tags: Regime, ADF, Mean Reversion, Quantitative, Market Structure.
Description: Copy and paste the text above.
Note: Ensure your chart displays the indicator clearly with the dashboard visible in the screenshot.
This script is designed for traders who prioritize objective data over subjective intuition. Reality is cold; trade the numbers. Indicador

MAD Z Robust Burst [forexobroker]MAD Z Robust Burst computes a Median Absolute Deviation z-score: MAD-Z = (close - median) / (1.4826 * MAD), where MAD = median(|x - median|). The 1.4826 factor makes MAD a consistent estimator of stdev under normality. Robust to outliers — a single price spike does not inflate the divisor like ordinary stdev does. Visual signature: outlined-only square markers (no fill), MAD bands.
🔶 ALGORITHM
1. window = last N closes.
2. med = median(window).
3. abs_dev = |close - med|.
4. MAD = median(abs_dev).
5. MAD-Z = (close - med) / (1.4826 * MAD).
6. Burst regime when |MAD-Z| > threshold.
7. Return-from-burst entry: signal fires when MAD-Z comes back below the return threshold from a burst.
🔶 SIGNAL LOGIC
- Buy: prior burst-down AND MAD-Z >= -return-threshold AND not already long AND cooldown elapsed AND barstate.isconfirmed.
- Sell: prior burst-up AND MAD-Z <= +return-threshold.
- Position-lock state machine.
🔶 INPUTS
- MAD Window (default 40)
- Burst Z entry start (default 2.0)
- Return Z entry fire (default 1.0)
- Cooldown Bars (default 4)
- Visual: dashboard, glow, MAD bands, outlined markers, buy / sell colors
🔶 ALERTS
MZB Buy, MZB Sell, MZB Any Signal, MZB Burst Up, MZB Burst Down, MZB Extreme, MZB Return Up, MZB Return Down, MZB Webhook JSON.
🔶 LIMITATIONS
- MAD is robust but slower-reacting than stdev; bursts may persist a bit longer before being detected.
- The 1.4826 normalisation assumes Gaussian-like distributions; for heavy-tailed assets the conversion is approximate.
- Outlined squares (no glow stack) is a deliberate visual choice — the indicator looks unique but has slightly lower visibility than filled markers.
- Return-from-burst entry is mean-reversion oriented; not for breakout players.
Indicador

VIX Dispersion Overlay ThrasherVIX Dispersion Signal
Identifies conditions that historically precede large volatility spikes, based on the methodology published by Andrew Thrasher CMT in Forecasting a Volatility Tsunami (Journal of Technical Analysis, Q4 2017).
Core concept
Rather than treating a low VIX as a sell signal, Thrasher found that the strongest warning comes from measuring the dispersion of the VIX itself — its 20-day standard deviation. When the VIX stops moving and trades in an unusually narrow range, volatility is coiling. The same logic applied to the VVIX (the volatility of the VIX) improves timing further. When both compress simultaneously, the historical record shows a clear edge: nearly every combined signal was followed by a 30%+ VIX spike within 15 trading days, with an average maximum move of +27.5%.
Signal states
🟢 Risk On — both readings above threshold, normal conditions
🟡 Caution — VIX dispersion compressed (≤ 0.86), tighten stops
🟡 Warning — VVIX dispersion compressed (≤ 3.16), reduce exposure
🔴 Tsunami Alert — both thresholds breached simultaneously, raise cash
🔴 Compound Danger — Tsunami Alert firing while VIX is also sub-15, highest historical risk
What's plotted
The overlay script colours your price chart background and marks signal bars with directional triangles. The companion pane script plots the two StdDev lines against their threshold levels, with a scaled VIX level in the background for low-VIX context. A live status table shows current readings for VIX SD, VVIX SD, VIX level, VVIX level, VIX term structure spread (VIX3M − VIX), and days since last signal.
Inputs
All thresholds are adjustable. Thrasher's original values (VIX SD ≤ 0.86, VVIX SD ≤ 3.16) represent the 15th percentile of each series from 2006–2016. A de-clustering filter suppresses repeat signals within a configurable lookback window.
Usage
Add both scripts to any SPX, SPY, or equity index chart on the daily timeframe. Data is sourced directly from CBOE:VIX, CBOE:VVIX, and CBOE:VIX3M via request.security regardless of chart symbol. Five alert conditions are included: combined signal, compound danger, VIX-only, VVIX-only, and the most extreme case — combined signal with simultaneous VIX term structure backwardation.
Reference
Thrasher, A. (2017). Forecasting a Volatility Tsunami. Journal of Technical Analysis, Q4 2017. Thresholds and signal definitions are implemented as described in the original paper and have not been curve-fitted to subsequent data. Indicador
