PROTECTED SOURCE SCRIPT
Market Regime Change Rate Indicator (Simple)

Overview
Plots the change rate of a baseline index as a histogram in a separate pane (overlay=false).
Green bars = positive change, red bars = negative change.
Designed to make the market’s upward/downward momentum easy to read at a glance.
Highlights
Flexible baseline
Default: TVC:NI225 (Nikkei 225). You can also use any symbol or the current chart symbol as the baseline.
Selectable change definition
Log Return (default)
ROC % (percent change)
Price Diff (absolute price difference)
Light smoothing
EMA-based smoothing to reduce noise.
Optional z-score normalization
Standardizes scale to aid comparison across periods/symbols.
How to Use
Open the chart (e.g., Daily).
Add the indicator.
In Settings (⚙), adjust as needed:
Baseline
Use chart symbol as baseline: ON to use the current chart symbol; OFF to use Baseline symbol.
Baseline symbol: e.g., TVC:NI225 (or your TOPIX code, etc.).
Index timeframe: leave blank to follow the chart; set D to always use daily data.
Change
Mode: Log Return / ROC % / Price Diff
Lookback: 1 = day-over-day. Use 5 for weekly flavor, 20–25 for monthly.
Smooth: 2 (1–2 recommended)
Normalize
Z-Score normalize: ON recommended
zLen: 252 (≈ 1 trading year on Daily)
Recommended Presets
Day-over-day, clean view
Mode=Log Return, Lookback=1, Smooth=2, Z=ON, zLen=252
Weekly flavor on Daily
Lookback=5, Smooth=3–5, Z=ON, zLen=252
Reading Tips
Zero-line crossings
Many crossings = indecisive conditions; long stays on one side = directional pressure.
Bar height & continuity
Higher/longer runs suggest stronger momentum in that direction.
With Z-score ON, height approximates strength relative to the period’s standard deviation.
Input Parameters
Use chart symbol as baseline (bool) – ON uses current chart symbol; OFF uses Baseline symbol.
Baseline symbol (symbol) – e.g., TVC:NI225, your TOPIX code, etc.
Index timeframe (timeframe) – blank = same as chart; or specify (e.g., D).
Mode (string) – Log Return / ROC % / Price Diff.
Lookback (int) – bars back for comparison.
Smooth (int) – EMA smoothing length.
Z-Score normalize (bool) – ON to standardize.
zLen (int) – length for z-score (e.g., 252).
Disclaimer
For informational/educational purposes only. Not financial advice.
Behavior can vary by data vendor, symbol, and timeframe.
概要(What it does)
基準インデックスの変化率をヒストグラムで可視化します。
緑=正の変化率、赤=負の変化率。
価格チャートとは別パネル(overlay=false)で、上昇/下落の勢いを視覚的に把握できます。
特長
基準の切替:デフォルトは TVC:NI225(日経225)。任意のシンボルや現在のチャート銘柄を基準に選択可能。
変化率の定義:Log Return(デフォルト)/ROC %/Price Diff を選択。
軽い平滑化:EMAでノイズを抑え、視認性を向上。
任意の標準化(Zスコア):スケールを整え、期間や銘柄を跨いだ比較がしやすくなります。
使い方(Step by step)
目的のチャートを開く(例:日足)。
本インジケーターを追加。
設定(⚙)で必要に応じて調整:
Baseline
Use chart symbol as baseline:ONで現在のチャート銘柄を基準に。OFFで Baseline symbol を使用。
Baseline symbol:例)TVC:NI225、TOPIX のコードなど。
Index timeframe:空欄=チャートと同じ。固定したい場合は D などを指定。
Change
Mode:Log Return/ROC %/Price Diff
Lookback:1(前日比)。5で週、20〜25で月の勢い。
Smooth:2(1〜2が目安)
Normalize
Z-Score normalize:ON 推奨
zLen:252(日足で約1年)
推奨プリセット
前日比の方向を素直に観察
Mode=Log Return / Lookback=1 / Smooth=2 / Z=ON / zLen=252
“週の勢い”を日足で眺める
Lookback=5 / Smooth=3〜5 / Z=ON / zLen=252
読み方のヒント
ゼロラインの跨ぎ:跨ぎが多い=方向が定まりにくい。片側滞在が続く=一方向の圧力が強い。
棒の高さ・連続性:高く長く続くほど、その方向の勢いが強いことを示唆。
ZスコアON:高さは期間内の標準偏差に対する強さの目安になります。
入力パラメーター一覧
Use chart symbol as baseline(bool)
ON:現在のチャート銘柄を基準に。OFF:Baseline symbol を使用。
Baseline symbol(symbol)
例:TVC:NI225、TOPIXのコード 等。
Index timeframe(timeframe)
空欄=チャートと同じ。固定表示したいTFを指定可能(例:D)。
Mode(string)
Log Return / ROC % / Price Diff。
Lookback(int)
何本前と比較するか。
Smooth(int)
EMA平滑の長さ。
Z-Score normalize(bool)
ONで標準化。
zLen(int)
標準化に使う期間(例:252)。
免責事項
本インジケーターは情報提供・教育目的です。投資判断はご自身の責任で行ってください。
データ仕様や銘柄特性により挙動が異なる場合があります。
Plots the change rate of a baseline index as a histogram in a separate pane (overlay=false).
Green bars = positive change, red bars = negative change.
Designed to make the market’s upward/downward momentum easy to read at a glance.
Highlights
Flexible baseline
Default: TVC:NI225 (Nikkei 225). You can also use any symbol or the current chart symbol as the baseline.
Selectable change definition
Log Return (default)
ROC % (percent change)
Price Diff (absolute price difference)
Light smoothing
EMA-based smoothing to reduce noise.
Optional z-score normalization
Standardizes scale to aid comparison across periods/symbols.
How to Use
Open the chart (e.g., Daily).
Add the indicator.
In Settings (⚙), adjust as needed:
Baseline
Use chart symbol as baseline: ON to use the current chart symbol; OFF to use Baseline symbol.
Baseline symbol: e.g., TVC:NI225 (or your TOPIX code, etc.).
Index timeframe: leave blank to follow the chart; set D to always use daily data.
Change
Mode: Log Return / ROC % / Price Diff
Lookback: 1 = day-over-day. Use 5 for weekly flavor, 20–25 for monthly.
Smooth: 2 (1–2 recommended)
Normalize
Z-Score normalize: ON recommended
zLen: 252 (≈ 1 trading year on Daily)
Recommended Presets
Day-over-day, clean view
Mode=Log Return, Lookback=1, Smooth=2, Z=ON, zLen=252
Weekly flavor on Daily
Lookback=5, Smooth=3–5, Z=ON, zLen=252
Reading Tips
Zero-line crossings
Many crossings = indecisive conditions; long stays on one side = directional pressure.
Bar height & continuity
Higher/longer runs suggest stronger momentum in that direction.
With Z-score ON, height approximates strength relative to the period’s standard deviation.
Input Parameters
Use chart symbol as baseline (bool) – ON uses current chart symbol; OFF uses Baseline symbol.
Baseline symbol (symbol) – e.g., TVC:NI225, your TOPIX code, etc.
Index timeframe (timeframe) – blank = same as chart; or specify (e.g., D).
Mode (string) – Log Return / ROC % / Price Diff.
Lookback (int) – bars back for comparison.
Smooth (int) – EMA smoothing length.
Z-Score normalize (bool) – ON to standardize.
zLen (int) – length for z-score (e.g., 252).
Disclaimer
For informational/educational purposes only. Not financial advice.
Behavior can vary by data vendor, symbol, and timeframe.
概要(What it does)
基準インデックスの変化率をヒストグラムで可視化します。
緑=正の変化率、赤=負の変化率。
価格チャートとは別パネル(overlay=false)で、上昇/下落の勢いを視覚的に把握できます。
特長
基準の切替:デフォルトは TVC:NI225(日経225)。任意のシンボルや現在のチャート銘柄を基準に選択可能。
変化率の定義:Log Return(デフォルト)/ROC %/Price Diff を選択。
軽い平滑化:EMAでノイズを抑え、視認性を向上。
任意の標準化(Zスコア):スケールを整え、期間や銘柄を跨いだ比較がしやすくなります。
使い方(Step by step)
目的のチャートを開く(例:日足)。
本インジケーターを追加。
設定(⚙)で必要に応じて調整:
Baseline
Use chart symbol as baseline:ONで現在のチャート銘柄を基準に。OFFで Baseline symbol を使用。
Baseline symbol:例)TVC:NI225、TOPIX のコードなど。
Index timeframe:空欄=チャートと同じ。固定したい場合は D などを指定。
Change
Mode:Log Return/ROC %/Price Diff
Lookback:1(前日比)。5で週、20〜25で月の勢い。
Smooth:2(1〜2が目安)
Normalize
Z-Score normalize:ON 推奨
zLen:252(日足で約1年)
推奨プリセット
前日比の方向を素直に観察
Mode=Log Return / Lookback=1 / Smooth=2 / Z=ON / zLen=252
“週の勢い”を日足で眺める
Lookback=5 / Smooth=3〜5 / Z=ON / zLen=252
読み方のヒント
ゼロラインの跨ぎ:跨ぎが多い=方向が定まりにくい。片側滞在が続く=一方向の圧力が強い。
棒の高さ・連続性:高く長く続くほど、その方向の勢いが強いことを示唆。
ZスコアON:高さは期間内の標準偏差に対する強さの目安になります。
入力パラメーター一覧
Use chart symbol as baseline(bool)
ON:現在のチャート銘柄を基準に。OFF:Baseline symbol を使用。
Baseline symbol(symbol)
例:TVC:NI225、TOPIXのコード 等。
Index timeframe(timeframe)
空欄=チャートと同じ。固定表示したいTFを指定可能(例:D)。
Mode(string)
Log Return / ROC % / Price Diff。
Lookback(int)
何本前と比較するか。
Smooth(int)
EMA平滑の長さ。
Z-Score normalize(bool)
ONで標準化。
zLen(int)
標準化に使う期間(例:252)。
免責事項
本インジケーターは情報提供・教育目的です。投資判断はご自身の責任で行ってください。
データ仕様や銘柄特性により挙動が異なる場合があります。
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.