OPEN-SOURCE SCRIPT
Global Macro Scanner & Relative Performance

Description: This indicator is an all-in-one Macro Dashboard that allows traders to track money flow across major global asset classes in real-time. It combines a floating data table with a normalized percentage-performance chart.
Features:
Macro Dashboard (Table): Displays the current value, daily % change, and status (Inflow/Outflow) for 9 key economic sectors:
US M2 Supply: Tracks monetary inflation/tightening.
DXY (US Dollar): Currency strength.
Bonds (AGG): US Aggregate Bond market.
Stocks (VT): Total World Stock Index.
Real Estate (VNQ): Vanguard Real Estate ETF.
Commodities: Oil (WTI), Gold, and Silver.
Crypto: Total Crypto Market Cap.
Relative Performance Chart (Lines): Instead of plotting raw prices (which have vastly different scales), this script plots the Percentage Return relative to a baseline.
Lookback Period: You can set a lookback (default 100 bars). The script sets the price 100 bars ago as "0%" and plots how much each asset has gained or lost since then.
Comparison: This allows you to visually see which assets are outperforming or underperforming relative to each other over the same time period.
Visual Aids:
Dynamic Labels: Each line is tagged with a label at the current candle so you can identify assets without needing a legend.
Colors: Each asset has a distinct, fixed color for consistency between the table and the chart.
How to use:
Add the script to your chart.
Adjust the "Lookback" setting in the inputs to change the starting point of the comparison (e.g., set it to the start of the year to see Year-to-Date performance).
Use the dashboard to spot daily money flow rotation (e.g., Money moving out of Stocks and into Gold).
Features:
Macro Dashboard (Table): Displays the current value, daily % change, and status (Inflow/Outflow) for 9 key economic sectors:
US M2 Supply: Tracks monetary inflation/tightening.
DXY (US Dollar): Currency strength.
Bonds (AGG): US Aggregate Bond market.
Stocks (VT): Total World Stock Index.
Real Estate (VNQ): Vanguard Real Estate ETF.
Commodities: Oil (WTI), Gold, and Silver.
Crypto: Total Crypto Market Cap.
Relative Performance Chart (Lines): Instead of plotting raw prices (which have vastly different scales), this script plots the Percentage Return relative to a baseline.
Lookback Period: You can set a lookback (default 100 bars). The script sets the price 100 bars ago as "0%" and plots how much each asset has gained or lost since then.
Comparison: This allows you to visually see which assets are outperforming or underperforming relative to each other over the same time period.
Visual Aids:
Dynamic Labels: Each line is tagged with a label at the current candle so you can identify assets without needing a legend.
Colors: Each asset has a distinct, fixed color for consistency between the table and the chart.
How to use:
Add the script to your chart.
Adjust the "Lookback" setting in the inputs to change the starting point of the comparison (e.g., set it to the start of the year to see Year-to-Date performance).
Use the dashboard to spot daily money flow rotation (e.g., Money moving out of Stocks and into Gold).
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
To define trading is to limit trading. Goldman Armi
excessivetrading.com t.me/excessivetraders
excessivetrading.com t.me/excessivetraders
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 o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
To define trading is to limit trading. Goldman Armi
excessivetrading.com t.me/excessivetraders
excessivetrading.com t.me/excessivetraders
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 o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.