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. קרא עוד ב־תנאי השימוש.