Exp_LeManTrendHist
This EA trades based on the LeManTrendHist custom indicator, which is a trend-following histogram that compares three smoothed moving average periods (13, 21, 34) to determine trend direction. It opens buy positions when the histogram values rise (Value[0] > Value[1]) and sell positions when they fall (Value[0] < Value[1]), with configurable stop-loss and take-profit levels. The EA includes independent toggles for opening and closing positions on both the buy and sell sides.
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 based on the LeManTrendHist histogram indicator, which integrates three smoothed moving averages of different periods (13, 21, 34) and applies additional EMA smoothing with a user-selectable smoothing algorithm (JJMA, JurX, ParMA, T3, VIDYA, AMA, etc.) to generate trend signals. Entry conditions are: a buy position opens when the histogram's previous value is less than the one before that (Value[1]<Value[2]) and the current value exceeds the previous value (Value[0]>Value[1]), indicating an upward trend shift; a sell position opens under the opposite conditions. Exit conditions include fixed stop-loss (1000 points) and take-profit (2000 points) settings, plus reverse signal closures where a buy signal closes sell positions and vice versa. Position sizing supports multiple modes including free margin-based, balance-based, loss-free-margin-based, loss-balance-based proportional calculations, and a fixed lot mode. Money management is controlled by the MM parameter (default 0.1), which combined with the 1000-point stop-loss and 2000-point take-profit constrains per-trade risk. The strategy uses the SignalBar parameter (default 1) to determine which bar to evaluate signals on, avoiding signal repainting from unclosed bars.
Strengths
- Uses Fibonacci-based moving average periods (13/21/34) for trend detection, providing logical trend-following structure
- Offers multiple smoothing algorithm options (JJMA, JurX, ParMA, T3, VIDYA, AMA) for adaptability to different market conditions
- Independent toggles for buy/sell opening and closing provide high flexibility for directional bias trading
- Default SignalBar=1 uses closed bars for signal evaluation, avoiding repainting issues
- Complete stop-loss and take-profit configuration with slippage control parameter
Weaknesses
- The 1000-point stop-loss and 2000-point take-profit are extremely wide on H4 timeframe, potentially leading to large per-trade losses
- No trailing stop functionality means profitable positions may give back significant gains during reversals
- No check for existing same-direction positions, which could lead to duplicate position opening
- Depends on an external custom indicator LeManTrendHist, increasing deployment complexity and dependency risk
- No trading session/time filter, which may result in unfavorable fills during low-liquidity periods
Possible improvements
- Add same-direction position checking logic to prevent duplicate entries and overleveraging
- Add trailing stop functionality and trading session filters to improve profit protection and execution quality
Risk assessment
Overall risk: Medium
- The 1000-point stop-loss on H4 carries significant per-trade risk if position sizing is not carefully managed
- No existing position check creates risk of duplicate entries and excessive leverage
- Dependency on external indicator file causes initialization failure but not financial loss
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lots |
MMMode | LOT | Lot calculation mode (fixed lots/capital ratio) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum slippage deviation |
BuyPosOpen | true | Allow buy position opening |
SellPosOpen | true | Allow sell position opening |
BuyPosClose | true | Allow buy position closing |
SellPosClose | true | Allow sell position closing |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
Min | 13 | Short period MA parameter |
Midle | 21 | Middle period MA parameter |
Max | 34 | Long period MA parameter |
PeriodEMA | 3 | Signal EMA smoothing period |
XMethod | MODE_JJMA | Indicator smoothing algorithm type |
XLength | 5 | Smoothing algorithm length parameter |
XPhase | 100 | Smoothing algorithm phase parameter |
SignalBar | 1 | Signal calculation bar index |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.