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
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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Risk percentage or lot size |
MMMode | LOT | Margin calculation mode (fixed lots/balance/free margin etc.) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H8 | Indicator calculation timeframe |
SMAPeriod | 34 | SMA simple moving average period |
EMAPeriod | 20 | EMA exponential moving average period |
IPC | PRICE_CLOSE | Price type used for indicator calculation |
SignalBar | 1 | Bar index for signal calculation |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.