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が提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。