OPEN-SOURCE SCRIPT

MACD-V Adaptive FluxPro

71
MACD-V Adaptive FluxPro


Type: Multi-Factor Volatility-Normalized Momentum & Regime Framework
Overlay: ✅ Yes (on price chart)
Purpose: Detect high-probability trend continuation or reversal zones through volatility-adjusted momentum, VWAP structure, and adaptive filters.

🧩 Concept Overview

MACD-V Adaptive FluxPro is a next-generation, multi-factor analytical framework that merges the principles of Linda Raschke’s 3-10-16 MACD with modern volatility normalization and adaptive filtering.
Instead of generating raw buy/sell signals, it builds a probability-driven environment model — showing when price action, volatility, and structure align for high-confidence trades.

The “V” in MACD-V stands for Volatility Normalization: every MACD component is divided by ATR to stabilize amplitude across fast or slow markets.
This enables the indicator to remain consistent across timeframes, instruments, and volatility regimes.

⚙️ Core Components
1️⃣ Volatility-Normalized MACD (MACD-V)

A traditional MACD built on Linda Raschke’s 3-10-16 structure, but adjusted by ATR to create a volatility-invariant momentum profile.
You can toggle to alternative presets (Scalp / Swing / Trend) for faster or slower environments.

2️⃣ Dynamic Regime Detection

A slope-based classifier that identifies whether the market is:

Trend Up 🟢

Trend Down 🔴

Compression / Squeeze 🟧

Transition / Neutral ⚫

The background color updates dynamically as momentum, volatility, and slope shift between these states.

3️⃣ VWAP Structure Bands

Adaptive VWAP with inner and outer ATR-scaled envelopes.
These act as short-term mean-reversion and breakout zones.
The indicator can optionally gate entries to occur only within defined VWAP proximity.

4️⃣ EMAs for Micro-Trend Confirmation

Includes 9-EMA and 21-EMA, color-configurable for visual crossovers and short-term momentum bias.

5️⃣ Multi-Timeframe Confirmation Tiles

Top-center dashboard tiles display directional bias from higher timeframes (e.g., 15m / 1h / 4h).
When all align, it confirms multi-frame trend coherence.

6️⃣ Adaptive Probability Engine

All subsystems — MACD-V, slope, compression, volume z-score, and VWAP distance — feed into a logistic scoring model that outputs a real-time AOI Probability (0-100%).
When conditions align, probabilities rise above 60% (long bias) or drop below 40% (short bias).
These are your high-probability “Areas of Interest.”

7️⃣ Dashboard HUD

The top-right status console provides a one-glance view of system state:

Field Meaning
AOI Prob Long Real-time probability of bullish bias
Regime Market state (Trend, Transition, Compression)
Risk Gate ATR-based volatility filter
News Mute Manual toggle for event-risk suppression
ATR (≈ risk) Real-time volatility readout
Status ✅ Trading OK / 🧱 Risk Gate / 🔇 News Mute / 🟧 Compression
🎯 Interpretation Guide
Visual Meaning
🟢 Green background Confirmed uptrend regime
🔴 Red background Confirmed downtrend regime
🟧 Orange background Volatility compression (squeeze forming)
⚫ Gray background Transitional / indecisive structure
Teal % (AOI Prob Long) Bullish probability > 60%
Arrows Optional: appear only when all gates align (rare, filtered signals)
🧮 Mathematical Notes

MACD-V = (EMA_fast(src) − EMA_slow(src)) / ATR(n)

Normalized score is smoothed, scaled 0–100 via logistic curve

Slope = Δ(EMA(src, n)) / ATR(n)

Probabilities gated by:

Minimum slope magnitude (minAbsSlope)

VWAP proximity (maxVWAPDistATR)

Multi-TF agreement

Cooldown interval (cooldownBars)

ATR-based risk gate

No repainting — all calculations use barstate.isconfirmed.

⚡ Use Cases

✅ Identify trend regime changes before major expansions
✅ Filter breakout vs. compression setups
✅ Quantify volatility conditions before entries
✅ Confirm multi-timeframe alignment
✅ Serve as a visual regime map for automated systems or discretionary traders

🧠 Recommended Presets
Market Type Setting Preset Behavior
Index Futures (ES/NQ) LBR 3-10-16 SMA (default) Classic swing/momentum balance
Scalping (1m–5m) Fast Adaptive Higher frequency, shorter cooldown
Swing Trading (1h–4h) Smooth ATR Broader, trend-only signals
Trend-Following Futures Wide ATR Bands Filters noise, favors strong continuation
⚠️ Notes

Non-repainting, bar-confirmed calculations

Signal arrows are optional and rare — intended for precision setups

ATR and slope thresholds should be tuned per instrument

Compatible with all TradingView markets and resolutions

🏁 Summary

“MACD-V Adaptive FluxPro” is not a simple MACD — it’s a volatility-normalized market state engine that adapts to changing conditions.
It fuses Linda Raschke’s timeless MACD logic with modern volatility, slope, and multi-timeframe analytics — giving you a live market dashboard that tells you when not to trade just as clearly as when you should.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.