Exp_i-AMMA
This EA trades based on the i-AMMA (Adaptive Modified Moving Average) indicator, opening buy positions when the AMMA value rises and sell positions when it falls. It uses a crossover-like logic comparing the current and previous bar indicator values to determine trend direction and generate entry/exit signals. Position sizing is configurable through multiple margin modes, and it includes stop loss and take profit for risk management.
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 strategy concept is a trend-following system based on the Adaptive Modified Moving Average (i-AMMA) indicator, determining trend direction and momentum changes by comparing three consecutive bar values. Entry conditions: open a buy position when Value[1]<Value[2] (indicator transitioning from decline) and Value[0]>Value[1] (confirming upward momentum), and open a sell position when Value[1]>Value[2] and Value[0]<Value[1]. Exit conditions are the reverse of entry: close a long position when the indicator turns downward, and close a short position when it turns upward. Position sizing supports five margin modes: percentage of free margin, percentage of balance, percentage of free margin minus floating loss, percentage of balance minus floating loss, and fixed lot size. Money management is controlled by the MM parameter which sets the risk percentage or fixed lot per trade, while the 1000-point stop loss and 2000-point take profit provide a 2:1 reward-to-risk ratio.
Strengths
- Simple and clear strategy logic based on trend-following principles, easy to understand and maintain
- Five position sizing modes provide high flexibility to accommodate different risk preferences
- Independent buy/sell open and close switches allow flexible control over trading directions
- Stop loss and take profit settings provide a 2:1 reward-to-risk ratio, favorable for long-term positive expectancy
- IsNewBar mechanism prevents repeated trades on the same bar, reducing overtrading risk
Weaknesses
- Stop loss of 1000 points and take profit of 2000 points are excessively large, potentially causing high per-trade risk on most instruments
- No spread filter or trading session filter, which may cause unnecessary losses during wide spread periods
- Relies on a single indicator for trend determination without multiple confirmation mechanisms, prone to false signals
- No trailing stop functionality, profitable positions may retrace significantly before being captured by take profit or reversal exit
- The signal logic uses three-bar relationships but Value[0] refers to the oldest bar, which could cause confusion in index direction
Possible improvements
- Add spread filter and trading session filter to avoid trading during wide spread and low liquidity periods
- Add trailing stop functionality to lock in more profits during trend continuation rather than relying on fixed take profit
- Add multi-timeframe confirmation or additional indicator filtering to reduce false signals and repeated open/close cycles in ranging markets
Risk assessment
Overall risk: Medium
- Stop loss of 1000 points is excessively large, exposing each trade to potentially huge losses
- No spread filter may result in unfavorable fills during low liquidity periods
- Single indicator strategy prone to frequent entries and exits in ranging markets, causing consecutive losses
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_H4 | Indicator calculation timeframe |
MA_Period | 25 | i-AMMA indicator moving average period |
SignalBar | 1 | Bar index for signal calculation |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.