INVITE-ONLY SCRIPT
Yen Carry Composite Index + Macro Flow Gauge

What This Indicator Does
This chart visualizes the strength, trend, and macro conditions supporting or weakening the yen carry trade a strategy where investors borrow in low yielding yen to invest in higher yielding assets
How It Works: Core Components
Composite Index (Blue Line):
A weighted blend of z-scores from:
USD/JPY (strength of USD vs JPY)
10Y yield spread (US – Japan)
AUD/JPY (risk proxy for carry appetite)
VIX (global risk sentiment, inverted)
Z-scores normalize each input to show how far it deviates from recent history (not raw values).
Positive composite trend ⬅️ strong carry environment
Negative composite trend ➡️ signs of unwind or stress
Individual Z-Score Lines:
🟥 USD/JPY
🟩 Yield Spread (US10Y − JP10Y)
🟪 FX Proxy (AUD/JPY)
🟦 VIX (risk sentiment)
Threshold Lines & Signal Markers:
Green 🟢⬅️🟢🟢 “carry active” threshold (+1.5 std dev)
Red dashed line 🔴➡️🔴🔴→ “carry unwind risk” (−1.5 std dev)
Carry Trade Strength Gauge (Horizontal Bar, Bottom-Right)https://www.tradingview.com/chart/YVbZwNez/
Slots:
🟢 = strong carry inflow conditions
⚪ = neutral midpoint
🔴 = outflow / unwind pressure
A directional arrow (⬅️ or ➡️) shows momentum:
➡️ = composite rising → improving carry environment
⬅️ = composite falling → deteriorating carry conditions
Arrow is placed at the current strength level, visually combining position + momentum
Labels “Inflows” and “Outflows” flank the bar for clarity
Use Case Summary
Macro risk overlay for JPY pairs, EM FX, bond carry strategies
Detect early unwind phases (e.g. if arrow ⬅️ appears in red zone)
Confirm entry/exit in directional JPY trades or expected liquidity to enter the markets

This chart visualizes the strength, trend, and macro conditions supporting or weakening the yen carry trade a strategy where investors borrow in low yielding yen to invest in higher yielding assets
How It Works: Core Components
Composite Index (Blue Line):
A weighted blend of z-scores from:
USD/JPY (strength of USD vs JPY)
10Y yield spread (US – Japan)
AUD/JPY (risk proxy for carry appetite)
VIX (global risk sentiment, inverted)
Z-scores normalize each input to show how far it deviates from recent history (not raw values).
Positive composite trend ⬅️ strong carry environment
Negative composite trend ➡️ signs of unwind or stress
Individual Z-Score Lines:
🟥 USD/JPY
🟩 Yield Spread (US10Y − JP10Y)
🟪 FX Proxy (AUD/JPY)
🟦 VIX (risk sentiment)
Threshold Lines & Signal Markers:
Green 🟢⬅️🟢🟢 “carry active” threshold (+1.5 std dev)
Red dashed line 🔴➡️🔴🔴→ “carry unwind risk” (−1.5 std dev)
Carry Trade Strength Gauge (Horizontal Bar, Bottom-Right)https://www.tradingview.com/chart/YVbZwNez/
Slots:
🟢 = strong carry inflow conditions
⚪ = neutral midpoint
🔴 = outflow / unwind pressure
A directional arrow (⬅️ or ➡️) shows momentum:
➡️ = composite rising → improving carry environment
⬅️ = composite falling → deteriorating carry conditions
Arrow is placed at the current strength level, visually combining position + momentum
Labels “Inflows” and “Outflows” flank the bar for clarity
Use Case Summary
Macro risk overlay for JPY pairs, EM FX, bond carry strategies
Detect early unwind phases (e.g. if arrow ⬅️ appears in red zone)
Confirm entry/exit in directional JPY trades or expected liquidity to enter the markets
仅限邀请脚本
只有经作者批准的用户才能访问此脚本。您需要申请并获得使用权限。该权限通常在付款后授予。如需了解更多详情,请按照以下作者的说明操作,或直接联系MerloClover-PugetPointCapital。
除非您完全信任其作者并了解脚本的工作原理,否則TradingView不建议您付费或使用脚本。您还可以在我们的社区脚本中找到免费的开源替代方案。
作者的说明
reach out to me if you'd like to improve this code.
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
仅限邀请脚本
只有经作者批准的用户才能访问此脚本。您需要申请并获得使用权限。该权限通常在付款后授予。如需了解更多详情,请按照以下作者的说明操作,或直接联系MerloClover-PugetPointCapital。
除非您完全信任其作者并了解脚本的工作原理,否則TradingView不建议您付费或使用脚本。您还可以在我们的社区脚本中找到免费的开源替代方案。
作者的说明
reach out to me if you'd like to improve this code.
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。