OPEN-SOURCE SCRIPT
Daily Gap Highlighter (Partial Gaps + Age Filter)

Daily Gap Highlighter – 部分的な窓の未埋めエリアを自動描画
このインジケーターは、日足チャートにおける窓(ギャップ)を自動で検出し、
その後の値動きで一部だけ埋まった場合も、埋め残し部分だけを正確に描画するツールです。
🔍 主な特徴
日足ベースで窓を検出
上窓:当日の安値 > 前日の高値
下窓:当日の高値 < 前日の安値
部分的な窓埋めにも対応
例:窓の90%が埋まった → 残り10%だけ窓として残す
完全に埋まった窓は自動的に削除
窓の“鮮度フィルター”を搭載
指定した日数(デフォルト90日)を経過した古い窓は自動で非表示にできます。
トレンド転換ポイントの可視化に最適
未埋めギャップは多くのトレーダーが注目する価格帯であり、
サポート/レジスタンスとして高い機能を持ちます。
📈 活用例
スイングトレードでのターゲット設定
窓埋めの完了・未完了の判定
重要水平ラインとしての分析
長期的な価格メモリーの可視化
日足チャートを使うトレーダーの方にとって、
“本当に意味のある未埋め窓だけ”が残る実用的なインジケーターです。
🇺🇸 English Description (for TradingView Community)
Daily Gap Highlighter – Precise Partial Gap Visualization
This indicator automatically detects daily price gaps and visualizes them on the chart —
but with one powerful upgrade:
It keeps only the unfilled portion of the gap.
🔍 Key Features
Daily-based gap detection
Up Gap: Today’s Low > Previous High
Down Gap: Today’s High < Previous Low
Partial gap filling supported
Example: If 90% of the gap has been filled,
→ Only the remaining 10% is still shown as an active gap.
Fully filled gaps are automatically removed
Gap “age filter” included
Automatically hide gaps older than a chosen number of days (default: 90).
Great for identifying key market levels
Unfilled gaps often act as strong support/resistance zones
and are widely watched by professional traders.
📈 Use Cases
Setting targets for swing trades
Determining whether a gap is filled or partially filled
Highlighting significant horizontal price levels
Visualizing long-term market memory zones
This tool is ideal for traders who want
a clean and accurate view of meaningful unfilled gaps only.
このインジケーターは、日足チャートにおける窓(ギャップ)を自動で検出し、
その後の値動きで一部だけ埋まった場合も、埋め残し部分だけを正確に描画するツールです。
🔍 主な特徴
日足ベースで窓を検出
上窓:当日の安値 > 前日の高値
下窓:当日の高値 < 前日の安値
部分的な窓埋めにも対応
例:窓の90%が埋まった → 残り10%だけ窓として残す
完全に埋まった窓は自動的に削除
窓の“鮮度フィルター”を搭載
指定した日数(デフォルト90日)を経過した古い窓は自動で非表示にできます。
トレンド転換ポイントの可視化に最適
未埋めギャップは多くのトレーダーが注目する価格帯であり、
サポート/レジスタンスとして高い機能を持ちます。
📈 活用例
スイングトレードでのターゲット設定
窓埋めの完了・未完了の判定
重要水平ラインとしての分析
長期的な価格メモリーの可視化
日足チャートを使うトレーダーの方にとって、
“本当に意味のある未埋め窓だけ”が残る実用的なインジケーターです。
🇺🇸 English Description (for TradingView Community)
Daily Gap Highlighter – Precise Partial Gap Visualization
This indicator automatically detects daily price gaps and visualizes them on the chart —
but with one powerful upgrade:
It keeps only the unfilled portion of the gap.
🔍 Key Features
Daily-based gap detection
Up Gap: Today’s Low > Previous High
Down Gap: Today’s High < Previous Low
Partial gap filling supported
Example: If 90% of the gap has been filled,
→ Only the remaining 10% is still shown as an active gap.
Fully filled gaps are automatically removed
Gap “age filter” included
Automatically hide gaps older than a chosen number of days (default: 90).
Great for identifying key market levels
Unfilled gaps often act as strong support/resistance zones
and are widely watched by professional traders.
📈 Use Cases
Setting targets for swing trades
Determining whether a gap is filled or partially filled
Highlighting significant horizontal price levels
Visualizing long-term market memory zones
This tool is ideal for traders who want
a clean and accurate view of meaningful unfilled gaps only.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน