OPEN-SOURCE SCRIPT
Atualizado Koda FVG

Koda FVG
What This Indicator Does
This indicator combines:
• 📈 Higher Timeframe (HTF) Trend
• ⚡ 1-Minute Fakeouts (liquidity sweeps)
• 🟡 5-Minute Fair Value Gaps (FVG)
• 🎯 Trade setup boxes (TP + SL)
👉 It finds high-probability entries aligned with trend + imbalance + liquidity
________________________________________
🧩 What You See on the Chart
🟡 Yellow FVG Zone
• Yellow box = imbalance (FVG)
• Top & bottom yellow lines = FVG boundaries
👉 This is where price is likely to react
________________________________________
🟡 Yellow Arrows
• 🔼 Up arrow = Buy setup
• 🔽 Down arrow = Sell setup
👉 Only appears when ALL conditions align:
• HTF trend
• 1m fakeout
• FVG interaction
________________________________________
🟩🟥 Trade Box
• Appears after signal
• Shows:
o Entry zone
o Stop Loss (invalidation)
o Take Profit (previous day high/low)
________________________________________
📊 Dashboard (Blue & Yellow)
Full Mode:
• HTF Trend
• 1M Fakeout
• Active FVG
• HTF timeframe
Compact Mode:
• HTF Trend
• Active FVG
________________________________________
⚙️ Settings Explained
🔹 Higher Timeframe (HTF)
• Controls overall trend bias
• Examples:
o 15m → scalping
o 1H → intraday
o 4H → swing
________________________________________
🔹 Fakeout Timeframe (1M)
• Detects liquidity sweeps
• DO NOT change unless advanced
________________________________________
🔹 FVG Timeframe (5M)
• Finds imbalance zones
• 5M is ideal for most setups
________________________________________
🔹 Require Price Inside FVG
• ON → stricter, higher quality signals
• OFF → more signals, lower accuracy
________________________________________
🔹 FVG Box Transparency
• Controls how visible the yellow zone is
o 0 = solid yellow
o 100 = invisible
👉 Recommended: 70–85
________________________________________
🔹 Dashboard Controls
• Position: anywhere on chart (including center)
• Size: XS → Large
• Compact mode: minimal display
• Toggle ON/OFF
________________________________________
🎯 How to Trade It
🟢 BUY Setup
Conditions:
1. HTF = Bullish
2. Price sweeps lows (fakeout)
3. Price enters bullish FVG
4. Yellow arrow appears
Entry:
• On arrow or slight pullback into FVG
Stop Loss:
• Below invalidation (box bottom)
Take Profit:
• Previous Day High
________________________________________
🔴 SELL Setup
Conditions:
1. HTF = Bearish
2. Price sweeps highs
3. Price enters bearish FVG
4. Yellow arrow appears
Entry:
• On arrow or retrace into FVG
Stop Loss:
• Above invalidation (box top)
Take Profit:
• Previous Day Low
________________________________________
🔥 Best Strategy (Pro Tip)
Use this flow:
1. Identify HTF trend (dashboard)
2. Wait for liquidity sweep (fakeout)
3. Watch price return into FVG
4. Enter on signal arrow
5. Target previous day levels
👉 This is Smart Money Concepts (SMC) logic
________________________________________
⚠️ Important Notes
❌ No FVG showing?
• No recent 5M imbalance
• Or it was already filled
________________________________________
❌ Only 1 yellow line?
• FVG is very small → lines overlap
• (Now fixed visually with spacing)
________________________________________
❌ No signals?
• Conditions are strict by design
• Turn OFF “Require Price Inside FVG” for more signals
________________________________________
🧠 What This Indicator Is REALLY Doing
It finds:
👉 Trend + Liquidity + Imbalance = Entry
• Trend = direction
• Fakeout = trap / liquidity grab
• FVG = institutional entry zone
________________________________________
🚀 Best Use Case
This works best for:
• Nasdaq (NQ)
• ES / futures
• Forex majors
• High-liquidity markets
________________________________________
🔑 Final Tip
👉 Don’t trade every signal
👉 Trade signals that occur at key levels:
• session highs/lows
• previous day levels
• strong structure zones
What This Indicator Does
This indicator combines:
• 📈 Higher Timeframe (HTF) Trend
• ⚡ 1-Minute Fakeouts (liquidity sweeps)
• 🟡 5-Minute Fair Value Gaps (FVG)
• 🎯 Trade setup boxes (TP + SL)
👉 It finds high-probability entries aligned with trend + imbalance + liquidity
________________________________________
🧩 What You See on the Chart
🟡 Yellow FVG Zone
• Yellow box = imbalance (FVG)
• Top & bottom yellow lines = FVG boundaries
👉 This is where price is likely to react
________________________________________
🟡 Yellow Arrows
• 🔼 Up arrow = Buy setup
• 🔽 Down arrow = Sell setup
👉 Only appears when ALL conditions align:
• HTF trend
• 1m fakeout
• FVG interaction
________________________________________
🟩🟥 Trade Box
• Appears after signal
• Shows:
o Entry zone
o Stop Loss (invalidation)
o Take Profit (previous day high/low)
________________________________________
📊 Dashboard (Blue & Yellow)
Full Mode:
• HTF Trend
• 1M Fakeout
• Active FVG
• HTF timeframe
Compact Mode:
• HTF Trend
• Active FVG
________________________________________
⚙️ Settings Explained
🔹 Higher Timeframe (HTF)
• Controls overall trend bias
• Examples:
o 15m → scalping
o 1H → intraday
o 4H → swing
________________________________________
🔹 Fakeout Timeframe (1M)
• Detects liquidity sweeps
• DO NOT change unless advanced
________________________________________
🔹 FVG Timeframe (5M)
• Finds imbalance zones
• 5M is ideal for most setups
________________________________________
🔹 Require Price Inside FVG
• ON → stricter, higher quality signals
• OFF → more signals, lower accuracy
________________________________________
🔹 FVG Box Transparency
• Controls how visible the yellow zone is
o 0 = solid yellow
o 100 = invisible
👉 Recommended: 70–85
________________________________________
🔹 Dashboard Controls
• Position: anywhere on chart (including center)
• Size: XS → Large
• Compact mode: minimal display
• Toggle ON/OFF
________________________________________
🎯 How to Trade It
🟢 BUY Setup
Conditions:
1. HTF = Bullish
2. Price sweeps lows (fakeout)
3. Price enters bullish FVG
4. Yellow arrow appears
Entry:
• On arrow or slight pullback into FVG
Stop Loss:
• Below invalidation (box bottom)
Take Profit:
• Previous Day High
________________________________________
🔴 SELL Setup
Conditions:
1. HTF = Bearish
2. Price sweeps highs
3. Price enters bearish FVG
4. Yellow arrow appears
Entry:
• On arrow or retrace into FVG
Stop Loss:
• Above invalidation (box top)
Take Profit:
• Previous Day Low
________________________________________
🔥 Best Strategy (Pro Tip)
Use this flow:
1. Identify HTF trend (dashboard)
2. Wait for liquidity sweep (fakeout)
3. Watch price return into FVG
4. Enter on signal arrow
5. Target previous day levels
👉 This is Smart Money Concepts (SMC) logic
________________________________________
⚠️ Important Notes
❌ No FVG showing?
• No recent 5M imbalance
• Or it was already filled
________________________________________
❌ Only 1 yellow line?
• FVG is very small → lines overlap
• (Now fixed visually with spacing)
________________________________________
❌ No signals?
• Conditions are strict by design
• Turn OFF “Require Price Inside FVG” for more signals
________________________________________
🧠 What This Indicator Is REALLY Doing
It finds:
👉 Trend + Liquidity + Imbalance = Entry
• Trend = direction
• Fakeout = trap / liquidity grab
• FVG = institutional entry zone
________________________________________
🚀 Best Use Case
This works best for:
• Nasdaq (NQ)
• ES / futures
• Forex majors
• High-liquidity markets
________________________________________
🔑 Final Tip
👉 Don’t trade every signal
👉 Trade signals that occur at key levels:
• session highs/lows
• previous day levels
• strong structure zones
Notas de Lançamento
Koda Fair Value Gap - Smart Money Alignment IndicatorKoda FVG is a precision-based trading tool designed to identify high-probability entry opportunities by aligning three core market principles:
Trend + Liquidity + Imbalance
Unlike traditional indicators that rely on lagging signals, Koda FVG integrates multi-timeframe analysis, liquidity behavior, and institutional price inefficiencies to provide a structured, rule-based approach to market entries.
________________________________________
What Makes Koda FVG Unique
Koda FVG is not just an FVG indicator — it is a confluence engine.
It filters signals through:
• Higher Timeframe Trend (HTF bias)
• Lower Timeframe Liquidity Sweeps (1-minute fakeouts)
• 5-Minute Fair Value Gaps (institutional imbalances)
Signals are only generated when all three conditions align, dramatically reducing noise and improving trade quality.
________________________________________
How It Works (Core Logic)
1. Higher Timeframe Trend Detection
The script uses an EMA-based structure on a user-defined timeframe to determine directional bias:
• Price above rising EMA → Bullish trend
• Price below falling EMA → Bearish trend
This ensures trades are always taken with the dominant market direction
________________________________________
2. Liquidity Sweep (Fakeout Detection)
On the 1-minute timeframe, the script identifies:
• Breaks of recent highs/lows
• Followed by immediate rejection
This represents liquidity grabs, where retail traders are trapped and institutions reposition
________________________________________
3. Fair Value Gap (FVG) Identification
On the 5-minute timeframe, the script detects:
• Bullish FVG: when price leaves an upward imbalance
• Bearish FVG: when price leaves a downward imbalance
These zones represent inefficiencies where price is likely to return
________________________________________
4. Confluence-Based Signal Generation
A signal is printed only when:
• HTF trend is aligned
• A liquidity sweep occurs
• Price interacts with an active FVG
This creates a high-confidence trade setup, not just a signal
________________________________________
Visual Elements
Fair Value Gap Zone
• Yellow box = imbalance area
• Yellow lines = FVG boundaries
This is your institutional entry zone
________________________________________
Signal Arrows
• 🔼 Bullish setup
• 🔽 Bearish setup
Appears only when:
• Trend + Liquidity + FVG align
________________________________________
🟩🟥 Trade Setup Box
Automatically plotted after a signal:
• Entry context
• Stop Loss (invalidation level)
• Take Profit (previous day high/low)
Provides a complete trade framework instantly
________________________________________
Dashboard (Blue & Yellow Theme)
Full Mode:
• HTF Trend
• Fakeout Status
• Active FVG
• Selected HTF
Compact Mode:
• HTF Trend
• Active FVG
Fully customizable:
• Position (including center placements)
• Size (XS → Large)
• Toggle ON/OFF
________________________________________
How to Use Koda FVG
🟢 Buy Setup
1. HTF trend is bullish
2. Price sweeps lows (liquidity grab)
3. Price enters bullish FVG
4. Signal arrow prints
• Entry: inside or near FVG
• Stop: below invalidation
• Target: previous day high
________________________________________
🔴 Sell Setup
1. HTF trend is bearish
2. Price sweeps highs
3. Price enters bearish FVG
4. Signal arrow prints
• Entry: inside or near FVG
• Stop: above invalidation
• Target: previous day low
________________________________________
Underlying Trading Concept
Koda FVG is built on Smart Money Concepts (SMC):
• Trend → determines direction
• Liquidity sweep → identifies manipulation
• FVG → reveals institutional entry zones
The indicator systematically finds:
where institutions likely entered, after trapping retail traders, in the direction of the trend
________________________________________
Important Notes
• No FVG visible → no recent imbalance or it has been filled
• Small FVGs → may appear visually compressed (auto-adjusted for clarity)
• Fewer signals → by design (focus on quality over quantity)
________________________________________
Best Use Cases
Koda FVG performs best in:
• Nasdaq (NQ)
• Gold
• S&P 500 (ES)
• Forex majors
• Any high-liquidity market
________________________________________
Final Insight
Most traders look for signals.
Koda FVG identifies conditions.
It doesn’t tell you what might happen
It shows you where the odds are already stacked
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.