EA-16409 · Trend Following

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

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4, D1
IndicatorsMACD, Bollinger Bands, Waddah Attar Trend
Author—

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-5.29%-4.61%8.68%14444.80%————Custom indicator approximated
GBPUSD+1.96%+1.70%4.33%14447.60%————Custom indicator approximated
USDJPY+1.68%+1.46%4.78%14459.40%————Custom indicator approximated
XAUUSD-100.00%-100.00%100.00%5756.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

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation3.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
InpLotSize0.1Lot size per trade
InpStopLoss0Stop loss in points, 0 means no stop loss
InpTakeProfit0Take profit in points, 0 means no take profit
InpSensitivity150Trend sensitivity threshold, controls entry signal strength
InpMACD_FastEMA12MACD fast EMA period
InpMACD_SlowEMA26MACD slow EMA period
InpMACD_SMA9MACD signal SMA period
InpBB_Period20Bollinger Bands period
InpBB_Deviation2.0Bollinger Bands standard deviation multiplier
InpMagicNumber123456EA magic number for identifying orders

Similar Trend Following EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.