EA-13787 · Momentum

Exp_iAnchMom

This EA trades based on the iAnchMom (Anchored Momentum) custom indicator, which combines SMA and EMA to measure momentum shifts. It opens buy positions when momentum turns upward and sell positions when momentum turns downward, with configurable entry/exit toggles for each direction. Position sizing supports multiple margin modes including fixed lot, balance percentage, and free margin percentage.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMomentum
RiskMedium
Rating★★☆☆☆
TypeTrading EA
TimeframesH1, H4, H8
IndicatorsSMA, EMA, iAnchMom
Author—

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

Strategy analysis

The core strategy of this EA is directional trading based on the iAnchMom (Anchored Momentum) custom indicator, which combines a 34-period SMA with a 20-period EMA applied to a selectable price type. Entry conditions are: when indicator values show Value[1]<Value[2] (momentum shifting upward) and the current value Value[0]>=Value[1], a buy position is opened; when Value[1]>Value[2] (momentum shifting downward) and Value[0]<=Value[1], a sell position is opened. Exit conditions rely on opposing signals triggering position closure — a long position is closed when a downward momentum signal appears, and a short position is closed when an upward momentum signal appears. Position sizing is controlled by the MM parameter with five margin modes: fixed lot size, balance-based, free margin-based, loss-adjusted free margin, and loss-adjusted balance. Money management is implemented through the TradeAlgorithms.mqh library functions (BuyPositionOpen/SellPositionOpen) with configurable stop loss of 1000 points and take profit of 2000 points. The strategy only recalculates signals on new bar formation to avoid redundant per-tick computations, but lacks additional trend or volatility filters to screen out false signals during choppy, range-bound market conditions.

Strengths

  • Clean and straightforward strategy logic based on momentum directional shifts, easy to understand and maintain
  • Supports multiple position sizing modes, flexibly accommodating different risk preferences and account sizes
  • Buy and sell direction open/close can be independently toggled, convenient for unidirectional trading or directional optimization
  • New bar signal mechanism avoids per-tick redundant calculations, reducing computational load and false signals
  • Has stop loss and take profit parameters, providing a basic risk control framework

Weaknesses

  • Lacks a choppy market filter, prone to frequent false signals and consecutive losses during range-bound conditions
  • No position check logic, potentially opening duplicate positions in the same direction when one already exists
  • Exit relies entirely on opposing signals with no trailing stop or time-based exit, potentially giving back profits
  • Depends on external custom indicator iAnchMom and TradeAlgorithms.mqh library, reducing portability
  • Does not account for spread and transaction costs' impact on short-term trading, lacking a spread filter mechanism

Possible improvements

  • Add a trend filter (e.g., higher timeframe MA direction or ADX threshold) to suppress signals during choppy markets
  • Add position check logic to prevent duplicate same-direction entries, and introduce trailing stop to protect existing profits
  • Add spread filter and trading session filter to avoid trading during high-spread and low-liquidity periods

Risk assessment

Overall risk: Medium

  • No position check may cause duplicate same-direction entries leading to excessive leverage
  • Exit depends on opposing signals; rapid market reversals may prevent timely closure resulting in significant losses
  • Lack of spread filter can erode profits when trading high-spread instruments or during wide-spread periods

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation1.0
Overall2.2

Parameters

ParameterDefaultDescription
MM0.1Risk percentage or lot size
MMModeLOTMargin calculation mode (fixed lots/balance/free margin etc.)
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage in points
BuyPosOpentrueAllow opening long positions
SellPosOpentrueAllow opening short positions
BuyPosClosetrueAllow closing long positions
SellPosClosetrueAllow closing short positions
InpInd_TimeframePERIOD_H8Indicator calculation timeframe
SMAPeriod34SMA simple moving average period
EMAPeriod20EMA exponential moving average period
IPCPRICE_CLOSEPrice type used for indicator calculation
SignalBar1Bar index for signal calculation

Similar Momentum 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.