OPEN-SOURCE SCRIPT
Simple FVG - All Gaps

Simple FVG Indicator - Pure Fair Value Gap Detection
A clean, no-nonsense Fair Value Gap (FVG) script for TradingView. No filters, no overcomplication — just pure FVG detection with optional mitigation and visual control.
A clean, no-nonsense Fair Value Gap (FVG) script for TradingView. No filters, no overcomplication — just pure FVG detection with optional mitigation and visual control.
- Pure FVG Logic: Detects imbalance using only low > high[2] and high < low[2] — the original ICT definition.
No False Filters: Zero reliance on volume, RSI, moving averages, or swing structure.
Accurate Mitigation: Choose between Touch, Mid, or Full fill with correct proximal/distal logic.
Smart Extension: Indefinite (until mitigated) or Fixed Bars (visual only). - Performance Optimized: Uses arrays + max 500 boxes to prevent lag.
- Bullish FVG: Green translucent box from high[2] to low[0]
Bearish FVG: Red translucent box from low[2] to high[0] - Mitigated FVGs: Gray (or hidden) with extension stopped
How to Use:
"No fluff. Just gaps."
Add to chart
Enable Bullish/Bearish FVGs
Set Mitigation Type (Mid recommended)
Watch price react at unmitigated zones - Bullish FVG: Green translucent box from high[2] to low[0]
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน