Exp_TEMA_CUSTOM
This EA trades based on a Triple Exponential Moving Average (TEMA) custom indicator with configurable smoothing methods for each of the three MA layers. It opens buy positions when the TEMA value is rising (Value[0]>Value[1] with Value[1]<Value[2]) and sell positions when falling, closing opposite positions on signal reversal.
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 is trend following based on a custom TEMA indicator, which applies three separate smoothing algorithms to reduce lag and more sensitively capture trend changes. Entry conditions: a buy signal is generated when the indicator transitions from declining to rising (Value[1]<Value[2] and Value[0]>Value[1]), and a sell signal when it transitions from rising to declining (Value[1]>Value[2] and Value[0]<Value[1]). Exit conditions include hard stop-loss and take-profit levels in points, as well as closing opposite positions when a reversal signal is triggered. Position sizing supports multiple money management modes: percentage of free margin, percentage of balance, percentage of free margin after losses, percentage of balance after losses, and fixed lot size. The EA employs an IsNewBar mechanism to ensure signals are calculated only once per bar, preventing repeated trades on every tick, and the SignalBar parameter allows users to choose which bar's signal to use. Risk control relies on fixed stop-loss and take-profit points, but lacks additional safeguards such as spread filtering, slippage protection beyond Deviation_, and maximum position count limits.
Strengths
- Supports multiple smoothing algorithms (SMA/EMA/SMMA/LWMA/JJMA/JurX/ParMA/T3/VIDYA/AMA) for high flexibility
- Uses IsNewBar mechanism to avoid repeated tick-level signals, reducing unnecessary trading operations
- Stop-loss to take-profit ratio of 1:2, providing a reasonable risk-reward design
- Multiple money management modes accommodate different risk preferences
- Buy and sell directions can be independently toggled, convenient for unidirectional trading or testing
Weaknesses
- Lacks spread filtering, which may lead to unnecessary losing trades during high-spread conditions
- No maximum position count limit, potentially causing frequent open/close cycles in choppy markets
- Depends on external custom indicator TEMA_CUSTOM; EA fails if the indicator file is missing
- No trailing stop functionality, potentially failing to maximize profits in trending markets
- Signal logic is simplistic (only three-bar comparison), prone to false signals in ranging markets
Possible improvements
- Add spread filter and time filter to avoid trading during high-spread or low-liquidity sessions
- Implement trailing stop and trailing take-profit to lock in more profit during trends
- Add ranging market detection filter (e.g., ADX indicator) to pause trading when no clear trend exists
- Add maximum simultaneous position limit to prevent over-trading in choppy markets
Risk assessment
Overall risk: Medium
- No spread filter; widening spreads during high volatility may cause unfavorable entries
- No maximum position limit; frequent open/close in ranging markets may accumulate losses
- Depends on external custom indicator file; if loading fails, EA only returns INIT_FAILED without auto-recovery
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or fixed lot size |
MMMode | LOT | Position sizing mode (free margin/balance/equity) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | true | Allow buy position open |
SellPosOpen | true | Allow sell position open |
BuyPosClose | true | Allow buy position close |
SellPosClose | true | Allow sell position close |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
MA_Method1 | MODE_EMA_ | First-level smoothing method |
Length1 | 12 | First-level smoothing period |
Phase1 | 15 | First-level smoothing phase parameter (for JJMA/VIDYA/AMA) |
MA_Method2 | MODE_EMA | Second-level smoothing method |
Length2 | 5 | Second-level smoothing period |
Phase2 | 15 | Second-level smoothing phase parameter |
MA_Method3 | MODE_EMA | Third-level smoothing method |
Length3 | 5 | Third-level smoothing period |
Phase3 | 15 | Third-level smoothing phase parameter |
IPC | PRICE_MEDIAN | Price type used for indicator calculation |
SignalBar | 1 | Bar index for trade signal |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.