Exp_Waddah_Attar_Trend
This EA implements the Waddah Attar Trend indicator-based trading strategy, which combines MACD and Bollinger Bands to identify trend direction and strength. It enters long positions when the indicator shows a bullish trend with sufficient momentum and short positions for bearish trends, exiting when the trend weakens or reverses. The EA applies a systematic trend-following approach with configurable parameters for sensitivity and risk management.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | -5.29% | -4.61% | 8.68% | 144 | 44.80% | — | — | — | — | Custom indicator approximated |
| GBPUSD | +1.96% | +1.70% | 4.33% | 144 | 47.60% | — | — | — | — | Custom indicator approximated |
| USDJPY | +1.68% | +1.46% | 4.78% | 144 | 59.40% | — | — | — | — | Custom indicator approximated |
| XAUUSD | -100.00% | -100.00% | 100.00% | 57 | 56.10% | — | — | — | — | Custom indicator approximated |
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Blow-up risk: No blow-up pattern found
None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
The Waddah Attar Trend strategy's core concept combines MACD momentum signals with Bollinger Bands volatility to create a comprehensive trend assessment indicator. For entry conditions, a long position is opened when the histogram is positive and exceeds a configurable threshold, and a short position when negative and exceeding the threshold, ensuring trades only occur when trends are well-established. Exit conditions include closing positions when the trend weakens (histogram shrinks below threshold) or when a reversal signal appears. Position sizing uses a fixed lot approach where the user can set the trading volume through input parameters. Money management provides stop loss and take profit settings, but overall relies on trend persistence for profit generation, lacking a dynamic position adjustment mechanism. The strategy performs well in strong trending markets but may produce frequent false signals leading to consecutive losses in ranging or choppy markets.
Strengths
- Dual confirmation from MACD and Bollinger Bands provides relatively reliable trend identification
- Adjustable sensitivity parameter allows adaptation to different market conditions
- Clear and understandable strategy logic with intuitive parameters
- Only enters when trend is well-established, reducing false signals in ranging markets
- Supports stop loss and take profit settings with basic risk control
Weaknesses
- Fixed lot sizing lacks dynamic position management, cannot auto-adjust based on account equity
- Default stop loss and take profit are zero, posing unlimited risk for inexperienced users
- Trend following strategy prone to frequent losses in ranging or choppy markets
- Lacks new bar check mechanism, potentially opening multiple positions on the same bar
- No spread filter, leading to high entry costs in wide spread environments
Possible improvements
- Add dynamic position sizing that auto-adjusts lot size based on account balance and ATR
- Implement new bar check and time filter mechanisms to prevent duplicate trades and entries during inactive sessions
- Incorporate spread filter and ranging market detection to reduce trading under unfavorable conditions
Risk assessment
Overall risk: Medium
- Default stop loss and take profit are zero, presenting unlimited loss risk
- Lacks new bar check, potentially opening duplicate positions on the same bar
- Trend following strategy may produce consecutive losses in ranging markets
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
InpLotSize | 0.1 | Lot size per trade |
InpStopLoss | 0 | Stop loss in points, 0 means no stop loss |
InpTakeProfit | 0 | Take profit in points, 0 means no take profit |
InpSensitivity | 150 | Trend sensitivity threshold, controls entry signal strength |
InpMACD_FastEMA | 12 | MACD fast EMA period |
InpMACD_SlowEMA | 26 | MACD slow EMA period |
InpMACD_SMA | 9 | MACD signal SMA period |
InpBB_Period | 20 | Bollinger Bands period |
InpBB_Deviation | 2.0 | Bollinger Bands standard deviation multiplier |
InpMagicNumber | 123456 | EA magic number for identifying orders |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.