OPEN-SOURCE SCRIPT

Global Macro Scanner & Relative Performance

63
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).

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.