OPEN-SOURCE SCRIPT
Key Price Levels V1

📌 Key Price Levels V1 – FVG Confluence Tool
Key Price Levels V1 is a clean, price-action focused indicator that plots automatic key price levels and shows Fair Value Gaps (FVG / Imbalance) only when they form near those levels.
The goal is simple: reduce noise and highlight only high-probability, level-based opportunities.
This tool is designed for:
Forex
Gold (XAUUSD)
Indices (US30, NAS100, SPX, etc.)
With manual scaling control, you can adapt it to any market.
🔧 Main Features
✅ Plots 6 Key Levels
3 levels above current price
3 levels below current price
Lines extend left & right across the chart
Price labels shown on the right side (no candle overlap)
✅ Fair Value Gap (FVG / Imbalance) Detection
Shows Bullish & Bearish FVG
Filters FVGs so they appear ONLY near key levels
Keeps chart clean and focused on high-quality zones
✅ Manual Scaling Control
Toggle: Use Pip/Tick Scaling
ON → Best for Forex (inputs in pips)
OFF → Best for Gold & Indices (inputs in price/points)
✅ Customizable Inputs
Step Size (distance between levels)
Near Distance (how close FVG must be to a level)
Levels Mode: 00, 50, or Auto
Label offset (push labels to the right side)
⚙️ How to Set It Up
🔹 For Forex (EURUSD, GBPUSD, etc.)
Turn ON: Use Pip/Tick Scaling
Example settings:
Step Size = 50 → 50 pips grid
Near Distance = 20 → 20 pips filter
🔹 For Gold (XAUUSD)
Turn OFF: Use Pip/Tick Scaling
Example settings:
Step Size = 1.0
Near Distance = 0.2
🔹 For Indices (US30, NAS100, etc.)
Turn OFF: Use Pip/Tick Scaling
Example settings:
Step Size = 50 or 100
Near Distance = 10
🧠 Trading Concept (Built-in Rules)
Use this indicator as a confluence tool, not alone.
✅ Trade only New York Time: 02:30 to 07:00 (London Open)
✅ If FVG forms on a key price level → follow the trend on 5–15 min
✅ If a wick sweeps a price level → look for strong rejection
✅ If you get BPR on a price level → strong trend continuation signal
✅ If price is rejecting between two levels → wait for CISD
✅ Enter on Imbalance (FVG) → Target next price level or long wick liquidity
🎯 Best Use Case
Mark important price levels automatically
Wait for liquidity sweep / displacement
Enter using FVG near a level
Target the next key level
Keep risk tight, structure-based
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
It does not provide financial advice. Always use proper risk management and confirm with your own trading plan.
Key Price Levels V1 is a clean, price-action focused indicator that plots automatic key price levels and shows Fair Value Gaps (FVG / Imbalance) only when they form near those levels.
The goal is simple: reduce noise and highlight only high-probability, level-based opportunities.
This tool is designed for:
Forex
Gold (XAUUSD)
Indices (US30, NAS100, SPX, etc.)
With manual scaling control, you can adapt it to any market.
🔧 Main Features
✅ Plots 6 Key Levels
3 levels above current price
3 levels below current price
Lines extend left & right across the chart
Price labels shown on the right side (no candle overlap)
✅ Fair Value Gap (FVG / Imbalance) Detection
Shows Bullish & Bearish FVG
Filters FVGs so they appear ONLY near key levels
Keeps chart clean and focused on high-quality zones
✅ Manual Scaling Control
Toggle: Use Pip/Tick Scaling
ON → Best for Forex (inputs in pips)
OFF → Best for Gold & Indices (inputs in price/points)
✅ Customizable Inputs
Step Size (distance between levels)
Near Distance (how close FVG must be to a level)
Levels Mode: 00, 50, or Auto
Label offset (push labels to the right side)
⚙️ How to Set It Up
🔹 For Forex (EURUSD, GBPUSD, etc.)
Turn ON: Use Pip/Tick Scaling
Example settings:
Step Size = 50 → 50 pips grid
Near Distance = 20 → 20 pips filter
🔹 For Gold (XAUUSD)
Turn OFF: Use Pip/Tick Scaling
Example settings:
Step Size = 1.0
Near Distance = 0.2
🔹 For Indices (US30, NAS100, etc.)
Turn OFF: Use Pip/Tick Scaling
Example settings:
Step Size = 50 or 100
Near Distance = 10
🧠 Trading Concept (Built-in Rules)
Use this indicator as a confluence tool, not alone.
✅ Trade only New York Time: 02:30 to 07:00 (London Open)
✅ If FVG forms on a key price level → follow the trend on 5–15 min
✅ If a wick sweeps a price level → look for strong rejection
✅ If you get BPR on a price level → strong trend continuation signal
✅ If price is rejecting between two levels → wait for CISD
✅ Enter on Imbalance (FVG) → Target next price level or long wick liquidity
🎯 Best Use Case
Mark important price levels automatically
Wait for liquidity sweep / displacement
Enter using FVG near a level
Target the next key level
Keep risk tight, structure-based
⚠️ Disclaimer
This indicator is for educational and analytical purposes only.
It does not provide financial advice. Always use proper risk management and confirm with your own trading plan.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.