OPEN-SOURCE SCRIPT
Actualizado

Multi-Benchmark Mean-Reversion Map + Triangulation

273
Multi-Benchmark Mean-Reversion Map + Triangulation (MR+T)

The Multi-Benchmark Mean-Reversion Map + Triangulation (MR+T) is an advanced cross-sectional analysis dashboard designed to track statistical exhaustion, macro-driven capital flows, and relative value.

Instead of evaluating an asset in a vacuum, this indicator normalizes asset performance across a matrix of multiple foundational global benchmarks: Debased Fiat (USD), Broad Equities (SPY), Hard Money (Gold), and Energy/Commodities (Brent Crude). By triangulating these distinct macro lenses simultaneously, the script helps traders strip out market noise and separate idiosyncratic asset strength from broad macro shifts.

The Core Innovation: Flexible Universes (Sectors, Stocks, or Both)
A key feature of the script provided in this indicator is its Dual-Persistent Universe Engine. Through a single master switch in the settings, you can completely re-contextualize the dashboard without losing your inputs:

• Sectors Mode (Macro Cross-Sectional): Tracks a curated, highly representative macro basket of sector ETFs (Technology, Energy, Biotech, Financials, Utilities, etc.) alongside Bitcoin. This mode maps institutional sector rotation as capital flows across the economy.

• Stocks Mode (Custom Portfolio Basket): Instantly shifts the entire cross-sectional engine to read your own hand-picked portfolio names. Input your 12 favorite stock tickers once, and the script dynamically calculates statistical extensions, oversold conditions, and relative rotation rankings across your custom universe.

• Per-Row Mode (The Hybrid Mix): Gives you the freedom to blend asset classes (e.g., tracking a specific stock right next to a broader macro sector ETF). When a mixed universe is detected, the cross-sectional synthesis layers gracefully stand down to avoid mathematical mismatching, while individual row metrics—such as specific Z-scores, multi-benchmark conviction, and exhaustion signals—remain completely active.

Mapping Dashboard Insights Directly to Your Main Chart
To get the maximum analytical utility out of this system, you can perfectly synchronize the dashboard rows with the exact asset you are actively trading. By opening the indicator settings and navigating to the 8. Universe section, you can customize any of the 12 available slots to match your specific portfolio holdings or targeted sector ETFs.

When you pull up a specific stock or sector on your main TradingView chart, ensuring that same ticker is active in the script creates a seamless, dual-frame analysis window. While your main window tracks absolute price action and traditional candle patterns, the indicator pane below isolates that very same asset's relative value—mapping its real-time mean reversion, exhaustion levels, and multi-benchmark conviction matrix right beneath its price chart.

Key Use Cases & Analytical Benefits

1. Multi-Benchmark Triangulation (Filtering False Breakouts)
Evaluating a stock against only the S&P 500 can create blind spots. If the S&P 500 is plunging due to a macro liquidity squeeze, a stock might look exceptionally strong relatively, even if it is losing absolute purchasing power. By viewing each asset through four distinct macroeconomic lenses simultaneously, you get a "true" read on strength. High-conviction setups occur when an asset registers concurrent extreme readings across the core voting benchmarks.

2. Identifying Statistical Exhaustion Zones
The indicator converts price ratios into smoothed, volatility-adjusted Z-scores based on a customizable rolling lookback window:

• Overextended & Undervalued z-score zones: Flagged when an asset stretches beyond standard statistical thresholds (+1.5 and -1.5 standard deviations).

• Danger and Opportunity Bands: Highlight deep macro overextension and undervaluation zones (drawn from +2.0 to +3.5 and -2 to -3.5 standard deviations) to indicate severe historical premium or discount.

• Extreme standard deviations cross: Triggered when an asset reverses (crosses) the -2.0 and + 2 standard deviations level.

3. Systematic Capital Rotation Tracking

When an asset triggers an extreme crossover signal on your primary benchmark, the script prints immediate visual alerts (▲/▼) in the monitoring panel. If one asset is systematically reverting downward out of overextension while another is turning up from undervaluation, the dashboard synthesizes this real-time dynamic into an active, conviction-backed Rotation Verdict.

Clean HUD Design: The "Fintech Grey-Field"

To solve the "spaghetti chart" dilemma common to multi-line indicators, MR+T introduces a Grey-Field Mode:

• Neutral State: When assets are trading within their normal statistical bands, their plot lines rest in a muted, unobtrusive neutral grey.

• Exhaustion State: As an asset begins to detach from its mean and enter an overextended or undervalued zone, its line dynamically blends into its vibrant, signature sector color.

• Actionable Visuals: This allows you to keep the indicator loaded as a clean bottom pane that only commands your visual attention when an asset hits a critical, actionable extreme. You can also lock up to two custom Focus Lines to remain fully illuminated at all times.

How It Works (Under the Hood)

• Ratio Generation: The script fetches daily close data for your selected universe and divides it by the active macro benchmark. A custom USD Penalty input allows you to apply a fixed percentage haircut to model structural currency debasement and purchasing power loss.

• Dual Smoothing Process: The raw price ratio is smoothed via an EMA to eliminate hyper-short-term noise, passed into a rolling Simple Moving Average (SMA) and Standard Deviation calculation to generate a clean, normalized Z-score, and then smoothed a final time for fluid line trajectories.

• The Triangulation Matrix: While the visual line plots track your selected Primary Benchmark, the on-screen table keeps a constant, real-time eye on all core macro frames, tallying a dynamic Conviction Score based on concurrent multi-benchmark agreement.

Disclaimer & TradingView Compliance
This indicator is designed purely for quantitative research, data synthesis, and educational purposes. It displays statistical deviations and relative values based on historical data. It does not provide financial advice, trading signals, or guarantees of future profitability.
Notas de prensa
Fixed end of line label.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.