OPEN-SOURCE SCRIPT
Tokyo Range Stat [20-Day Avg]

English Version Overview
[Overview] Tokyo Range Stat [20-Day Avg]
This Pine Script (v5) indicator tracks the Tokyo Session Range (09:00 - 15:00 JST) in real time and compares today's range with the historical average range over a customizable period (default: 20 days).
[Key Features]
- Real-time Range Calculation: Continuously calculates today's session high-to-low range in pips as the market moves.
- Historical Average Comparison: Stores completed session ranges using dynamic arrays to measure today's performance against the multi-day average.
- Dynamic Visual Alert:
- Green: Today's range is within the normal statistical threshold (0.5x to 1.5x of the average).
- Red: Today's range is out of the normal threshold (unusually quiet or high volatility).
- Bilingual Support: Toggle between Japanese and English text seamlessly via the script settings.
- Flexible Chart Placement: Easily adjust text position (bar offset), font sizes, and alert colors directly from the input panel.
日本語版概要
【概要】Tokyo Range Stat [20-Day Avg]
本インジケーターは、FX市場における東京セッション(09:00〜15:00 JST)の値幅(レンジ幅)をリアルタイムで追跡し、過去指定日数(デフォルト: 20日間)の平均値幅と比較表示するPine Script(v5)インジケーターです。
【主な特徴】
- リアルタイムレンジ計算: 当日の東京セッションの高値と安値からリアルタイムにレンジ幅(pips)を計算します。
- 20日移動平均値幅との比較: 過去20日間の確定レンジを配列で保持し、平均値と本日の値幅を同一ラベル内に表示します。
- 動的ステータスカラー:
- 今日のレンジが過去平均の 0.5倍〜1.5倍以内(正常範囲) の場合: 緑色
- それ以外(ボラティリティ低下または急拡大)の場合: 赤色
- 多言語対応: 設定画面から「日本語」と「English」をワンタップで切り替え可能です。
- 位置オフセット調整: チャート右端のバーからの位置(X軸オフセット)や文字サイズを自由にカスタマイズ可能です。
[Overview] Tokyo Range Stat [20-Day Avg]
This Pine Script (v5) indicator tracks the Tokyo Session Range (09:00 - 15:00 JST) in real time and compares today's range with the historical average range over a customizable period (default: 20 days).
[Key Features]
- Real-time Range Calculation: Continuously calculates today's session high-to-low range in pips as the market moves.
- Historical Average Comparison: Stores completed session ranges using dynamic arrays to measure today's performance against the multi-day average.
- Dynamic Visual Alert:
- Green: Today's range is within the normal statistical threshold (0.5x to 1.5x of the average).
- Red: Today's range is out of the normal threshold (unusually quiet or high volatility).
- Bilingual Support: Toggle between Japanese and English text seamlessly via the script settings.
- Flexible Chart Placement: Easily adjust text position (bar offset), font sizes, and alert colors directly from the input panel.
日本語版概要
【概要】Tokyo Range Stat [20-Day Avg]
本インジケーターは、FX市場における東京セッション(09:00〜15:00 JST)の値幅(レンジ幅)をリアルタイムで追跡し、過去指定日数(デフォルト: 20日間)の平均値幅と比較表示するPine Script(v5)インジケーターです。
【主な特徴】
- リアルタイムレンジ計算: 当日の東京セッションの高値と安値からリアルタイムにレンジ幅(pips)を計算します。
- 20日移動平均値幅との比較: 過去20日間の確定レンジを配列で保持し、平均値と本日の値幅を同一ラベル内に表示します。
- 動的ステータスカラー:
- 今日のレンジが過去平均の 0.5倍〜1.5倍以内(正常範囲) の場合: 緑色
- それ以外(ボラティリティ低下または急拡大)の場合: 赤色
- 多言語対応: 設定画面から「日本語」と「English」をワンタップで切り替え可能です。
- 位置オフセット調整: チャート右端のバーからの位置(X軸オフセット)や文字サイズを自由にカスタマイズ可能です。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。