PROTECTED SOURCE SCRIPT

[Lite Version] Japan Macro Regime Indicator

318
This indicator visualizes Japan's macroeconomic environment by synthesizing three key economic signals into a single composite score.

"This is a simplified version. The calculation logic for each signal has been streamlined."

【Features】
- Japan Macro Regime Score ranging from -1 to +1
- Background turns green when conditions are favorable (score > 0.1)
- Background turns red when conditions are deteriorating (score < -0.1)
- Designed for weekly charts only

【Applicable Instruments】
This indicator is designed for Japanese equities in general. It works particularly well with:
<Domestic ETFs (TSE)>
- 1306 (TOPIX ETF)
- 1321 (Nikkei 225 ETF)
<International ETFs>
- EWJ (iShares MSCI Japan ETF)
- DXJ (WisdomTree Japan Hedged Equity Fund)
- HEWJ (iShares Currency Hedged MSCI Japan ETF)

【Score Calculation Method】
The Japan Macro Regime Score is calculated by equally weighting the following three signals and applying a sigmoid function to the composite:
1. Price Trend Signal — Based on TOPIX ETF (1306) price trend
2. Sentiment Signal — Based on fluctuations in Reuters Tankan (ECONOMICS:JPRTI)
3. Real Economy Signal — Based on the level of Japan Leading Economic Index (ECONOMICS:JPLEI) by the Cabinet Office

【How to Use】
1. Apply to a Weekly chart (other timeframes will show a warning)
2. Read the Japan Macro Regime Score (blue line):
• Above +0.1 → Green background = Risk-On environment
• Below -0.1 → Red background = Risk-Off environment
• Between ±0.1 → Neutral
3. Sub-scores (green/gray/red lines) show each component individually

【Data Sources】
- 1306: TOPIX ETF (TSE)
- ECONOMICS:JPRTI: Reuters Tankan (free data)
- ECONOMICS:JPLEI: Japan Leading Economic Index by Cabinet Office (free data)

【Full Version】
A full version with more sophisticated calculation logic is also available.
Please visit my profile page for details.

【Notes】
- For use on Weekly timeframe only
- Economic indicators may be revised retroactively by issuing authorities, which may cause discrepancies between backtest results and live performance
- This script is for informational purposes only and does not constitute investment advice

─────────────────────────────
日本のマクロ経済環境を-1〜+1のスケールで可視化するインジケーター(週足チャート専用)です。
(※本バージョンは簡易版です。各シグナルの計算ロジックを簡略化しています)

【特徴】
日本のマクロ経済環境を「国内経済環境スコア」として表現
・景気拡大局面(リスクオン): スコア > 0.1 でチャート背景が緑
・景気後退局面(リスクオフ): スコア < -0.1 でチャート背景が赤

【対象銘柄】
本インジケーターは日本株全般に使用できます。 特に以下の銘柄との相性が良いです:
<国内ETF>
・1306(TOPIX連動型ETF)
・1321(日経225連動型ETF)
<海外ETF>
・EWJ(iShares MSCI Japan ETF)
・DXJ(WisdomTree Japan Hedged Equity Fund)
・HEWJ(iShares Currency Hedged MSCI Japan ETF)

【スコアの計算方法】
国内経済環境スコアは以下の3つの経済指標を等ウェイトで合成し、シグモイド関数で変換しています:
1. 株価トレンドシグナル — TOPIX ETF(1306)の株価トレンドをもとに算出
2. センチメントシグナル — Reuters短観(ECONOMICS:JPRTI)の変動をもとに算出
3. 実体経済シグナル — 内閣府 景気動向指数(先行指数)(ECONOMICS:JPLEI)の水準をもとに算出

【使い方】
1. 週足チャートに本インジケーターを追加(他の時間足では警告が表示されます)
2. 国内経済環境スコア(青い太線)を確認:
・+0.1以上 → 緑背景 = リスクオン環境
・-0.1以下 → 赤背景 = リスクオフ環境
・±0.1以内 → 中立
3. サブスコア(緑・灰・赤の細線)で各構成要素を個別に確認可能

【データソース】
・1306:TOPIX連動型ETF(東証)
・ECONOMICS:JPRTI:Reuters短観(無料データ)
・ECONOMICS:JPLEI:内閣府 景気動向指数 先行指数(無料データ)

【フル版について】
より精緻な計算ロジックを実装したフル版を配布しています。
プロフィールページよりご確認いただけます。

【注意事項・免責事項】
・本インジケーターは週足チャート専用です
・使用している経済指標は所管機関により過去に遡って改訂される場合があります。
バックテスト結果と実運用時の乖離が生じる可能性があります
・本スクリプトは情報提供を目的としており、投資助言・売買推奨ではありません
・本スクリプトを使用した取引により生じた損失について、作成者は一切の責任を負いません

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.