OPEN-SOURCE SCRIPT
已更新 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.
版本注释
🔔 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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Free telegram channel t.me/alexmasterforex
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Free telegram channel t.me/alexmasterforex
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。