Monthly & Weekly Macro KeysMonthly & Weekly Macro Keys plots completed monthly and weekly High, Low, Open, and Close levels with composite IPDA-style premium/discount context.
Monthly macros default to the last three completed months. Each level is labeled by calendar month (for example, June 2026 Monthly High). Weekly macro key levels default to the prior completed week High and Low, with optional Open and Close. Lines begin on the day the print occurred and extend to a configurable right-side buffer next to the labels.
A composite range is built from the selected months or weeks. The indicator can draw the IPDA gradient through that range: 12.5%, 25%, 37.5%, equilibrium (50%), 62.5%, 75%, and 87.5%. High and Low of the composite are not duplicated on the gradient because they are already shown as the monthly or weekly macros.
An on-chart table reports Premium or Discount relative to equilibrium, percent location within the range, whether price is inside the 25–75% zone, and the key price levels for both the monthly and weekly composites.
Style controls include color, width, and line style (Solid, Dotted, Dashed) for monthly and weekly High, Low, and Open/Close, as well as for gradient quadrant and octant levels. Table position supports all nine chart anchors. Lookback counts are adjustable (up to six months and eight weeks). インジケーター

Global Macro RegimeThe Global Macro Regime is a top-down macro nowcasting and portfolio allocation tool that provides a consolidated view of the market-implied macro regime. It independently evaluates 30 key global markets across equities, fixed income, commodities, and currencies to determine the prevailing macro regime, which informs the model’s portfolio preferences and regime-specific exposures. It also features built-in alerts and an integrated backtester that enable investors to monitor regime changes and evaluate asset performance across different macro environments.
At its core, the model aggregates 30 independent cross-asset market signals to identify shifts in the market’s growth and inflation outlook. Rather than relying on backward-looking economic data, the model derives these signals in real time from evolving trends across global markets. By focusing on growth and inflation, the model captures two of the primary macroeconomic forces driving asset prices. The four possible combinations of growth and inflation define four distinct macro regimes, each of which tends to favor different portfolio preferences and exposures:
Goldilocks (Growth ↑, Inflation ↓): Improving growth with low/declining inflation.
Reflation (Growth ↑, Inflation ↑): Improving growth with high/rising inflation.
Inflation (Growth ↓, Inflation ↑): Deteriorating growth with high/rising inflation.
Deflation (Growth ↓, Inflation ↓): Deteriorating growth with low/declining inflation.
Goldilocks and Reflation represent Risk-On regimes, while Inflation and Deflation represent Risk-Off regimes. Each of the 30 selected markets is evaluated independently as either a growth or inflation signal. Markets signaling improving growth contribute to both Goldilocks and Reflation, while markets signaling deteriorating growth contribute to both Inflation and Deflation. Markets signaling high/rising inflation contribute to both Reflation and Inflation, while markets signaling low/declining inflation contribute to both Goldilocks and Deflation. The selected markets are grouped into equities (10), fixed income (10), commodities (6), and currencies (4):
Equities = S&P 500 Index (SPX), Russell 2000 Index (RUT), STOXX Europe 600 Index (SXXP), Nikkei 225 Index (NI225), Hang Seng Index (HSI), MSCI Emerging Markets Index Futures (MME), High Beta / Low Volatility Ratio (SPHB/SPLV), Cyclicals / Defensives Ratio (XLY/XLP), S&P 500 Volatility Index (VIX), and 3M Implied Correlation Index (COR3M).
Fixed Income = US 2Y Treasury Yield, US 10Y Treasury Yield, German 10Y Bund Yield, UK 10Y Gilt Yield, Japan 10Y JGB Yield, US 10Y Breakeven Inflation Rate, US CCC Distressed Index Option-Adjusted Spread, US High Yield Index Option-Adjusted Spread, US Investment Grade Corporate Index Option-Adjusted Spread, and US Bond Volatility Index (MOVE).
Commodities = Brent Crude Oil Futures (BRN), Agricultural Commodities (DBA), Industrial Metals (DBB), Copper Futures (HG), Silver / Gold Ratio (SI/GC), and CME Bitcoin Futures.
Currencies = US Dollar Index (DXY), Australian Dollar / US Dollar (AUDUSD), British Pound / US Dollar (GBPUSD), and Euro / US Dollar (EURUSD).
Each market signal is derived independently using either a volatility-adjusted moving-average crossover, a volatility-based adaptive trailing stop, or a combination of both. The signals are then aggregated and normalized into percentage scores representing each regime’s share of total signals, with optional smoothing over the specified signal length to reduce noise. The regime receiving the greatest confirmation across global markets is identified as the dominant macro regime and translated into portfolio preferences displayed in the regime preference table:
Goldilocks Preferences = Risk-On > Risk-Off, High Beta > Low Beta, Cyclicals > Defensives, International < US Equities, SMID Caps < Large Caps, Short Rates > Long Rates, Spreads > Treasuries, High Yield > Low Yield, Beta FX > US Dollar, Metals > Energy, and Bitcoin > Gold.
Reflation Preferences = Risk-On > Risk-Off, High Beta > Low Beta, Cyclicals > Defensives, International > US Equities, SMID Caps > Large Caps, Short Rates > Long Rates, Spreads > Treasuries, High Yield > Low Yield, Beta FX > US Dollar, Metals > Energy, and Bitcoin > Gold.
Inflation Preferences = Risk-On < Risk-Off, High Beta < Low Beta, Cyclicals < Defensives, International < US Equities, SMID Caps < Large Caps, Short Rates > Long Rates, Spreads < Treasuries, High Yield < Low Yield, Beta FX < US Dollar, Metals < Energy, and Bitcoin < Gold.
Deflation Preferences = Risk-On < Risk-Off, High Beta < Low Beta, Cyclicals < Defensives, International < US Equities, SMID Caps < Large Caps, Short Rates < Long Rates, Spreads < Treasuries, High Yield < Low Yield, Beta FX < US Dollar, Metals > Energy, and Bitcoin < Gold.
The model further translates these portfolio preferences into specific exposures across equities, fixed income, commodities, and currencies. The selected exposures have been systematically backtested across the four macro regimes, dating back as far as January 1996, to identify those exhibiting the strongest risk-adjusted performance and most consistent directionally aligned trending behavior within each asset class. The resulting exposure lists provide a more granular view of the model’s broader portfolio preferences based on historically observed relationships:
Goldilocks Exposures = Equity sectors include Communication Services (XLC), Technology (XLK), Financials (XLF), Industrials (XLI), Consumer Discretionary (XLY), Materials (XLB), and Real Estate (VNQ). Equity factors include S&P 500 (SPY), Nasdaq 100 (QQQ), High Beta (SPHB), Momentum (MTUM), Quality (QUAL), Growth (IWF), and Value (IWD). Fixed income includes High Yield Bonds (HYG), Investment Grade Bonds (LQD), and Convertible Bonds (CWB). Commodities include Bitcoin (BTC), Industrial Metals (DBB), Metal Producers (PICK), Gold (GLD), Gold Miners (GDX), Silver (SLV), Silver Miners (SIL), Copper (CPER), Copper Miners (COPX), Uranium (SRUUF), and Uranium Miners (URNM). Currencies include Australian Dollar (FXA), British Pound (FXB), and Euro (FXE).
Reflation Exposures = Equity sectors include Energy (XLE), Communication Services (XLC), Technology (XLK), Financials (XLF), Industrials (XLI), Consumer Discretionary (XLY), Materials (XLB), and Real Estate (VNQ). Equity factors include Global Equities (ACWI), International Equities (ACWX), S&P 500 (SPY), Nasdaq 100 (QQQ), Emerging Markets (EEM), High Beta (SPHB), Mid Caps (IWR), Small Caps (IWM), Momentum (MTUM), Quality (QUAL), Growth (IWF), Value (IWD), Equal Weight (RSP), Global Infrastructure (IGF), and International Real Estate (IFGL). Fixed income includes High Yield Bonds (HYG), Convertible Bonds (CWB), Private Credit (BIZD), and Emerging Market Bonds (EMB). Commodities include Bitcoin (BTC), Commodities (DBC), Industrial Metals (DBB), Metal Producers (PICK), Crude Oil (USO), Agriculture (DBA), Agriculture Producers (VEGI), Gold (GLD), Gold Miners (GDX), Silver (SLV), Silver Miners (SIL), Copper (CPER), Copper Miners (COPX), Uranium (SRUUF), and Uranium Miners (URNM). Currencies include Australian Dollar (FXA), Canadian Dollar (FXC), British Pound (FXB), and Euro (FXE).
Inflation Exposures = Equity sectors include Energy (XLE), Consumer Staples (XLP), Utilities (XLU), and Health Care (XLV). Equity factors include Low Volatility (SPLV). Fixed income includes 1-3 Month Treasury Bills (BIL). Commodities include Commodities (DBC), Crude Oil (USO), Agriculture (DBA), and Gold (GLD). Currencies include US Dollar (UUP).
Deflation Exposures = Equity sectors include Consumer Staples (XLP), Utilities (XLU), and Health Care (XLV). Equity factors include Low Volatility (SPLV) and High Dividend (SPHD). Fixed income includes 1-3 Year Treasuries (SHY), 7-10 Year Treasuries (IEF), 20+ Year Treasuries (TLT), US Aggregate Bonds (AGG), Mortgage-Backed Securities (MBB), and International Aggregate Bonds (BNDX). Commodities include Gold (GLD). Currencies include US Dollar (UUP) and Japanese Yen (FXY).
The model includes a built-in alert system that notifies investors in real time when the dominant macro regime changes and provides the corresponding exposures for the new regime. It also features an integrated backtesting engine that can be enabled in the menu to evaluate asset performance across the macro regimes. Users can assign an asset to each regime, with the backtest automatically rotating into the corresponding asset whenever that regime becomes dominant. If one or more assets are assigned, any unassigned regimes are treated as cash. If no assets are assigned, the chart ticker is assigned to Goldilocks and Reflation, while Inflation and Deflation are treated as cash. The backtest reports the following performance metrics:
CAGR = Compounded Annual Growth Rate.
Excess = CAGR in excess of buy-and-hold.
Sharpe = CAGR per unit of standard deviation.
Sortino = CAGR per unit of downside deviation.
Calmar = CAGR relative to maximum drawdown.
Max DD = Largest peak-to-trough decline in value.
Alpha (α) = Excess annualized risk-adjusted returns.
Win Rate = Ratio of profitable trades to total trades.
Profit Factor = Total gross profit per unit of losses.
Expectancy = Average expected return per trade.
Turnover = Average annualized change in exposure.
The indicator is designed with flexibility in mind, allowing users to select the backtest period, signal methodology, preferred trend type, volatility type, and the individual markets included in the regime calculation. Supported moving-average types include the Exponential Moving Average (EMA), Simple Moving Average (SMA), Wilder’s Moving Average (RMA), and Weighted Moving Average (WMA). Supported volatility types include the Average True Range (ATR), Standard Deviation (SD), and Mean Absolute Deviation (MAD). The table follows an intuitive color-coded logic that allows for quick performance comparison against buy-and-hold (B&H):
CAGR = Green indicates above 0%, while red indicates below 0%.
Excess = Green indicates above 0%, while red indicates below 0%.
Sharpe = Green indicates better than B&H, while red indicates worse.
Sortino = Green indicates better than B&H, while red indicates worse.
Calmar = Green indicates better than B&H, while red indicates worse.
Max DD = Green indicates better than B&H, while red indicates worse.
Alpha (α) = Green indicates above 0%, while red indicates below 0%.
Win Rate = Green indicates above 50%, while red indicates below 50%.
Profit Factor = Green indicates above 2, while red indicates below 1.
Expectancy = Green indicates above 0%, while red indicates below 0%.
In summary, the Global Macro Regime is a comprehensive market-based macro framework designed to identify the prevailing macro regime. By combining 30 independent cross-asset market signals, the model translates the dominant macro regime into portfolio preferences and regime-specific exposures based on historical relationships that may not persist under future market conditions as market dynamics and asset-specific characteristics evolve over time. Historical coverage also varies across the 30 selected markets, with regime signals prior to 2006 based on progressively fewer markets and therefore requiring more cautious interpretation. インジケーター

ICT MacrosThe ICT macro windows as first-class chart objects: each window bracketed by
a vertical line at its start and one at its end, the pair joined by a
captioned rectangle on a strip at the chart's edge. The caption carries the
window's name with a countdown under it -- to the open while the window is
ahead, of what is left once inside. Split out of Time-Based Vertical Lines
the way the NinjaTrader pair is: that tool keeps the plain time lines, this
one owns the windows, and the two share a chart without double-booking an
edge -- the band strip defaults to the bottom and the line captions to the
top.
The slots are the full standard macro map, in New York time. The rule is
:50 to :10 around every top of the hour -- twenty minutes straddling it --
except the final trading hour, which replaces its window with the Final
Hour (15:15 - 15:45) and Market On Close (15:45 - 16:00) specials; the
settlement portion (15:50 - 16:00) rides inside MOC as its own optional
slot. That gives one row per window from the 18:50 Asia macro around the
clock to the close, grouped by the session each falls in. The playbook
trades the six regular-hours windows plus the Final Hour and MOC, so
exactly that set starts enabled; every other session's windows are carried
but off. The 08:30 news release and the opening ranges are separate
events, not macros -- the 08:30 line lives in Time-Based Vertical Lines.
Features:
- 24 macro slots, one row each: on/off, start and end as HH:MM, label
- Empty label captions the band with the window's times; the Final Hour,
MOC and Settlement windows come pre-labeled
- Countdown on its own line under the window's name
- A window may cross midnight (23:50 - 00:10 does); it stays keyed to the
day it starts on
- Bands and captions ride a strip at the bottom (or top) edge, set clear
of the bars by an adjustable gap
- Bracket lines can switch off, leaving only the bands on the strip
- Every window drawn for the whole day, future ones included
- Time zone support and historical-days control
Notes:
- Times are read as HH:MM in the selected zone. An entry that is not a
valid time is skipped, with a note in the Pine Logs pane; an end at or
before the start means the window runs into the next day.
- The strip hangs off the visible bars, not the panel edge: a script only
knows prices, never pixels, so it makes room by having the chart's
auto-scale give up range under (or over) the candles. Pine has no way to
read the viewport's own bounds, so the strip cannot be pinned to the
panel edge the way a platform-native tool could pin it.
- A window later today sits past the last bar. TradingView draws at most
500 bars past the last one, and the chart only reveals as much of that
as the right margin allows (Chart settings > Appearance).
インジケーター

インジケーター

Bitcoin Halving Cycle PhasesBitcoin Halving Cycle Phases is a calendar-based visual indicator that highlights approximate Bitcoin halving cycle phase zones directly on the chart.
The indicator uses historical Bitcoin halving dates and predefined calendar phase boundaries to display different cycle regions, including Halving, Bullish, Bearish, Recovery, and Pre-halving phases. Future zones are projected using an approximate cycle length and are intended only as visual calendar references.
This script does not calculate price targets, buy or sell signals, trading entries, exits, stop losses, take profits, backtest results, or financial advice. The displayed future zones are approximate calendar projections only and should not be interpreted as forecasts or guaranteed market outcomes.
The indicator is designed for educational cycle visualization and long-term market context.
インジケーター

インジケーター

Technical 4x4 MatrixTechnical 4x4 Matrix:
Can Rethinking Common Sense Bring New Insights?
Description:
Does reviewing existing common sense bring new insights? The "Technical 4x4 Matrix" challenges the traditional way we view technical analysis. Instead of stacking endless line charts or reading boring data tables, this indicator reimagines 16 classic technical indicators (RSI, MACD, Bollinger Bands, etc.) by projecting them onto a unified, 4x4 analog meter interface directly on your chart.
By standardizing completely different mathematical models into a single visual language, we can uncover hidden confluences and macro alignments that isolated indicators often miss.
To make this matrix function, the script performs heavy data normalization and correlation calculations behind the scenes. Here is why these calculations are used and what they actually output:
1. Data Normalization Engine (The Analog Meters)
Why it's used: You cannot simply average an RSI (measured 0 to 100) with a MACD (absolute price differences). To create a unified "Average Flow," every indicator must be converted to a uniform scale.
The Calculation: The script uses a custom normalization formula:
Normalized Value = (Current Value - Min Value) / (Max Value - Min Value)
Actual Output Value: Regardless of the indicator's native scale, the output value for every single meter is strictly constrained between 0.0 (Absolute Cold/Oversold) and 1.0 (Absolute Hot/Overbought). For example, a neutral RSI of 50 outputs exactly 0.5.
2. Master HUD Crosshair (Macro Correlation)
Why it's used: To determine if the current micro price action is actually aligned with the macro trend, rather than just reacting to short-term noise.
The Calculation:
First, it creates a ratio: Macro Ratio = SMA(Close, 250) / SMA(Close, 1)
Next, it calculates the correlation between the closing price and this ratio over 20 periods, scaling it for the HUD's Y-Axis:
Y-Axis Ratio = (Correlation + 1.0) / 2.0
Actual Output Value: The raw correlation ranges from -1.0 to 1.0. After scaling, the final Y-Axis output is a coordinate between 0.0 and 1.0. The X-Axis is the simple average of all active 0.0 to 1.0 normalized indicators. If the crosshair intersects at (0.8, 0.8), it outputs a mathematically backed signal of strong macro and micro bullish alignment.
16 togglable indicators rendered as square analog meters with dynamic needle tracking and LED status lights.
Garbage Collection: Efficient array clearing prevents memory leaks and visual ghosting.
Master Crosshair: A central HUD that tracks the aggregated flow of all 16 indicators (X-axis) against macro-trend correlation (Y-axis).
インジケーター

ICT Killzones & Silver BulletEN: Highlights the key ICT time windows on your chart — Killzones and Silver Bullet
sessions — so you instantly see when institutional activity is most likely.
A clean time-window tool for ICT / Smart Money traders. It shades the key intraday
windows directly on the chart, in New York time, regardless of your local timezone:
• Killzones — 7 fully customizable time windows (on/off, start and end by hour and
minute). Defaults follow the high-activity ICT macro windows around session opens.
• Silver Bullet — the three classic one-hour ICT windows where setups are hunted:
London (03:00–04:00 NY), NY AM (10:00–11:00 NY), NY PM (14:00–15:00 NY).
Every window is editable, has its own toggle, color, border style and optional label.
The indicator only draws a window while price is inside it, keeping the chart clean.
raders waste focus tracking the clock — when is London, when is the Silver Bullet,
is price inside a high-probability window. This tool marks every key window
automatically in NY time, so you never miss a session and never miscount the hours.
WHAT IT SHOWS
Shaded boxes appear only while price is inside a time window. Killzones use one color,
Silver Bullet windows another, each with an optional label.
KILLZONES (group "Killzones")
- "Show Killzones" — turn the whole module on/off.
- Color, border style (Solid/Dotted/Dashed/No border), border transparency, labels.
- 7 zones (KZ1–KZ7): each row = , NY time.
- Defaults follow ICT macro windows. Edit any zone to your own times.
SILVER BULLET (group "Silver Bullet")
- "Show Silver Bullet" — on/off, plus color, border transparency, labels.
- 3 classic one-hour windows (editable by hour, NY time):
London SB: 03:00–04:00
NY AM SB: 10:00–11:00
NY PM SB: 14:00–15:00
HOW TO USE
1. All times are New York — no manual timezone conversion needed.
2. Best on M15 and lower, where the windows are clearly visible.
3. Look for entries / liquidity grabs INSIDE these windows — that is when
institutional activity is most likely.
4. Disable the windows you don't trade to keep the chart clean.
WANT CLASSIC KILLZONES INSTEAD OF MACROS?
Set wider windows, e.g. London 02:00–05:00, NY AM 07:00–10:00, NY PM 13:30–16:00.
NOTE: This is an analytical timing tool, not financial advice. Always confirm with
price action and risk management. インジケーター

Endogenous Macro Heatmap [invincible3] Endogenous Macro Heatmap
The Endogenous Macro Heatmap is a multi-factor macroeconomic dashboard designed to show the internal economic condition of a selected country in a compact table format directly on the chart.
Unlike cross-country or exogenous comparison models, this indicator focuses on domestic macro conditions : growth, production, demand, liquidity, rates, inflation, employment, fiscal position, debt pressure, and central bank balance sheet behavior.
The goal is to help traders, investors, and macro analysts quickly assess whether a country’s internal economic backdrop is improving, neutral, weakening, or entering a stress phase.
The indicator uses a heatmap structure so that changes in the macro environment can be understood visually. Stronger readings are shown through the positive color gradient, weaker readings through the negative color gradient, and balanced or transition zones through the neutral color.
What This Indicator Measures
The heatmap tracks a broad set of endogenous macro variables, including:
GDP year-over-year growth
Manufacturing production / manufacturing index
New orders or capacity utilization
Building permits, construction output, construction orders, or housing starts depending on the selected country
Retail sales year-over-year
Money supply
10-year government bond yield
Interest rate
Inflation year-over-year
Employment-related data
Debt-to-GDP
Government budget
Central bank balance sheet
Because macro data availability differs across countries, the script automatically substitutes certain fields where required. For example, some countries may use construction output, construction orders, housing starts, or capacity utilization depending on what is available in the TradingView economic database.
Supported Countries
The dashboard currently supports:
United States
United Kingdom
Euro Area
Germany
France
Italy
Canada
Japan
China
Australia
South Korea
New Zealand
Each country uses its corresponding TradingView economic code where available.
Composite Macro Score
The final Score column converts multiple macro readings into a single composite score from 0 to 100.
The score is grouped into four macro blocks:
1. Growth Block
Includes GDP, manufacturing, new orders, construction/building activity, retail sales, and employment.
This block has the largest weight because real economic momentum is the primary driver of macro regime strength.
2. Liquidity Block
Includes money supply and central bank balance sheet data.
This block helps identify whether domestic liquidity conditions are expanding or contracting.
3. Tightness Block
Includes 10-year yield and interest rate conditions.
This block helps measure whether financial conditions are becoming easier or tighter.
4. Stability Block
Includes inflation, debt/GDP, and government budget data.
This block helps detect macro pressure from inflation, fiscal stress, or excessive debt burden.
The composite score is weighted as follows:
Growth: 45%
Liquidity: 20%
Tightness: 20%
Stability: 15%
Score Interpretation
The score is displayed as a clean numeric value without extra symbols, making the table easier to read.
General interpretation:
70–100: Strong macro condition
55–69: Positive / improving condition
45–54: Neutral / transition condition
30–44: Weak condition
Below 30: Stress condition
The score should not be interpreted as a direct buy or sell signal. It is a macro regime filter designed to provide context.
Heatmap Color Logic
The table uses a simple and consistent three-color structure:
Positive color: stronger or favorable macro readings
Neutral color: balanced or mid-range readings
Negative color: weaker or unfavorable macro readings
The color system is intentionally matched with the Exogenous Heatmap style, allowing both dashboards to be used together with a consistent visual language.
Each macro field also includes an **Up Good** setting. This allows the user to define whether higher values are favorable or unfavorable for each metric.
For example:
Higher GDP growth is generally positive.
Higher manufacturing activity is generally positive.
Higher liquidity can be positive.
Higher inflation, debt, or rates may be interpreted differently depending on the user’s macro framework.
This flexibility allows the heatmap to be adapted for different economic regimes and analytical preferences.
Auto and Manual Scaling
The indicator includes an automatic macro gradient scale.
When auto scaling is enabled, the heatmap normalizes each metric based on the visible historical table range. This makes the table visually adaptive and easier to compare across different periods.
Manual scaling is also available for users who prefer fixed macro ranges.
This is useful when comparing the same country across different time periods or when the user wants a stable visual reference.
Timeframe and History Controls
Users can select the table period:
Yearly
Quarterly
Monthly
Weekly
Daily
The data can be fetched by:
A fixed number of periods
A selected start date
This gives flexibility for short-term macro monitoring as well as longer-term economic cycle analysis.
Table Customization
The dashboard includes several table display settings:
Show or hide table
Select table position
Select table size
Customize positive, neutral, and negative colors
The table automatically adapts to the chart background and foreground colors for better readability on both dark and light chart themes.
How to Use
This indicator is best used as a macro context tool.
A practical workflow:
1. Select the country you want to analyze.
2. Choose the table period, such as monthly or quarterly.
3. Review the color trend across the macro fields.
4. Watch whether growth, liquidity, tightness, and stability are improving or deteriorating together.
5. Use the composite score as a broad internal macro regime filter.
6. Combine the macro backdrop with price action, trend, liquidity, sector rotation, and risk management.
For example:
A rising score with improving growth and liquidity may support a risk-on environment.
A falling score with weakening growth and tightening conditions may warn of macro deterioration.
A neutral score may indicate a transition period where markets can become more sensitive to new economic data.
Suggested Use Cases
This heatmap can be useful for:
Macro regime analysis
Country-level economic monitoring
Risk-on / risk-off context
Equity index analysis
Bond market context
Currency market macro background
Sector rotation research
Long-term investment cycle analysis
Comparing domestic conditions with external macro pressure when used together with an exogenous heatmap
Important Notes
Economic data can be revised, delayed, or unavailable depending on the country and TradingView’s data coverage.
Some fields may not exist for every country, so the script uses alternative fields where possible.
The heatmap is designed for macro analysis and educational research. It does not predict price direction by itself and should not be used as a standalone trading system.
Always combine macro signals with technical analysis, market structure, liquidity conditions, and proper risk management.
Disclaimer
This script is for educational and analytical purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any asset.
Markets are influenced by many factors beyond macroeconomic data, including positioning, liquidity, earnings, policy changes, geopolitical events, and sentiment. Use this tool as one layer of a broader decision-making process.
インジケーター

BEDROCK Gated Macro Spot Cycle ModelBEDROCK condenses several independent long-term Bitcoin valuation models into a single transparent 0–100 score, then maps that score onto a seven-tier ladder running from deep value to cycle-top risk — with capitulation and euphoria gates that hold back the two most common false signals at each extreme. It is built for spot investors making multi-month and multi-year allocation decisions, not for short-term trading.
The reference card below shows how to read the model and how each tier behaves:
█ WHAT IT DOES
BEDROCK answers one question: where does price sit inside its macro cycle right now? Rather than a single oscillator, it scores a basket of slow-moving valuation measures, normalizes each to a common 0–100 "cheap → expensive" scale, blends them into a weighted composite, and classifies the result into an actionable tier with a suggested accumulation or distribution size. A higher composite means greater long-term value and lower risk; a lower composite means the market is stretched and risk is rising.
█ HOW IT WORKS
The composite is built from four independent blocs, any of which can be reweighted or disabled:
Trailing cost-basis bloc — price relative to the 200-week SMA, the 2-year SMA, and the 200-day SMA (Mayer Multiple). These three are deliberately collapsed into a single averaged, bounded factor so the moving-average family is represented once and cannot dominate the score through collinearity.
Drawdown from all-time high — how far price has fallen from its peak. The heaviest-weighted leg by default.
Weekly RSI — long-term momentum, as secondary confirmation.
MVRV Z-Score (optional) — an on-chain valuation leg you can enable and feed from an external source.
Each metric is mapped to 0–100 through its own linear calibration between a deep-value anchor and an expensive anchor, so every leg speaks the same language before being combined. Weights are auto-renormalized over whatever blocs are actually available — so the model stays coherent on early history where the 200-week isn't yet populated, or when MVRV is turned off. It simply reweights the parts it has.
█ THE TWO GATES — THE CORE IDEA
A raw valuation score has two classic failure modes: it screams "generational buy" on the first leg down of a bear market, and it screams "top" every time price gets mildly extended. BEDROCK addresses both with directional gates that only ever cap the tier toward the middle — they never fabricate a signal, and they never block the core accumulate or trim reads.
Capitulation gate (bottom) — the two deepest tiers stay locked until the market shows genuine capitulation. Generational requires a large drawdown from the all-time high (or a deeply negative MVRV-Z); Deep Accumulation requires price at or below its 200-week basis. Until then the score is capped at Accumulation, so you keep buying value without prematurely committing everything.
Euphoria gate (top) — the two riskiest tiers stay locked until multiple independent overheating signs agree across the 200-week multiple, weekly RSI, the Mayer Multiple, and MVRV-Z. Euphoria requires at least one confirmation; Cycle Top requires at least two. This is what stops the model from calling a top on every rally.
Because both gates only cap toward neutral, accumulation signals are never suppressed and trim signals are never suppressed. The gates restrain only the extreme calls, and only until the evidence is actually there.
█ READING THE INDICATOR
Composite line — the 0–100 score, colored by its current tier.
Background — shaded by tier for at-a-glance cycle context.
Threshold lines — the tier boundaries.
Markers — gated triangles mark transitions into accumulation tiers (up) and distribution tiers (down).
Data table — live composite, current tier, suggested action, both gate states, and every underlying metric (200W and 2Y multiples, Mayer, drawdown, weekly RSI, MVRV).
█ THE SEVEN TIERS
Generational Value — extremely rare deep value; aggressive accumulation.
Deep Accumulation — excellent value; size up.
Accumulation — good value; keep building.
Neutral / Hold — fairly valued; hold.
Expensive / Trim — above fair value; begin scaling out.
Euphoria / Distribute — high risk; distribute and protect profit.
Cycle Top / Exit — extreme; high-probability macro top.
Each tier also outputs a suggested DCA-in or trim-out multiplier, so the signal is sized rather than binary.
█ HOW TO USE IT
Use it on Bitcoin spot or index charts such as BITSTAMP:BTCUSD or $BINANCE:BTCUSDT.
Weekly is the primary timeframe; daily works as a secondary view.
Accumulate through tiers 1–3, hold in tier 4, scale down in tiers 5–6, and treat tier 7 as exit territory.
Built-in alerts fire on entry into each accumulation and distribution tier (gated).
█ WHAT MAKES IT ORIGINAL
BEDROCK is not a single valuation ratio dressed up as an oscillator. The combination is the point: a transparent additive composite over independent metrics, a deliberate collinearity fix that collapses the moving-average family into one bounded bloc, a dual directional-gate system that suppresses the two most common false signals at both extremes without ever blocking the core reads, and sized accumulate/trim output instead of a bare number. Every metric, weight, calibration anchor, and gate threshold is exposed as an input, so the entire model is auditable and tunable — nothing is hidden.
█ NOTES & LIMITATIONS
BEDROCK is a long-horizon valuation tool, not a precise top/bottom timer and not a short-term trading system. It is designed to keep you positioned in the statistically favorable portion of the cycle, not to nail exact turns. Several display themes are included. This script is for educational purposes only and is not financial advice — size your own risk and do your own research. インジケーター

Pakistan Macro Dashboard [invincible3] Pakistan Macro Dashboard
Pakistan Macro Dashboard is a macroeconomic cycle oscillator and dashboard designed to analyze Pakistan’s equity-market environment using policy-rate, inflation, currency, liquidity, external-balance, commodity, and KSE100 trend conditions.
The core oscillator focuses on Pakistan’s monetary cycle. It uses the Pakistan policy rate, its cumulative historical mean, inflation trend, inflation level, and real-rate balance to create a macro score from 0 to 100. Higher values suggest improving liquidity and a more supportive equity backdrop, while lower values suggest restrictive conditions and elevated macro pressure.
A key feature of this indicator is the policy-rate cycle background. The background color is based on the relationship between the current Pakistan policy rate and its cumulative mean:
Red background: policy rate is above its mean and rising, indicating restrictive tightening.
Orange background: policy rate is above its mean but falling, indicating early easing or potential recovery.
Green background: policy rate is below its mean and falling, indicating liquidity expansion.
Yellow background: policy rate is below its mean but rising, indicating early tightening or late-cycle caution.
The oscillator pane also includes optional curves for the macro oscillator, policy rate, cumulative mean policy rate, and inflation rate. Users can independently enable or disable each curve, each label, the background cycle color, and the horizontal risk levels.
The dashboard is displayed on the main chart and provides a structured macro view of Pakistan’s market conditions. It includes policy and inflation readings, real rates, GDP growth, unemployment, USD/PKR, FX reserves, current account, trade balance, remittances, external debt, Brent oil, DXY, emerging-market risk, gold, KSE100 trend, RSI, and sector tilt readings.
The table is divided into two parallel panels:
Left panel: policy cycle, core macro, growth, liquidity, FX view, inflation action, sector tilt, and final PSX bias.
Right panel: external pressure, global commodity pressure, KSE100 trend, and sector read.
The scoring system uses a simple green/yellow/orange/red color structure:
Green: supportive or improving conditions.
Yellow: neutral, mixed, or transition phase.
Orange: caution or pressure building.
Red: high macro risk or unfavorable condition.
This tool is designed for top-down macro analysis of the Pakistan equity market. It can help traders and investors understand whether the broader environment is supportive, neutral, or defensive before evaluating individual stocks or sectors.
Important: This indicator is for educational and analytical use only. It is not financial advice and should not be used as a standalone buy or sell signal. Users should combine it with price action, market structure, risk management, and their own independent analysis.
インジケーター

All-Time High/Low Fibonacci Retracement (with Flip)Tired of manually dragging the Fibonacci tool across macro charts every time an asset makes a new high or low? This indicator automates the entire process. It scans the absolute historical data of any asset to identify its true All-Time High (ATH) and All-Time Low (ATL), then dynamically projects standard Fibonacci retracement levels between them.
Whether you are analyzing a stock's decades-long macro cycle or looking for major historical support and resistance levels, this script keeps your charts perfectly anchored without the manual clutter.
Key Features
100% Automated Tracking: Uses historical state variables (var) to lock onto the ultimate lowest and highest prices ever printed on your current chart.
Real-Time Dynamic Updates: If the asset breaks out into price discovery (new ATH) or capitulates to a new bottom (new ATL), the script recalculates and shifts all Fibonacci lines instantly.
One-Click Flip Toggle: Built-in calculation flip. Measure retracements from the top down (bearish retracement) or flip it from the bottom up (bullish expansion) right from the settings menu.
Clean Visuals: Hard-coded with classic Fibonacci ratios (23.6%, 38.2%, 50.0%, 61.8%, 78.6%) using a subtle, non-intrusive color gradient that won't crowd your daily price action.
How to Use the Settings
Flip Retracement (Checkbox): * Unchecked (Default): Places 0% at the All-Time High and 100% at the All-Time Low (Ideal for finding support levels during a pullback from macro highs).
Checked: Places 0% at the All-Time Low and 100% at the All-Time High (Ideal for tracking major resistance levels and targets on the way back up).
💡 Pro-Tip: Because TradingView loads a limited number of historical bars on lower timeframes (like 5-minute or 15-minute charts), always load this indicator on a Daily (D), Weekly (W), or Monthly (M) chart first. This ensures the script catches the true historical inception highs and lows of the asset! インジケーター

Exogenous Heatmap [invincible3]Exogenous Heatmap
The Exogenous Heatmap is a multi-country macro and market-performance dashboard designed to help traders and investors monitor external economic forces that may influence currencies, equities, commodities, and broader risk sentiment.
Instead of focusing only on price action from the current chart, this indicator visualizes key exogenous variables across major economies in a clean historical heatmap format. Users can compare countries by interest rates, GDP growth, balance of trade, foreign exchange reserves, and major stock index performance.
The indicator supports two calculation modes:
1. Raw Value
Displays the actual macroeconomic value or stock index performance for each country.
2. Differential vs Base
Compares each country against a selected base country. This is useful for identifying relative macro strength or weakness. For example, if the base country is set to the USA, the indicator shows how Australia, Japan, the UK, Europe, China, and other countries compare against the United States.
The heatmap includes the following datasets:
Interest Rates and Differentials
Displays policy interest rates or interest-rate differentials between countries. This is especially useful for forex analysis because higher relative interest rates can influence capital flows and currency strength.
GDP and Differentials
Displays GDP year-over-year growth or GDP growth differentials. This helps identify which economies are expanding faster or slower relative to the selected base country.
Balance of Trade and Differentials
Displays trade balance data. A stronger trade surplus may indicate external demand strength, while a deficit may reflect import pressure or weaker export competitiveness.
Reserves and Differentials
Displays foreign exchange reserve levels. This can help assess external liquidity strength and a country’s ability to manage currency or balance-of-payment stress.
Stock Index Performance and Differentials
Displays the performance of major stock indexes from leading economies. This adds a global risk-on/risk-off component to the indicator. Strong equity index performance may reflect improving investor sentiment, while weak performance may signal risk aversion.
The default stock index symbols include:
Australia: ASX 200
Canada: TSX Composite
China: Shanghai Composite
Europe: Euro Stoxx 50
Japan: Nikkei 225
New Zealand: NZX 50
Switzerland: SMI
United Kingdom: FTSE 100
United States: S&P 500
Users can manually change these symbols from the settings panel if they prefer alternative benchmarks.
Example 1: Interest Rate Differential
Suppose the selected dataset is Interest Rates and Differentials and the base country is set to USA .
If:
USA interest rate = 5.50%
Japan interest rate = 0.50%
Then Japan’s differential versus the USA is:
0.50% - 5.50% = -5.00 pp
This means Japan’s policy rate is 5.00 percentage points lower than the USA. In the heatmap, this would appear as a negative differential and would be colored toward the negative side of the gradient.
Example 2: Stock Index Performance Differential
Suppose the selected dataset is Stock Index Performance and Differentials and the timeframe is set to Monthly .
If:
USA S&P 500 monthly return = +4.20%
Japan Nikkei 225 monthly return = +2.10%
Then Japan’s stock index performance differential versus the USA is:
2.10% - 4.20% = -2.10 pp
This means Japan’s equity market underperformed the USA by 2.10 percentage points during that monthly period.
Example 3: Raw Stock Index Performance
If the calculation mode is set to Raw Value , the indicator displays each country’s own index return for the selected period.
For example:
USA: +4.20%
Japan: +2.10%
UK: -1.30%
Europe: +0.80%
This allows users to quickly identify which regions are leading or lagging in global equity performance.
Color Interpretation
Positive values are shown using the positive color gradient.
Negative values are shown using the negative color gradient.
Neutral or near-zero values are shown near the neutral color.
The indicator includes both automatic and manual color scaling. Auto Scale adjusts the heatmap based on the strongest visible value, while Manual Scale lets the user set a fixed range for more consistent comparisons.
How Traders Can Use It
Forex traders can use interest-rate and GDP differentials to evaluate relative currency strength.
Macro traders can use trade balance and reserve data to identify external economic pressure or resilience.
Equity and index traders can use global stock index performance to track international risk sentiment.
Commodity traders can use the dashboard as a macro backdrop because global growth, rates, and risk appetite often influence commodity demand and capital flows.
Important Notes
For percentage-based datasets such as interest rates, GDP growth, and stock index returns, differential values are displayed in percentage points, abbreviated as “pp.”
For balance of trade and reserves, raw values may often be more meaningful than differentials because countries may report values in different scales or currencies.
This indicator is designed as a macro and risk-sentiment visualization tool. It should be used together with technical analysis, fundamental analysis, and proper risk management.
インジケーター

Crypto: Macro Heatmap [invincible3]Crypto Macro Heatmap is an automatic market-regime dashboard designed to summarize crypto macro conditions using liquidity, leverage, breadth, and risk-participation metrics.
The indicator converts multiple market data sources into normalized 0–100 scores and displays them in a structured heatmap table. It is built to help traders quickly understand whether the broader crypto environment is risk-on, neutral, or risk-off.
Main dashboard sections:
1. Liquidity
Tracks Global M2, total crypto market cap, USDT dominance, and BTC volume confirmation. Higher liquidity scores generally suggest stronger macro support for crypto markets.
2. Leverage
Tracks open interest pressure, funding-risk proxy, liquidation-risk proxy, and OI acceleration. Higher leverage scores mean higher stress or crowding risk.
3. Breadth
Tracks TOTAL2, TOTAL3, BTC dominance, ETH dominance, and altcoin participation. This section helps identify whether market strength is broad or concentrated.
Key features:
* Fully automatic scoring
* No manual market-score inputs
* Dashboard show/hide checkbox
* Light/dark chart theme detection
* Composite regime score
* Regime meter
* Market phase detection
* Risk-state classification
* Confidence score
* Section delta versus 7 days ago
* Fixed-width heatmap layout for cleaner visual alignment
The composite score combines liquidity support, market breadth, and leverage-adjusted risk into one regime reading. The dashboard is intended for macro context and regime analysis, not direct buy or sell signals.
Use this tool as a higher-timeframe market filter together with your own technical analysis, risk management, and trading system.
Disclaimer: This indicator is for educational and analytical purposes only. It does not provide financial advice. Always do your own research and manage risk carefully.
インジケーター

Market Cycle Wave [Gabremoku]Market Cycle Wave is a price-based cycle indicator built to map broad market phases into a readable oscillator and a price-anchored overlay.
Instead of relying on a single signal, the script combines trend, momentum, volatility, and range-position data into a composite cycle score. That score is normalized and smoothed to create an intermediate Cycle Wave, while a slower Secular line provides broader context.
The script has two main views:
- an oscillator pane with the score histogram, Cycle Wave, Secular baseline, and major Cycle Peak / Cycle Trough labels.
- a price overlay with a cycle line, gradient aura, and a thinner secular context line.
The regime model classifies market conditions into Debt Accumulation, Deleveraging, Reflation, and Transition. The goal is not to generate standalone buy/sell signals, but to help traders read where price may sit inside a broader market cycle structure.
How to use it
This indicator works best on broad indices and diversified equity ETFs, where cycle behavior is usually cleaner than on highly erratic single names.
Typical use:
- Daily chart: monitor intermediate cycle shifts
- Weekly chart: study broader regime transitions
Practical reading:
- A rising blue cycle wave can suggest constructive expansion conditions
- A yellow rollover after a mature advance can suggest a weakening cycle structure
- Deep negative readings followed by green recovery can suggest reflation or post-stress repair
- The secular line helps show whether the shorter cycle is moving with or against the broader backdrop
The dashboard summarizes the current regime, state, direction, score, risk posture, and color legend directly on the chart.
How it works
The cycle model uses eight price-based factors:
- Fast EMA vs slow EMA relationship
- Fast EMA slope
- RSI momentum regime
- RSI extremes
- Position inside the rolling yearly range
- Distance from yearly extremes
- ATR volatility regime
- Price position vs the slow EMA
Each factor contributes to a composite score. That score is then normalized, smoothed, and accumulated over a rolling memory window to build a bounded cycle wave around a midpoint.
A second and slower baseline is built through longer smoothing to represent secular context. This creates two distinct layers:
- Cycle Wave: the intermediate cycle, more reactive to market swings
- Secular Baseline: the broader context, slower and less sensitive
Recent Cycle Peak and Cycle Trough labels are pivot-based, so the latest labels need confirmation from future bars. インジケーター

CDC Action Zone+TrueMarket Mean (BTC Focus) By Beckte## Overview
This indicator is a macro-focused trend following and cyclical value tracking tool, specifically designed for Bitcoin (BTC) long-term investors. It combines the momentum logic of the well-known **CDC Action Zone** with a mathematical simulation of the On-Chain **Realized Price** model.
The main purpose of this script is to identify high-probability, macro-generational accumulation zones while filtering out early or false bottom signals during aggressive downtrends.
---
## Key Components
### 1. CDC Action Zone (Trend & Momentum)
Based on the classic EMA 12 and EMA 26 crossover logic, this component colors the candlesticks to reflect the market's current momentum:
- 🟢 **Bright Green:** Strong Bullish Momentum (Hold / Trend is up)
- 🔵 **Blue:** Early Bullish Sign / Potential Reversal (Watch closely or start accumulation)
- 🔴 **Bright Red:** Strong Bearish Momentum (Stay in cash / Wait)
- 🟠 **Orange:** Early Bearish Sign / Technical Rebound in Bear Market
### 2. Realized Price Proxy (The Cyclical Floor)
In on-chain analysis, the **Realized Price** represents the average cost basis of all aggregate Bitcoin supply moving on-network, without omitting lost or dormant coins.
Since native on-chain data requires external API subscriptions on TradingView, this script utilizes a specialized long-term statistical proxy (**730-day SMA with custom logarithmic offsets**) to simulate this ultimate cyclical floor. Historically, major bear market bottoms (2015, 2018, 2022) have strictly formed near or slightly below this baseline.
---
## How it Works & Entry Strategy (The Anti-Doi Mechanism)
To avoid catching falling knives during a capitulation event, this script enforces a strict double-confirmation rule:
1. **Value Zone Check:** The current market price must correct down to within **10% of the Realized Price Proxy** (the light blue line). This ensures you are buying Bitcoin at an extreme discount relative to historical network value.
2. **Momentum Trigger:** Once inside the Value Zone, the script waits for the **CDC Action Zone to flip from Red/Orange to Blue or Green**.
When both conditions are met, a **"REALIZED BUY"** label will plot beneath the candlestick, signaling a safe, low-risk entry spot with a highly compressed downside.
---
## Disclaimer & Credits
- **Credits:** The trend-following logic is inspired by the legendary "CDC Action Zone" concept popularized by Piriya Sambandaraksa. The valuation floor is based on the Realized Price on-chain metric conceptualized by the crypto-asset research community.
- **Disclaimer:** This indicator is designed for high-timeframe spot accumulation (recommended: 1D or 4H charts). It is not a financial advisory tool or a guarantee of future profits. Past performance does not indicate future results. Always practice proper risk management. インジケーター

Macro Market Health IndexThis comprehensive indicator, Macro Market Health and Dynamic Regime Scoring, is a multi-asset "Risk-ON / Risk-OFF" framework designed to quantify market health by analyzing six specialized macro pillars. Unlike static indicators, this tool features an adaptive weighting engine that calibrates the importance of each macro block based on its real-time relationship with the specific asset currently on your chart
.
The Six Pillars of Market Health
The indicator processes raw data through six "Blocks," each utilizing specific mathematical models to score health from 0 to 1
:
Risk Block (Sentiment): Monitors the VIX (normalized against a baseline of 22), Gold, and the USD/JPY "Carry Trade"
. It calculates a blend of absolute levels (distance from the 200-day EMA) and momentum (9-day ROC of the 21-day EMA) to detect capital flight into safe havens
.
Breadth Block (Internal Strength): Uses the S5FI (S&P 500 stocks above their 50-day EMA) and the SPX/RSP Spread
. If the standard S&P 500 is significantly outperforming the equal-weighted version, it signals poor "under the hood" participation
.
Equity Block (Momentum & Volume): Analyzes the S&P 500 using a Gaussian "Sweet Spot" model
. It scores the trend highest when the price is in a healthy range above the 200-day EMA, while also penalizing the score if relative volume trends (21-day vs 251-day EMA) show exhaustion
.
Crypto Block (Risk Appetite): Serves as a high-beta proxy by measuring Bitcoin's distance from its 50, 100, and 200-day EMAs
. These are weighted (45% for 50-day, 32% for 100-day, 23% for 200-day) to capture multi-timeframe risk sentiment
.
Growth Block (Economic Context): Tracks Crude Oil and its 50-day correlation to equities
. It identifies whether energy prices are acting as a growth driver or a risk-off inflationary headwind
.
Credit Block (Fixed Income): Monitors the HYG (High Yield Corporate Bonds) as a leading indicator of credit stress
. It evaluates both the trend level and the rate of change in corporate bond demand
.
Advanced Mathematical Components
To ensure all data is comparable, the script employs several core math engines:
Sigmoid Normalization: Squashes all outputs into a standard 0 to 1 range for easy comparison
.
Z-Score Sigmoids: Normalizes volatility and momentum by measuring how many standard deviations a value is from its mean
.
Gaussian Probability: Uses a bell-curve distribution to score the "Equity Block," rewarding trends that stay within a specific volatility-adjusted distance from the mean
.
Distance/ATR Scaling: All price distances from moving averages are divided by the ATR (Average True Range) to ensure the scores are relative to current market volatility
.
Data-Driven Weighting: Tailored to YOUR Asset
The standout feature is the Weight Engine, which rejects the "one-size-fits-all" approach. It calculates weights against the specific ticker (hlc3) on your chart
:
Asset Correlation: The indicator measures the real-time statistical correlation between each macro block and the specific stock you are trading
. If your stock starts moving in lockstep with Credit or Crypto, those blocks are automatically given more weight
.
Dynamic Volatility Scaling: It calculates the ratio of a block's volatility (CV) to your stock's volatility (CV) to dynamically adjust the lookback period (between 50 and 300 bars)
Adaptive Lookback Engine: The index uses the Coefficient of Variation (CV) (StandardDeviation/Mean) to compare macro environment volatility against your stock's volatility
. This ratio automatically scales the lookback window between 50 bars (for high-volatility responsiveness) and 300 bars (for stable trend smoothing)
.
Weighting & Analytics: Final weights blend asset-specific correlation with Inverse Volatility (1/SD) to prioritize correlated, stable, low-noise signals
.
Signals and Predictive Analytics
Trade Status Overlay: Provides a definitive "TRADE" (Score > 0.58) or "NO TRADE" (Score < 0.45) signal
.
Regime Classification: Categorizes the market into BULL MARKET, EARLY BULL, NEUTRAL, or RISK OFF
.
Swing Probability: Uses a Gaussian Survival Model to estimate the conditional probability that a "Risk-ON" or "Risk-Off" (current identified) regime will last for a user-defined "Swing Duration" (e.g., the next 21 bars)
.
Reliability Index: Based on the number of historical samples collected for that specific asset, it labels the probability data as Adequate, Marginal, or Low
. インジケーター

Aquila Reale Macro Dashboard PRO v1.7🦅 AQUILA REALE — MACRO DASHBOARD PRO
"Born to fly, born to dare"
A complete macro overview in a single table, with automatic interpretation of each asset's impact on Gold price and a final ACTIONABLE trade signal that resolves conflicts intelligently between macro tailwinds and price-action reality.
═══════════════════════════════════════════
📊 WHAT IT SHOWS
═══════════════════════════════════════════
For each of 12 macro assets, the dashboard displays:
- Current value (live intraday)
- Daily change %
- Auto-interpreted status (e.g. "VERY STRONG", "HIGH FEAR", "STAGFLATIONARY")
- 🥇 Gold impact (green = pro-Gold, red = anti-Gold, gray = neutral)
═══════════════════════════════════════════
📋 ASSETS COVERED (12 + 2 derived)
═══════════════════════════════════════════
US MACRO:
- DXY (Dollar Index)
- US10Y / US20Y / US30Y (Treasury yields)
- USIRYY (CPI Inflation YoY)
- S5TH (S&P 500 stocks above 200dma — market breadth)
ASIA:
- USDJPY (Yen strength)
- NI225 (Nikkei 225)
- HSI (Hang Seng Index)
SENTIMENT:
- VIX (CBOE Volatility Index — fear gauge)
GLOBAL:
- URTH (iShares MSCI World ETF)
GEOPOLITICAL:
- USDCNH (Offshore Chinese Yuan)
COMMODITIES:
- XAUUSD (Gold spot)
- USOIL (WTI Crude Oil spot)
DERIVED:
- Gold/Oil ratio (with historical valuation reading)
- Macro Scenario (synthesis of WTI level + Gold direction + yields)
═══════════════════════════════════════════
🎯 FINAL SYNTHESIS (3 dedicated rows)
═══════════════════════════════════════════
💬 SCENARIO — One of 6 macro readings:
• STAGFLATIONARY (yield squeeze, no Gold longs)
• GOLD HEDGE ACTIVE (inflation trade pro-Gold)
• RISK-OFF (cautious flight-to-safety)
• REFLATIONARY (broad pro-Gold)
• RISK-ON (anti-Gold)
• MIXED (no clear regime)
💎 MACRO BIAS — Aggregate score (±13) across all assets
🎯 TRADE SIGNAL — Final actionable verdict combining BIAS + SCENARIO:
• 🚀 LONG STRONG / ▲ LONG OK
• ⚠️ LONG CAUTIOUS
• ⏸️ WAIT (yield squeeze / mixed signals)
• 🛑 NO LONG / STAY OUT / SHORT BIAS
═══════════════════════════════════════════
🧠 KEY LOGIC INNOVATION
═══════════════════════════════════════════
Equity indices (NKY/HSI/URTH) only count as pro-Gold when VIX > 22 (true flight-to-safety). This prevents the dashboard from misreading a "bonds beat all" regime as pro-Gold — a common flaw in naive aggregations.
The TRADE SIGNAL row resolves the inevitable conflicts between macro bias (what "should" happen) and price action (what's actually happening), using a priority hierarchy where the SCENARIO has veto power over the BIAS score.
═══════════════════════════════════════════
📺 3 VIEW MODES
═══════════════════════════════════════════
- FULL: complete 19-row dashboard
- MINIMAL: only the 3 synthesis rows (SCENARIO + BIAS + SIGNAL)
- COMPACT: only the TRADE SIGNAL (1-line ticker)
Switch on-the-fly via settings — all modes use the same underlying calculations.
═══════════════════════════════════════════
⚙️ CUSTOMIZATION
═══════════════════════════════════════════
- Dark / Light theme
- 9 anchor positions + signed offsets (H/V)
- 4 text sizes (Tiny / Small / Normal / Large)
- Real-time refresh (lookahead_on for intraday)
═══════════════════════════════════════════
⚠️ IMPORTANT DISCLAIMER
═══════════════════════════════════════════
This indicator is for informational and educational purposes only and does not constitute financial advice. Macro readings are simplified models — always combine with your own analysis, risk management, and price action.
NOT suitable for backtesting strategies due to lookahead_on usage (which is intentional for real-time intraday monitoring).
Past performance does not guarantee future results.
═══════════════════════════════════════════
🦅 Born to fly, born to dare. インジケーター

10Y Yield Spread - Auto FX Pair10Y Yield Spread — Auto FX Pair
Automatically displays the 10-year government bond yield spread for the FX pair currently on your chart. Switch from EURUSD to USDJPY to GBPAUD and the indicator instantly recalculates — no manual reconfiguration needed.
What it shows
The spread between the base currency's 10Y yield and the quote currency's 10Y yield, expressed in basis points. For example:
USD/JPY → US10Y minus JP10Y
EUR/USD → DE10Y (Bund) minus US10Y
GBP/AUD → GB10Y minus AU10Y
A positive spread (green) means the base currency offers a yield premium — historically a tailwind for the pair. A negative spread (red) means the opposite. The wider the spread, the stronger the rates differential pushing the pair.
Why it matters
Yield differentials are one of the most reliable medium-term drivers of major FX pairs. When the spread trends one way and the pair trends the other, you're often looking at a setup waiting to resolve — either the pair catches up, or the spread breaks. Particularly powerful for:
Carry trade decisions (positive spreads = positive carry on the long side)
Filtering FX trades against the macro backdrop
Spotting divergences between price and rates
Anticipating central bank repricing impact across pairs
Confirming or fading reactions to CPI, NFP, and rate decisions
Supported pairs
All combinations of the 8 majors: USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF. Auto-detection works on standard naming (EURUSD, EUR/USD, OANDA:USDJPY, FX:GBPJPY, etc.). For exotic symbols or futures, switch to Manual mode and pick base/quote from the dropdowns.
Yield benchmarks used
USD → US10Y (US Treasury)
EUR → DE10Y (German Bund, eurozone benchmark)
JPY → JP10Y (JGB)
GBP → GB10Y (Gilt)
AUD → AU10Y
NZD → NZ10Y
CAD → CA10Y
CHF → CH10Y
Settings
Moving average : configurable SMA overlay (default 50) to smooth the spread trend
Zero line : visual reference for spread sign change
Background fill : green above zero, red below — instant regime read
End label : shows current pair and live spread value in bps
Pair detection : Auto (reads chart ticker) or Manual (override with dropdowns)
Recommended setup
Works on any FX chart timeframe from 15m to daily. For best results, pair this with my companion indicator Bond Yield Strength — 10Y Majors to see the full rates landscape alongside the specific spread of your pair.
Notes
DE10Y (German Bund) is used as the EUR proxy — it's the de facto eurozone benchmark used by rates desks globally. Data availability for some symbols depends on your TradingView plan; if a yield doesn't render, your plan may not include that exchange.
Feedback and suggestions welcome. インジケーター

Bond Yield Strength - 10Y MajorsBond Yield Strength — 10Y Majors
Track intraday momentum across the 8 major bond markets in a single panel. This indicator plots the change in 10-year government bond yields for USD, EUR, JPY, GBP, AUD, NZD, CAD and CHF, normalized to a common starting point so you can instantly see which currencies are catching a bid in the rates market — and which are getting sold.
What it shows
Each line represents how far a country's 10Y yield has moved (in basis points or %) since the start of the current period. All 8 lines start at zero on each reset, making relative strength immediately readable. A line climbing above zero means yields are rising in that country (typically bullish for the currency); a line falling below zero means yields are dropping.
The eight benchmarks tracked:
USD → US10Y (US Treasury)
EUR → DE10Y (German Bund, the eurozone benchmark)
JPY → JP10Y (JGB)
GBP → GB10Y (Gilt)
AUD → AU10Y
NZD → NZ10Y
CAD → CA10Y
CHF → CH10Y
Why it's useful
Rate differentials drive FX. When US yields rip while Bunds stay flat, EUR/USD usually feels it. This indicator gives you that read at a glance, without flipping between 8 separate charts. Particularly useful for:
Spotting which currencies have a yield tailwind heading into a session
Confirming or fading FX moves against the rates backdrop
Watching the reaction to central bank decisions, CPI releases, and bond auctions across all majors simultaneously
Identifying outliers (one yield diverging from the pack often precedes an FX move)
Settings
Display unit : basis points (default, the standard rates unit) or percent
Reset period : Daily, Weekly, or Monthly — choose your lookback horizon
Line thickness : 1 to 4
End-of-line labels : toggle currency tags with live values at the right edge of the chart
Day separators : optional dashed verticals at each session boundary
Recommended setup
Apply on a 24-hour symbol (e.g. FX:EURUSD or any major forex pair) on a 15m to 1h timeframe — bond symbols themselves don't trade overnight, so the chart's time axis needs to come from a continuously-quoted instrument. You can hide the underlying price plot via the chart's visibility toggle to keep only the yield indicator on screen.
Notes
DE10Y (German Bund) is used as the EUR proxy — it's the de facto eurozone benchmark used by rates desks globally. Data availability for some symbols depends on your TradingView plan; if a yield doesn't render, your plan may not include that exchange.
Feedback and suggestions welcome. インジケーター

Macro Risk Proxy Switchboard [AGPro Series]Macro Risk Proxy Switchboard
🧠 Core Idea
Are macro risk proxies supporting risk appetite, warning of defense, or sending a mixed signal?
📌 Overview / What it does
Macro Risk Proxy Switchboard is a macro context tool that compares multiple external risk proxies and converts them into a clean risk-on / risk-off switchboard.
The script uses configurable proxy symbols such as dollar pressure, yield pressure, volatility pressure, and credit appetite. It normalizes their recent movement, evaluates agreement, detects shock or divergence behavior, and displays the current macro regime directly on the chart.
It produces a macro risk rail, compact alignment labels, right-side regime tags, and a structured AG Pro panel. It does not predict price direction, automate decisions, or claim that macro proxies must control the chart.
🎯 Purpose & Design Philosophy
This script was built to solve a common context problem: traders often watch several macro proxies, but the information is scattered across different charts.
Macro Risk Proxy Switchboard compresses that context into one visual layer. It helps traders understand whether external risk conditions are supportive, defensive, mixed, or shocked.
The mindset is simple: price action matters first, but macro pressure can change the quality of breakouts, pullbacks, risk appetite, and continuation attempts.
⚡ Why This Script Is Different
Most tools focus only on the charted symbol.
This script does NOT treat macro data as a prediction engine.
Instead, it reads a configurable basket of risk proxies and asks whether those proxies agree, diverge, or create an external pressure warning.
The result is not a buy or sell signal. It is a compact macro context layer designed to improve situational awareness.
⚙️ Methodology
1. Proxy Selection
The script reads four configurable proxies: dollar pressure, yield pressure, volatility pressure, and credit appetite.
2. Proxy Normalization
Each proxy is measured by recent momentum and normalized against its own historical behavior so the readings can be compared.
3. Composite Evaluation
The script combines proxy pressure into a composite risk score and measures how many proxies agree with the current regime.
4. Visual Output
The output is displayed through a macro risk rail, event labels, right-side regime tags, and a clean AG Pro panel.
🗺️ How to Read the Chart
The macro rail represents the current external risk context.
Labels show important macro events such as risk-on alignment, risk-off alignment, proxy shock, or macro divergence.
Colors separate supportive, defensive, neutral, and shock-style behavior.
The panel shows macro regime, risk direction, composite pressure, agreement count, dominant proxy, individual proxy pressure, credit pressure, quality score, and next context.
🚦 Signals & States
• RISK-ON ALIGN → macro proxies are broadly supportive of risk appetite
• RISK-OFF ALIGN → macro proxies are broadly defensive or risk restrictive
• MIXED PROXIES → proxy agreement is weak or divided
• PROXY SHOCK → at least one proxy shows unusually strong pressure
• NEUTRAL BOARD → no clear macro tilt is active
🔔 Alerts Logic
Alerts trigger when the script detects risk-on alignment, risk-off alignment, proxy shock, or macro proxy divergence.
These alerts are attention markers only. They highlight a change in macro context, not a trading instruction.
🧩 Confluence Logic
The strongest macro context appears when multiple proxies point in the same direction and the composite score is strong.
When price structure, market trend, and macro proxy alignment agree, the context becomes more coherent.
When price action and macro pressure disagree, the chart should be interpreted with more caution.
📊 When to Use
• Crypto risk-on / risk-off evaluation
• Equity index context
• Breakout quality review
• Pullback environment analysis
• Volatility expansion periods
• Comparing price behavior against external macro pressure
⚠️ When NOT to Use
• When proxy symbols are unavailable on the selected TradingView data plan
• During market holidays where proxy data may be stale
• On very low-liquidity symbols where local behavior dominates
• When using macro context as a standalone trade trigger
• When ignoring the chart’s own structure, liquidity, and volatility
🎛️ Key Inputs
• Dollar Pressure Proxy → default DXY-style risk pressure input
• Yield Pressure Proxy → default 10-year yield-style pressure input
• Volatility Proxy → default VIX-style defensive pressure input
• Credit Appetite Proxy → default HYG-style risk appetite input
• Proxy Momentum Length → controls how recent proxy movement is measured
• Proxy Rank Length → controls normalization stability
• Agreement Threshold → controls how strict risk-on/risk-off classification is
• Visual settings → control panel, rail, labels, and readability
🖥️ Interface & Visual Design
The interface is designed as a switchboard, not a traditional oscillator.
The panel carries the macro logic, while the chart displays only the most important regime rail and event labels.
This keeps the chart clean while still giving the viewer a premium first-glance macro context.
🧪 Practical Usage Workflow
1. Read the panel macro regime
2. Check risk direction and composite score
3. Review agreement count and dominant proxy
4. Compare macro rail with current price structure
5. Treat divergence or proxy shock as context requiring extra caution
🔍 Interpretation Guidelines
A risk-on reading does not guarantee upside.
A risk-off reading does not guarantee downside.
A proxy shock means external pressure is elevated and should be reviewed.
A mixed board means macro proxies are not giving a clean message.
The best use is to combine this switchboard with price action, structure, volatility, liquidity, and timeframe context.
🚫 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 does not provide guaranteed buy or sell signals.
It does not claim that macro proxies always lead price.
⚠️ Limitations & Transparency
Proxy symbols may behave differently across asset classes.
Some symbols may have delayed or unavailable data depending on the user’s TradingView access.
Macro relationships can change over time.
Short-term price action can diverge from macro context for long periods.
Users should always interpret the switchboard within broader market conditions.
🧠 Market Context Notes
Macro context is most useful when it helps explain the quality of risk appetite.
Dollar pressure, yield pressure, volatility pressure, and credit appetite can all influence how traders interpret continuation, rejection, and acceptance behavior.
The script is built to simplify that context, not to replace the chart.
🧾 Use Case Examples
When price attempts a breakout while the switchboard shows risk-on alignment, the trader can evaluate whether external conditions support the move.
When price is holding support but the switchboard prints proxy shock, the trader can watch for defensive pressure.
When price trends strongly while macro proxies remain mixed, the trader can treat the move as less confirmed by external context.
🧱 System Philosophy
Macro Risk Proxy Switchboard follows the AGPro Series philosophy: clean decision-support tools that turn complex market context into readable, premium visual structure.
The script focuses on interpretation quality, not prediction claims.
🔐 Non-Promise Statement
No proxy basket can know the future.
No macro signal guarantees price direction.
This tool provides structured context only.
📉 Risk Disclosure
Trading involves risk.
Market conditions can change quickly.
All decisions remain the responsibility of the user.
This script does not provide financial advice or guaranteed trading outcomes.
📚 Educational Note
Use this script as an educational and analytical companion for studying macro pressure, risk appetite, defensive conditions, and cross-market context.
インジケーター

ICT Algo MACRO Tracker by Leveragedincome# ICT Algo MACRO Tracker by Leveragedincome
A fully customizable visual tracker for ICT-style algorithmic macro time windows on intraday charts. Marks every active macro with a labeled bracket on chart (or a colored box in a separate pane), and projects a forward-looking marker for the next upcoming macro so you can prepare ahead of each session.
---
## What is a "macro"?
ICT methodology identifies recurring intraday windows — typically 20 minutes long, around the :50–:10 of each hour — when algorithmic order flow is observably more active in liquid instruments such as ES, NQ, YM, RTY, gold, oil, and FX majors. Traders use these windows to time entries, exits, and confirmations rather than reacting at random points during the session.
This indicator highlights every macro window directly on your chart in **America/New_York** time, regardless of your chart's timezone, so all bracketed regions line up with the algorithm's clock.
---
## Key features
- **26 fully customizable macro slots.** Every macro has an independent enable toggle and editable Start/End hour and minute. Re-time them, disable the ones you don't trade, or repurpose them for any session-based template — equity open, FX London/NY overlap, news prints, or your own playbook.
- **Two display modes.**
- *On Chart*: bracket-style overlay drawn just above price, with a label and tooltip on each macro.
- *New Pane*: compact colored boxes in a separate pane below the chart, ideal for keeping price clean.
- **Macro projections** *(optional)*: extend each macro's vertical lines down to current price for a clear visual anchor against highs/lows formed inside the window.
- **Next Upcoming Macro marker.** A forward-projected line + label on the right edge of the chart shows which macro fires next and when. Color, line style (Solid / Dashed / Dotted), and vertical span (Above Price / Full Visible Range) are all configurable. The marker updates in real time as macros come and go.
- **Friday weekend handling.** On non-crypto symbols, New-Pane macro boxes that close on Friday extend across the weekend so they remain visible at Sunday open.
---
## Default macro set
Out of the box, the indicator covers the standard ICT macros plus a few extras:
**Hourly Macros** (default-on for the active US session, off for overnight)
- 02:50 – 03:10
- 03:50 – 04:10
- 04:50 – 05:10
- 09:50 – 10:10
- 10:50 – 11:10
- 11:50 – 12:10
- 12:50 – 13:10
- 13:50 – 14:10
- (additional disabled-by-default hourly slots covering every other hour of the day, ready to enable or re-time)
**Other Macros**
- 14:50 – 15:10 (NY PM open)
- **Last Hr MACRO** — 15:15 – 15:45
- 15:50 – 16:10 (NY close)
- **Lunch MACRO** — 11:30 – 13:30 (the broader NY lunch consolidation window)
Every time and label is editable in the settings — defaults are merely a starting point.
---
## How to use
1. Add the indicator to an intraday chart. Works on any timeframe; **1m to 15m** is the typical range for ICT macro analysis.
2. Open the indicator settings. For each macro, toggle it on/off and edit the Start/End hour and minute fields if you want to depart from the default.
3. Choose your preferred display mode under the Macro Color row: *On Chart* or *New Pane*. If you pick New Pane, drag the indicator into its own pane (TradingView does not do this automatically).
4. Optional add-ons:
- Enable **Macro Projections** to drop vertical guides from each macro down to price.
- Enable **Show Next Macro Marker** to see the next session previewed on the right edge of the chart, with a tooltip naming the upcoming macro and its time.
---
## Notes
- All times are evaluated in **America/New_York** time (handles DST automatically). Your chart's display timezone does not need to match.
- On lower timeframes the macro window aligns precisely with bar boundaries. On higher timeframes (e.g. 1H), the window snaps to the nearest enclosing bar and may appear wider than the literal HH:MM range.
- The on-chart label is anchored just above recent price highs and tracks intrabar highs throughout the macro for visibility.
---
## Credits
Based on the open-source **ICT Algorithmic Macro Tracker°** by © **toodegrees**, released under MPL-2.0.
This version adds:
- Fully editable Start/End times for every macro
- A dedicated **Lunch MACRO** slot (11:30 – 13:30) and **Last Hr MACRO** rename for the 15:15 macro
- Forward-looking **Next Upcoming Macro** marker
- Updated to **Pine Script v6** with stricter type safety and defensive rendering fixes
---
*This script is a chart-marking tool. It does not generate trade signals or execute orders. Use it alongside your own analysis and risk management.* インジケーター

インジケーター
