OPEN-SOURCE SCRIPT
Macro Thesis Fleet: Direction & Cause Overlay

Macro Thesis Fleet Overlay
A read-only macro context panel for your chart. Instead of a single trend arrow, it shows how a fleet of independent macro theses currently lean on a mapped symbol — plus the top causal claim behind that lean.
What it shows (top-right table)
Asset name — human label for the matched symbol
Direction — LONG, SHORT, or MIXED from fleet vote aggregation
Room % — estimated unpriced move remaining (Tight / Moderate / Significant band)
Strength label — e.g. Clear signal, Mixed fleet, Flagged (when thesis quality gates fail)
Fleet lean — count of theses leaning up / down / neutral (when available)
Cause one-liner — the dominant D1-level macro claim driving the read (not a price summary)
How direction is computed
Each mapped symbol carries a pre-computed direction code from upstream thesis aggregation:
LONG — net tradable lean is bullish after quality filters
SHORT — net tradable lean is bearish after quality filters
MIXED — material disagreement across the thesis fleet (no forced one-sided arrow)
This is macro context, not an intraday entry signal. Use it as a filter before your own timeframe and risk rules.
How symbol matching works
On the last bar, the script builds candidate keys from syminfo.tickerid, exchange:ticker, and bare ticker, then looks up the first match in parallel embedded arrays (MACRO_TV_KEYS, MACRO_SYMBOLS). If no match, the panel states that the chart symbol is not in the current feed.
Data cadence (important)
Values are embedded at publish time as Pine string/int/float arrays — Pine cannot call external APIs on Community scripts. Republish this script when you need a refreshed snapshot. The embedded Generated: comment in source shows the bake timestamp.
Mapped symbols in this release (31)
BTC · XAUUSD · XAGUSD · NVDA · MSFT · META · GOOGL · AMZN · SPY · QQQ · IWM · GLD · GC · XLE · GDX · TLT · EURUSD · USDJPY · EURJPY · PA · KIE · FXY · AEM · RGLD · URA · UST · NUGT · VALE · TECK · XLRE · VNQ
Matching examples: BINANCE:BTCUSDT, OANDA:XAUUSD, NASDAQ:NVDA, AMEX:SPY.
How to use
Add to a chart for one of the mapped symbols above.
Read direction + room + cause in the panel.
If direction is MIXED or strength is Flagged, treat the read as low conviction until you verify contributing theses yourself.
Republish when the embedded snapshot is stale for your workflow.
Not financial advice. Macro snapshot only — not a trading system.
A read-only macro context panel for your chart. Instead of a single trend arrow, it shows how a fleet of independent macro theses currently lean on a mapped symbol — plus the top causal claim behind that lean.
What it shows (top-right table)
Asset name — human label for the matched symbol
Direction — LONG, SHORT, or MIXED from fleet vote aggregation
Room % — estimated unpriced move remaining (Tight / Moderate / Significant band)
Strength label — e.g. Clear signal, Mixed fleet, Flagged (when thesis quality gates fail)
Fleet lean — count of theses leaning up / down / neutral (when available)
Cause one-liner — the dominant D1-level macro claim driving the read (not a price summary)
How direction is computed
Each mapped symbol carries a pre-computed direction code from upstream thesis aggregation:
LONG — net tradable lean is bullish after quality filters
SHORT — net tradable lean is bearish after quality filters
MIXED — material disagreement across the thesis fleet (no forced one-sided arrow)
This is macro context, not an intraday entry signal. Use it as a filter before your own timeframe and risk rules.
How symbol matching works
On the last bar, the script builds candidate keys from syminfo.tickerid, exchange:ticker, and bare ticker, then looks up the first match in parallel embedded arrays (MACRO_TV_KEYS, MACRO_SYMBOLS). If no match, the panel states that the chart symbol is not in the current feed.
Data cadence (important)
Values are embedded at publish time as Pine string/int/float arrays — Pine cannot call external APIs on Community scripts. Republish this script when you need a refreshed snapshot. The embedded Generated: comment in source shows the bake timestamp.
Mapped symbols in this release (31)
BTC · XAUUSD · XAGUSD · NVDA · MSFT · META · GOOGL · AMZN · SPY · QQQ · IWM · GLD · GC · XLE · GDX · TLT · EURUSD · USDJPY · EURJPY · PA · KIE · FXY · AEM · RGLD · URA · UST · NUGT · VALE · TECK · XLRE · VNQ
Matching examples: BINANCE:BTCUSDT, OANDA:XAUUSD, NASDAQ:NVDA, AMEX:SPY.
How to use
Add to a chart for one of the mapped symbols above.
Read direction + room + cause in the panel.
If direction is MIXED or strength is Flagged, treat the read as low conviction until you verify contributing theses yourself.
Republish when the embedded snapshot is stale for your workflow.
Not financial advice. Macro snapshot only — not a trading system.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.