Smart Trend Breakout
- Experts
-
Muhammad Ashraf
Hello! I'm a professional algorithmic trader and MQL5 developer specializing in automated trading systems for Forex and Gold (XAUUSD). I have more than 6 years of experience in this. My focus is on developing reliable Expert Advisors that combine adaptive market analysis, intelligent trade - Versão: 1.50
🚀 Smart Trend Breakout
EMA EA MT5 is a professional Expert Advisor for MetaTrader 5 designed to trade trend continuation and breakout opportunities using a multi-EMA confirmation system combined with pivot breakout detection. The EA automatically analyzes market structure, confirms trend direction, and executes trades after candle close while applying advanced risk management and intelligent trade management.
like simple moving average crossover systems, EMA EA combines EMA trend filtering, pivot breakout confirmation, optional pullback re-entry logic, ATR-based confirmation, and optional volume filtering to reduce false signals and improve trade quality.
Key Features
-
Multi-EMA Trend Confirmation: Uses Fast EMA, Slow EMA, and long-term EMA filtering to identify high-probability market trends before opening trades.
-
Pivot Breakout Detection: Trades only after confirmed pivot breakouts, reducing false breakout entries.
-
Optional Pullback Entries: Supports additional pullback (scale-in) trades during an active trend for enhanced trend participation.
-
ATR Confirmation Filter: Uses Average True Range (ATR) to validate breakout strength and improve entry accuracy.
-
Optional Volume Filter: Additional volume confirmation can be enabled to filter weak market conditions.
-
Flexible Opposite Signal Modes:
-
Close & Reverse: Closes the current position and immediately opens a trade in the opposite direction.
-
Close Only: Closes existing positions without opening a new one.
-
Do Nothing: Keeps existing trades until Stop Loss, Take Profit, or manual closure.
-
-
Advanced Risk Management:
-
Fixed lot size mode.
-
Automatic position sizing based on account risk percentage.
-
Customizable Stop Loss and Take Profit.
-
-
Professional Trade Management:
-
Independent Stop Loss and Take Profit for every position.
-
Dynamic Trailing Stop with configurable start, distance, and step.
-
-
Market Session Protection: Automatically avoids opening or modifying trades when the trading session is closed.
-
Universal Compatibility: Works with Forex pairs, Gold (XAUUSD), Indices, Commodities, and other MT5-supported instruments.
🔔 Recommended Settings Notification
📢 Recommended Trading Settings – M5 & M15
-
Symbol: XAUUSD (Gold) Recommended
For the Smart Trend Breakout EMA, we recommend testing the EA primarily on M5 and M15 timeframes. These timeframes provide a good balance between signal frequency and trend confirmation.
Suggested starting configuration:
- ⏱️ Timeframes: M5 / M15
- 📊 Max Trades per Day: 3
- 💰 Fixed Lot: 0.01
- 🛑 Stop Loss: 500 points
- 🎯 Take Profit: 1000 points
- 🔄 Trailing Stop: ON
- 🚀 Trailing Start: 200 points
- 📏 Trailing Distance: 10 points
- ⚙️ Trailing Step: 10 points
- 🔀 Opposite Signal: Do Nothing
💡 Important: These are recommended starting settings, not guaranteed-profit settings. Results can vary depending on symbol, broker, spread, market conditions, and account size. Always test on a demo account before trading live.
Recommended Setup
-
Platform: MetaTrader 5
-
Symbol: XAUUSD (Gold) Recommended
-
Timeframe: M15 (Recommended)
-
Trade Direction: Buy & Sell
-
Account Type: ECN / Low Spread Broker
-
Minimum Deposit: Recommended $10000
-
VPS: Recommended for uninterrupted 24/7 operation.
These settings are optimized for XAUUSD (Gold) and are intended to provide stable performance when combined with proper risk management.
Always perform optimization and testing on a demo account before trading with real funds.
Input Parameters Guide
| Parameter Group | Option Name | Description |
|---|---|---|
| EMA Settings | InpEMAFastLen | Fast EMA period used for trend calculation. |
| InpEMASlowLen | Slow EMA period used for trend confirmation. | |
| InpEMA200Len | Long-term EMA filter used to identify the primary market trend. | |
| Pivot Settings | InpPivotLeft | Number of left bars used for pivot detection. |
| InpPivotRight | Number of right bars used for pivot detection. | |
| InpPullbackLookback | Number of candles used for pullback analysis. | |
| ATR Settings | InpATRLen | ATR calculation period. |
| InpATRMult | ATR multiplier used for breakout confirmation. | |
| Volume Filter | InpUseVolumeFilter | Enable or disable volume confirmation. |
| InpVolLen | Volume moving average period. | |
| InpVolMult | Volume multiplier for signal filtering. | |
| Risk Management | InpUseFixedLot | Enable fixed lot trading. |
| InpFixedLot | Fixed trading volume. | |
| InpRiskPercent | Risk percentage per trade when using automatic lot sizing. | |
| InpSLPoints | Stop Loss distance in points. | |
| InpTPPoints | Take Profit distance in points. | |
| Pullback Control | InpTradeEarlyPullbacks | Enable optional pullback entries. |
| InpMaxPullbacks | Maximum number of pullback entries during one trend. | |
| Opposite Signal | InpOppositeMode | Defines the action when an opposite signal appears. |
| Trailing Stop | InpUseTrailingStop | Enable or disable trailing stop management. |
| InpTrailingStopTarget | Profit required before trailing begins. | |
| InpTrailingStopDistance | Distance maintained by the trailing stop. | |
| InpTrailingStopStep | Minimum movement before updating the trailing stop. | |
| General | InpMagicNumber | Unique identifier for EA positions. |
| InpTradeComment | Custom trade comment. |
Note: Trading performance depends on broker execution quality, spread, and market conditions. Past performance does not guarantee future results. Always test the Expert Advisor on a demo account before using it on a live trading account. Technical support is provided through the MQL5 comments section and private messages.
