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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Custom indicator approximated |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Custom indicator approximated |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Custom indicator approximated |
| XAUUSD | 0.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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management parameter controlling lot size or ratio |
MMMode | LOT | Lot calculation mode (Free Margin/Balance/Free Margin with Floating Loss/Balance with Floating Loss/Fixed Lot) |
StopLoss_ | 1000 | Stop Loss in points |
TakeProfit_ | 2000 | Take Profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | true | Allow opening buy positions |
SellPosOpen | true | Allow opening sell positions |
BuyPosClose | true | Allow closing buy positions on signal |
SellPosClose | true | Allow closing sell positions on signal |
InpInd_Timeframe | PERIOD_H4 | HLRSign indicator timeframe |
SignalBar | 1 | Signal bar index (0=current bar, 1=last completed bar) |
Alpha1 | 0.25 | Alpha coefficient for the first smoothing line |
Alpha2 | 0.33 | Alpha coefficient for the second smoothing line |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.