OPEN-SOURCE SCRIPT

Tokyo Range Stat [20-Day Avg]

219
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軸オフセット)や文字サイズを自由にカスタマイズ可能です。

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.