EA-1456 · Breakout

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

CategoryBreakout
RiskMedium
Rating★★☆☆☆
TypeTrading EA
TimeframesH4, D1, H1
IndicatorsTMA
AuthorCopyright © 2012, Nikolay Kositsin

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

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
MM-0.1Trade share; negative=fixed lots, positive=deposit percentage
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum price slippage deviation in points
BuyPosOpentrueAllow buy position open
SellPosOpentrueAllow sell position open
BuyPosClosetrueAllow closing long positions
SellPosClosetrueAllow closing short positions
InpInd_TimeframePERIOD_H4MBKAsctrend3 indicator timeframe
Length30TMA smoothing depth
UpLevel300Long breakout level in points
DnLevel300Short breakout level in points
SignalBar1Entry signal bar index

Similar Breakout EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.