OPEN-SOURCE SCRIPT
Mis à jour GPIFBalance

年金ファンド GPIF バランス (4資産スプレッド比較)
概要:
日本の年金積立金管理運用独立行政法人(GPIF)の基本ポートフォリオを構成する「伝統的4資産」の相対的な力関係(スプレッド)を可視化するプロ仕様のインジケーターです。市場全体のトレンド(ベータ)を排除し、資産間の資金循環や強弱のみを抽出して分析することができます。
構成銘柄(デフォルト設定):
国内株式:NEXT FUNDS TOPIX連動型上場投信 (1306)
国内債券:NEXT FUNDS 国内債券・NOMURA-BPI総合 (2510)
外国株式:上場インデックスファンド世界株式 (1554)
外国債券:NEXT FUNDS 外国債券・FTSE世界国債 (1677)
主な特徴:
相対スプレッド分析: 4つの資産のパフォーマンスの「平均値」を常に0ラインとし、そこから各資産が何%乖離(オーバーパフォーム/アンダーパフォーム)しているかを描画します。資金の逃避(株から債券へ)やリスクオンの動きが一目でわかります。
ワンタッチ期間設定: 設定画面のプルダウンから「測定スタート年(2020〜)」と「四半期(Q1〜Q4)」を選ぶだけで、瞬時にその期間からの相対パフォーマンスに切り替わります。マクロ経済のサイクル分析に最適です。
サブウィンドウ表示: メインのローソク足チャートを一切邪魔しないよう、画面下部の別枠に独立して表示されます。
おすすめの使い方:
四半期ごとの資金フロー(セクターローテーション)の確認や、グローバル分散投資におけるリバランスの最適なタイミングを計るためのツールとしてご活用ください。
【English Version】
Title: Pension Fund GPIF Balance NOW (4-Asset Spread Analyzer)
Description:
A professional-grade macro indicator designed to visualize the relative strength and spread of the "Traditional 4 Assets" modeled after the core portfolio of Japan's Government Pension Investment Fund (GPIF). This tool isolates capital rotation and relative momentum by neutralizing overall market trends.
Tracked Assets (Default ETFs):
Domestic Equities (Japan): TOPIX ETF (1306)
Domestic Bonds (Japan): NOMURA-BPI Bond ETF (2510)
Global Equities: MSCI ACWI ETF (1554)
Global Bonds: FTSE World Government Bond ETF (1677)
Key Features:
Relative Spread Analysis: The script calculates the average performance of the 4 assets and plots this mean as the dynamic "0" line. It plots each asset's deviation (spread) from this average, instantly revealing which assets are overperforming or underperforming (e.g., visualizing flight-to-safety flows from equities to bonds).
One-Click Period Selection: Easily change the measurement starting point via intuitive dropdown menus. Select the starting "Year" and "Quarter" (Q1-Q4) to instantly track performance across specific macro-economic cycles.
Sub-Window Display: Renders cleanly in a separate lower pane (overlay=false), ensuring your main price chart remains completely unobstructed and easy to read.
Best Use Case:
Ideal for tracking quarterly capital rotations, analyzing macro risk-on/risk-off sentiment, and identifying optimal timing for portfolio rebalancing within a globally diversified strategy.
概要:
日本の年金積立金管理運用独立行政法人(GPIF)の基本ポートフォリオを構成する「伝統的4資産」の相対的な力関係(スプレッド)を可視化するプロ仕様のインジケーターです。市場全体のトレンド(ベータ)を排除し、資産間の資金循環や強弱のみを抽出して分析することができます。
構成銘柄(デフォルト設定):
国内株式:NEXT FUNDS TOPIX連動型上場投信 (1306)
国内債券:NEXT FUNDS 国内債券・NOMURA-BPI総合 (2510)
外国株式:上場インデックスファンド世界株式 (1554)
外国債券:NEXT FUNDS 外国債券・FTSE世界国債 (1677)
主な特徴:
相対スプレッド分析: 4つの資産のパフォーマンスの「平均値」を常に0ラインとし、そこから各資産が何%乖離(オーバーパフォーム/アンダーパフォーム)しているかを描画します。資金の逃避(株から債券へ)やリスクオンの動きが一目でわかります。
ワンタッチ期間設定: 設定画面のプルダウンから「測定スタート年(2020〜)」と「四半期(Q1〜Q4)」を選ぶだけで、瞬時にその期間からの相対パフォーマンスに切り替わります。マクロ経済のサイクル分析に最適です。
サブウィンドウ表示: メインのローソク足チャートを一切邪魔しないよう、画面下部の別枠に独立して表示されます。
おすすめの使い方:
四半期ごとの資金フロー(セクターローテーション)の確認や、グローバル分散投資におけるリバランスの最適なタイミングを計るためのツールとしてご活用ください。
【English Version】
Title: Pension Fund GPIF Balance NOW (4-Asset Spread Analyzer)
Description:
A professional-grade macro indicator designed to visualize the relative strength and spread of the "Traditional 4 Assets" modeled after the core portfolio of Japan's Government Pension Investment Fund (GPIF). This tool isolates capital rotation and relative momentum by neutralizing overall market trends.
Tracked Assets (Default ETFs):
Domestic Equities (Japan): TOPIX ETF (1306)
Domestic Bonds (Japan): NOMURA-BPI Bond ETF (2510)
Global Equities: MSCI ACWI ETF (1554)
Global Bonds: FTSE World Government Bond ETF (1677)
Key Features:
Relative Spread Analysis: The script calculates the average performance of the 4 assets and plots this mean as the dynamic "0" line. It plots each asset's deviation (spread) from this average, instantly revealing which assets are overperforming or underperforming (e.g., visualizing flight-to-safety flows from equities to bonds).
One-Click Period Selection: Easily change the measurement starting point via intuitive dropdown menus. Select the starting "Year" and "Quarter" (Q1-Q4) to instantly track performance across specific macro-economic cycles.
Sub-Window Display: Renders cleanly in a separate lower pane (overlay=false), ensuring your main price chart remains completely unobstructed and easy to read.
Best Use Case:
Ideal for tracking quarterly capital rotations, analyzing macro risk-on/risk-off sentiment, and identifying optimal timing for portfolio rebalancing within a globally diversified strategy.
Notes de version
変更点1. 加重平均(Weighted Average)ロジックの導入
4資産のパフォーマンスを単に「4で割る(単純平均)」のではなく、それぞれの資産に指定したパーセンテージ(ウェイト)を掛けて足し合わせる「加重平均」の計算式にアップデートしました。これにより、実際の年金ファンド(GPIF)などのポートフォリオ運用と、数学的に完全に一致する精緻な計算が可能になりました。
2. 配分比率(ウェイト)のカスタマイズ機能を追加
設定画面(歯車マーク)に、4つのETFそれぞれの配分比率を入力できる項目を追加しました。デフォルトは「各25%(GPIF基本ポートフォリオ型)」に設定されていますが、ご自身の相場観に合わせて「株式を60%、債券を40%にリバランスした場合」などのシミュレーションがワンタッチで可能になりました。
【English Version】Key Changes in This Update
1. Introduction of Weighted Average Calculation
Upgraded the core logic from a simple average (dividing by 4) to a true "weighted average" methodology. The baseline performance is now calculated by multiplying each asset's return by its specific portfolio weight. This mathematically aligns the indicator with actual institutional portfolio management practices, such as the GPIF core portfolio.
2. Added Customizable Asset Allocation Inputs
Introduced user-adjustable input fields in the settings menu to define the specific weight of each of the four ETFs. While the default is set to an equal 25% split (mirroring the GPIF baseline), users can now easily simulate different portfolio allocations (e.g., a classic 60/40 Equity/Bond split) with just a few clicks.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.