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.
Release Note
🔔 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 อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน