OPEN-SOURCE SCRIPT
Cập nhật EMA + ATR PRO Ultimate Engine

📌 EMA + ATR PRO Ultimate Engine
EMA + ATR PRO Ultimate Engine is a trend-following and structure-based signal indicator designed to provide clean, non-redundant entries while avoiding signal noise and overtrading.
This script combines three core elements:
ATR-based dynamic trend (trailing structure)
EMA directional filtering
Market structure break logic (swing highs/lows)
The result is a balanced system that delivers early yet controlled entries, suitable for both intraday and swing trading.
⚙️ How It Works
1. ATR Trend Engine
The indicator uses an ATR-based trailing level to define the current trend:
Price above trail → bullish bias
Price below trail → bearish bias
This allows the system to adapt to market volatility instead of relying on static averages.
2. EMA Trend Filter
Optional EMA filters (1 or 2 EMAs) are used to confirm directional bias:
Price must align with EMA(s) for signals to trigger
Helps reduce noise in ranging conditions
3. Structure Break Entries
Signals are generated when price breaks previous swing levels:
Break of previous high → BUY
Break of previous low → SELL
This ensures entries are based on actual market structure shifts, not just indicator crossings.
🚀 Key Features
✅ Flip-Based Signal System
Only one primary signal per trend direction is allowed:
After a BUY → no additional BUY signals until a SELL appears
Prevents overtrading and signal clutter
⚡ Fast Entry Mode
Uses high/low breakout (intrabar detection)
Signals are confirmed at candle close
Eliminates pivot delay while remaining non-repainting
🔁 Controlled Re-entry System (Optional)
When enabled:
Allows additional entries only after a pullback (HL/LH)
Limited to one re-entry per pullback
Avoids repetitive signals during strong trends
🔒 No Repainting
All signals are confirmed on candle close (optional toggle)
No future data is used
🎯 Inputs Overview
EMA Filters → Enable/disable directional confirmation
ATR Settings → Adjust sensitivity to volatility
Fast Mode → Faster vs more conservative entries
Re-entry Mode → Enable/disable continuation entries
Signal After Close → Confirm signals only after candle close
📊 Best Use Cases
Trending markets (Forex, Indices, Gold, Oil)
Intraday trading (5m–15m) with Fast Mode
Swing trading (1H+) with Fast Mode OFF
⚠️ Notes
This indicator is not a standalone trading system
It should be used in combination with:
key levels (support/resistance)
higher timeframe bias
risk management rules
💡 Summary
EMA + ATR PRO Ultimate Engine is designed to:
Reduce signal noise
Eliminate duplicate entries
Provide structured, rule-based signals
It offers a flexible balance between early entries and signal quality, making it suitable for traders who value both precision and discipline.
EMA + ATR PRO Ultimate Engine is a trend-following and structure-based signal indicator designed to provide clean, non-redundant entries while avoiding signal noise and overtrading.
This script combines three core elements:
ATR-based dynamic trend (trailing structure)
EMA directional filtering
Market structure break logic (swing highs/lows)
The result is a balanced system that delivers early yet controlled entries, suitable for both intraday and swing trading.
⚙️ How It Works
1. ATR Trend Engine
The indicator uses an ATR-based trailing level to define the current trend:
Price above trail → bullish bias
Price below trail → bearish bias
This allows the system to adapt to market volatility instead of relying on static averages.
2. EMA Trend Filter
Optional EMA filters (1 or 2 EMAs) are used to confirm directional bias:
Price must align with EMA(s) for signals to trigger
Helps reduce noise in ranging conditions
3. Structure Break Entries
Signals are generated when price breaks previous swing levels:
Break of previous high → BUY
Break of previous low → SELL
This ensures entries are based on actual market structure shifts, not just indicator crossings.
🚀 Key Features
✅ Flip-Based Signal System
Only one primary signal per trend direction is allowed:
After a BUY → no additional BUY signals until a SELL appears
Prevents overtrading and signal clutter
⚡ Fast Entry Mode
Uses high/low breakout (intrabar detection)
Signals are confirmed at candle close
Eliminates pivot delay while remaining non-repainting
🔁 Controlled Re-entry System (Optional)
When enabled:
Allows additional entries only after a pullback (HL/LH)
Limited to one re-entry per pullback
Avoids repetitive signals during strong trends
🔒 No Repainting
All signals are confirmed on candle close (optional toggle)
No future data is used
🎯 Inputs Overview
EMA Filters → Enable/disable directional confirmation
ATR Settings → Adjust sensitivity to volatility
Fast Mode → Faster vs more conservative entries
Re-entry Mode → Enable/disable continuation entries
Signal After Close → Confirm signals only after candle close
📊 Best Use Cases
Trending markets (Forex, Indices, Gold, Oil)
Intraday trading (5m–15m) with Fast Mode
Swing trading (1H+) with Fast Mode OFF
⚠️ Notes
This indicator is not a standalone trading system
It should be used in combination with:
key levels (support/resistance)
higher timeframe bias
risk management rules
💡 Summary
EMA + ATR PRO Ultimate Engine is designed to:
Reduce signal noise
Eliminate duplicate entries
Provide structured, rule-based signals
It offers a flexible balance between early entries and signal quality, making it suitable for traders who value both precision and discipline.
Phát hành các Ghi chú
🔔 Alerts AddedThis script now includes fully integrated alert conditions for trading signals.
You can receive notifications for:
Primary BUY / SELL signals
Re-entry signals (BUY+ / SELL+)
Combined signals (all entries)
Alerts respect the “Signal After Candle Close” setting, ensuring reliable, non-repainting notifications when enabled.
Perfect for automation, mobile notifications, and real-time execution.
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.
Free telegram channel t.me/alexmasterforex
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.
Free telegram channel t.me/alexmasterforex
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.