Exp_TMA
This EA trades breakouts from the TMA (Triangular Moving Average) channel. It opens buy positions when price closes above the TMA plus an upper level, and sell positions when price closes below the TMA minus a lower level, with configurable stop loss and take profit.
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 TMA channel breakouts, where price deviation beyond specified point levels from the TMA centerline triggers entry signals. Entry conditions: a buy signal requires the current bar's close to be above the TMA value plus the upper level, while the previous bar's close was at or below that threshold, confirming a fresh breakout; sell signals are the mirror opposite. Exit conditions include fixed stop loss and take profit in points, plus reverse-signal closes (e.g., a buy signal triggers closing of short positions). Position sizing is controlled by the MM parameter: negative values represent fixed lot sizes, while positive values represent a share-of-deposit calculation. Money management uses functions from the TradeAlgorithms.mqh include file, supporting both fixed-lot and percentage-of-balance modes. The strategy defaults to H4 timeframe and uses SignalBar=1, meaning it reads from the most recently closed bar to avoid signal repainting from unclosed bars.
Strengths
- Uses closed bar (SignalBar=1) for signal generation, avoiding repainting issues from unclosed bars
- Independent buy/sell permission switches provide flexibility to disable trading in either direction
- Explicit stop loss and take profit settings provide defined risk control parameters
- IsNewBar mechanism limits signal detection frequency, reducing unnecessary redundant calculations
Weaknesses
- TMA indicator uses centered symmetric algorithm which repaints historical values, making backtesting results potentially unreliable
- No spread filter — breakout signals may be invalidated by spread costs in high-spread environments
- Stop loss of 1000 points and take profit of 2000 points are very large, potentially leading to deep drawdowns on H4
- No position check logic — may repeatedly open positions on the same signal
Possible improvements
- Add position check logic to prevent duplicate entries in the same direction
- Add spread filter and session filter to avoid trading during high-spread and low-liquidity periods
- Consider using a non-repainting version of the TMA indicator to replace the current potentially repainting one
- Add trailing stop or break-even functionality to lock in profits after reaching a certain gain threshold
Risk assessment
Overall risk: Medium
- TMA indicator may repaint, causing inconsistency between backtest and live performance
- Large stop loss/take profit point values result in high per-trade risk exposure
- Missing position check may cause duplicate entries amplifying directional risk
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | -0.1 | Trade share; negative=fixed lots, positive=deposit percentage |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum price slippage deviation in points |
BuyPosOpen | true | Allow buy position open |
SellPosOpen | true | Allow sell position open |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H4 | MBKAsctrend3 indicator timeframe |
Length | 30 | TMA smoothing depth |
UpLevel | 300 | Long breakout level in points |
DnLevel | 300 | Short breakout level in points |
SignalBar | 1 | Entry signal bar index |
Similar Breakout EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.