PROTECTED SOURCE SCRIPT
Chandelier Exit + FVG + EMAs

🏷️ Title:
Chandelier Exit + Fair Value Gaps (3-Candle Logic) + Customizable EMAs
📝 Description (TradingView format):
Overview
This script combines the original Chandelier Exit indicator by Alex Orekhov (everget) with a precision Fair Value Gap (FVG) detector based on a 3-candle formation logic. The script also integrates three customizable Exponential Moving Averages (EMAs) for trend filtering and visual support.
🔍 What’s Unique
Unlike standard FVG indicators that mark gaps only visually, this script filters and signals only when the FVG aligns with the active market direction based on the Chandelier Exit.
✅ Fair Value Gaps are drawn starting from the first candle of the pattern (candle 1), not the confirming one.
✅ Signals (BUY/SELL) are shown on the third candle — when the FVG is confirmed and direction is aligned.
✅ Optional filter: close must be above/below a customizable EMA (default: EMA 150).
✅ Includes automatic or persistent FVG rectangles (configurable via input).
✅ Clean visuals with color-coded gaps and real-time signals.
🔧 How It Works
FVG Detection Logic (3 candles):
Bullish FVG:
Candle 3 low > Candle 1 high
FVG drawn from Candle 1: top = Candle 3 low, bottom = Candle 1 high
BUY signal if aligned with Chandelier Long
Bearish FVG:
Candle 3 high < Candle 1 low
FVG drawn from Candle 1: top = Candle 1 low, bottom = Candle 3 high
SELL signal if aligned with Chandelier Short
Entry Filter:
Signals are only triggered if:
Chandelier Exit direction matches the FVG direction
(Optional) Close is above/below the EMA 150
Signal appears on the same bar where the FVG is confirmed
⚙️ Inputs:
ATR Period & Multiplier (for Chandelier)
Use Close for Extremes (Chandelier logic)
EMA Fast, Mid, and Main (for visual and optional signal filtering)
Number of candles for FVG detection
Extension length for FVG rectangles
Toggle: Keep or remove older FVGs
Toggle: Await bar confirmation
🛠 Recommended Use:
Works best on intraday timeframes for scalping or continuation setups
Combine with support/resistance or liquidity zones for best results
Great as a confirmation tool in momentum strategies
⚠️ Important Notes:
This script does not repaint
The Chandelier Exit logic is based on the exact implementation by everget
You can enable alerts for directional change or FVG confirmation signals
Happy Trading!!!
Chandelier Exit + Fair Value Gaps (3-Candle Logic) + Customizable EMAs
📝 Description (TradingView format):
Overview
This script combines the original Chandelier Exit indicator by Alex Orekhov (everget) with a precision Fair Value Gap (FVG) detector based on a 3-candle formation logic. The script also integrates three customizable Exponential Moving Averages (EMAs) for trend filtering and visual support.
🔍 What’s Unique
Unlike standard FVG indicators that mark gaps only visually, this script filters and signals only when the FVG aligns with the active market direction based on the Chandelier Exit.
✅ Fair Value Gaps are drawn starting from the first candle of the pattern (candle 1), not the confirming one.
✅ Signals (BUY/SELL) are shown on the third candle — when the FVG is confirmed and direction is aligned.
✅ Optional filter: close must be above/below a customizable EMA (default: EMA 150).
✅ Includes automatic or persistent FVG rectangles (configurable via input).
✅ Clean visuals with color-coded gaps and real-time signals.
🔧 How It Works
FVG Detection Logic (3 candles):
Bullish FVG:
Candle 3 low > Candle 1 high
FVG drawn from Candle 1: top = Candle 3 low, bottom = Candle 1 high
BUY signal if aligned with Chandelier Long
Bearish FVG:
Candle 3 high < Candle 1 low
FVG drawn from Candle 1: top = Candle 1 low, bottom = Candle 3 high
SELL signal if aligned with Chandelier Short
Entry Filter:
Signals are only triggered if:
Chandelier Exit direction matches the FVG direction
(Optional) Close is above/below the EMA 150
Signal appears on the same bar where the FVG is confirmed
⚙️ Inputs:
ATR Period & Multiplier (for Chandelier)
Use Close for Extremes (Chandelier logic)
EMA Fast, Mid, and Main (for visual and optional signal filtering)
Number of candles for FVG detection
Extension length for FVG rectangles
Toggle: Keep or remove older FVGs
Toggle: Await bar confirmation
🛠 Recommended Use:
Works best on intraday timeframes for scalping or continuation setups
Combine with support/resistance or liquidity zones for best results
Great as a confirmation tool in momentum strategies
⚠️ Important Notes:
This script does not repaint
The Chandelier Exit logic is based on the exact implementation by everget
You can enable alerts for directional change or FVG confirmation signals
Happy Trading!!!
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.