EA-14234 · Breakout

Exp_XMA_Range_Channel

This EA trades breakouts from the XMA_Range_Channel indicator, opening buy positions when price breaks above the upper channel and sell positions when it breaks below the lower channel. It uses configurable smoothing methods (SMA, EMA, JJMA, etc.) for the channel calculation and includes money management, stop loss, and take profit controls. Signal filtering is done via a color buffer system from the custom indicator.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryBreakout
RiskMedium
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsXMA_Range_Channel, SMA, EMA, JJMA, JurX, ParMA, T3, VIDYA, AMA
Author—

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

Strategy analysis

The core strategy of this EA is a channel breakout system based on the XMA_Range_Channel indicator. For entry conditions, when the indicator's color buffer (buffer 8) value exceeds 1, a buy signal is generated, and if the previous value is below 2 or empty, it confirms an upper channel breakout for a long position. Conversely, when the color buffer value is below 2 and not empty, a sell signal is generated, with the previous value above 1 or empty confirming a lower channel breakout for a short position. For exit conditions, a buy signal simultaneously triggers closing of sell positions, and a sell signal triggers closing of buy positions, supplemented by independent stop loss (default 1000 points) and take profit (default 2000 points) settings. Position sizing uses standard functions from the TradeAlgorithms.mqh library, supporting multiple modes including free margin-based, balance-based, loss-adjusted balance, or fixed lot sizing. Money management is controlled via the MM parameter (default 0.1 risk ratio) combined with the MMMode selector for the margin calculation method. The strategy uses the SignalBar parameter to detect signals on the 1st completed bar, avoiding false signals from incomplete bars, and employs the IsNewBar mechanism to ensure signals are calculated only once per bar.

Strengths

  • Uses completed bar (SignalBar=1) for signal detection, avoiding false signals from incomplete bars
  • Supports 10 smoothing algorithms with high flexibility to match different market characteristics
  • Built-in complete money management system with multiple position sizing modes for controllable risk
  • IsNewBar mechanism ensures signals are calculated only once per bar, preventing duplicate entries
  • Independent buy/sell toggle controls allow flexible configuration for long-only, short-only, or bidirectional trading

Weaknesses

  • Default stop loss of 1000 points and take profit of 2000 points are large, potentially causing significant losses on volatile instruments
  • No position check mechanism - may open duplicate positions in the same direction when already holding
  • Channel breakout strategies tend to generate frequent false breakout signals in ranging markets, leading to consecutive losses
  • Relies on custom indicator XMA_Range_Channel buffer 8 color values - logic is opaque and difficult to verify signal correctness
  • Lacks spread filter and trading session filter, which may cause unfavorable entries during high-spread or low-liquidity periods

Possible improvements

  • Add position check logic to prevent duplicate same-direction entries and implement maximum position count limits
  • Add spread filter and trading session controls to prohibit entries during high-spread or low-liquidity periods
  • Implement trailing stop functionality to lock in profits when trades move favorably
  • Add ADX or volatility filter to reduce false breakout signals during ranging market conditions

Risk assessment

Overall risk: Medium

  • No position check may cause duplicate same-direction entries leading to overexposure
  • Default 1000-point stop loss is large, potentially resulting in high per-trade losses
  • Channel breakout in ranging markets easily generates consecutive false signals causing multiple stop-outs
  • No spread filter means widened spreads during high volatility may cause additional losses

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness2.0
Innovation2.0
Documentation1.0
Overall2.3

Parameters

ParameterDefaultDescription
MM0.1Money management parameter for lot calculation
MMModeLOTLot mode: free margin / balance / margin after loss / balance after loss / fixed lot
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage
BuyPosOpentrueAllow opening long positions
SellPosOpentrueAllow opening short positions
BuyPosClosetrueAllow closing long positions
SellPosClosetrueAllow closing short positions
InpInd_TimeframePERIOD_H4i-GAP indicator timeframe
XMA_MethodMODE_SMASmoothing algorithm type (SMA/EMA/JJMA/JurX etc.)
XLength7Smoothing period length
XPhase100Smoothing phase parameter (JJMA range -100 to +100)
SignalBar1Signal 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.