Exp_Extrem_N
This EA trades based on the Extrem_N custom indicator, which identifies market extremums (peaks and troughs). It opens buy positions when an up-signal appears after a down-signal and sell positions when a down-signal appears after an up-signal, with configurable stop loss and take profit levels.
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
This EA uses the Extrem_N custom indicator to identify market extremum points as trading signals. Entry conditions: a buy position is opened when the indicator's upper buffer shows a non-zero value on the signal bar and the previous bar had a down signal; a sell position is opened when the lower buffer shows a non-zero value and the previous bar had an up signal. Exit conditions are implemented through fixed stop loss (1000 points) and take profit (2000 points), with additional support for closing positions on reverse signals. Position sizing supports five modes: by free margin percentage, by balance percentage, by free margin after loss, by balance after loss, and fixed lot size. Money management is controlled by the MM parameter with a default of 0.1 lots in fixed lot mode. The strategy employs a new bar detection mechanism to avoid repeated trades on the same bar and uses a history loading function to ensure data completeness.
Strengths
- Clear strategy logic based on extremum reversal signals with well-defined entry and exit rules
- Five position sizing modes available, flexible for different risk preferences
- Independent control over buy/sell opening and closing provides fine-grained trade management
- New bar detection mechanism prevents duplicate trades on the same candle, reducing overtrading risk
- Stop loss to take profit ratio of 2:1 offers potential positive expectancy
Weaknesses
- Depends on custom indicator Extrem_N whose internal logic is opaque, making signal quality unverifiable independently
- Stop loss of 1000 and take profit of 2000 points are large and may not suit all instruments and volatility environments
- No spread filter or trading session filter, may open positions under unfavorable conditions
- No position count check, may repeatedly open positions on different signals
- Indicator handle creation failure only prints a warning but EA continues running, potentially trading without signals
Possible improvements
- Add position count checks to prevent repeated same-direction entries causing concentrated risk
- Add spread filter and trading session restrictions to avoid entering under unfavorable conditions
- Return INIT_FAILED in OnInit when indicator handle creation fails instead of continuing to run
- Implement dynamic stop loss and take profit based on ATR or volatility rather than fixed point values
Risk assessment
Overall risk: Medium
- EA continues running when indicator handle creation fails but cannot obtain signals, potentially causing abnormal behavior
- No position count limit, may accumulate excessive positions on multiple signals
- Fixed stop loss of 1000 points is large and may cause significant losses with high leverage
- No spread filter, may execute trades even when spreads widen
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lot size |
MMMode | LOT | Position sizing mode: Free margin/Balance/Net margin/Net balance/Fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
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 period |
iPeriod | 9 | Extrem_N indicator period parameter |
SignalBar | 1 | Signal detection bar index (0 = current bar) |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.