EA-12560 · Trend Following

Exp_Leading

This EA trades based on crossover signals from the custom 'Leading' indicator, which uses two EMA-like smoothing lines with configurable alpha coefficients. It opens buy positions when Ma1 crosses above Ma2 and sell positions when Ma1 crosses below Ma2, with optional close-on-reverse-signal functionality and fixed stop loss/take profit levels.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsLeading (Custom EMA-type), EMA
AuthorCopyright © 2015, Nikolay Kositsin

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Custom indicator approximated
GBPUSD0.00%0.00%0.00%0—————Custom indicator approximated
USDJPY0.00%0.00%0.00%0—————Custom indicator approximated
XAUUSD0.00%0.00%0.00%0—————Custom indicator approximated

Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.

Blow-up risk: No blow-up pattern found

None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.

High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →

Strategy analysis

The EA's strategy concept is based on the crossover of two smoothed lines from the Leading indicator to determine trend direction, making it a classic trend-following system. Entry conditions: when Ma1[1]>Ma2[1] and Ma1[0]<Ma2[0], a golden cross is detected and a buy position is opened; when Ma1[1]<Ma2[1] and Ma1[0]>Ma2[0], a death cross is detected and a sell position is opened. Exit conditions include a fixed stop loss of 1000 points, a fixed take profit of 2000 points, and optional closing on reverse crossover signals. Position sizing is controlled by the MM parameter, supporting both lot-based mode and margin-based percentage mode for money management. The risk-reward ratio is set at 1:2 (stop loss 1000 vs take profit 2000), which is reasonable. The EA uses an IsNewBar mechanism to ensure signals are calculated only once per bar, preventing duplicate entries, and the SignalBar parameter allows selecting which bar's data to use for signal generation.

Strengths

  • Clear and intuitive strategy logic based on dual-line crossover signals
  • Risk-reward ratio of 1:2 with take profit larger than stop loss, providing positive expectancy
  • Independent toggle switches for buy/sell opening and closing offer high flexibility
  • IsNewBar mechanism prevents duplicate entries on the same bar
  • Adjustable alpha coefficients allow optimization of indicator sensitivity

Weaknesses

  • Depends on a custom Leading indicator whose source code is not included, increasing difficulty of understanding and maintenance
  • Fixed stop loss and take profit do not adapt to market volatility changes — SL may be too large in low volatility and TP too small in high volatility
  • Lacks trailing stop functionality, which may result in significant profit givebacks after large favorable moves
  • Does not account for spread and transaction costs impact on signals
  • Default stop loss of 1000 points is quite large, potentially leading to significant per-trade losses on H4 timeframe

Possible improvements

  • Introduce ATR-based dynamic stop loss and take profit to adapt SL/TP distances based on market volatility
  • Add trailing stop functionality to lock in partial profits after reaching a certain profit threshold

Risk assessment

Overall risk: Medium

  • Fixed 1000-point stop loss may result in large per-trade losses on some instruments
  • Lacks position count checks, potentially leading to frequent open/close cycles in choppy markets
  • Depends on an external custom indicator; if the indicator file is missing, the EA fails to initialize

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness3.0
Innovation2.0
Documentation1.0
Overall2.5

Parameters

ParameterDefaultDescription
MM0.1Money management parameter controlling lot size or ratio
MMModeLOTLot calculation mode (Free Margin/Balance/Free Margin with Floating Loss/Balance with Floating Loss/Fixed Lot)
StopLoss_1000Stop Loss in points
TakeProfit_2000Take Profit in points
Deviation_10Maximum allowed slippage
BuyPosOpentrueAllow opening buy positions
SellPosOpentrueAllow opening sell positions
BuyPosClosetrueAllow closing buy positions on signal
SellPosClosetrueAllow closing sell positions on signal
InpInd_TimeframePERIOD_H4HLRSign indicator timeframe
SignalBar1Signal bar index (0=current bar, 1=last completed bar)
Alpha10.25Alpha coefficient for the first smoothing line
Alpha20.33Alpha coefficient for the second smoothing line

Similar Trend Following 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.