Exp_TrendContinuation
This EA trades trend continuation signals generated by the custom TrendContinuation indicator. It detects crossovers between the indicator's upper and lower buffer lines to open buy or sell positions, with configurable money management, stop loss, and take profit. Trading is restricted to new bar formation on the specified timeframe to avoid redundant signals.
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 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
Why this EA never traded: no entry rule survived the conversion.
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 strategy concept is based on trend continuation, where crossovers of the TrendContinuation indicator's two buffer lines signal that the current trend will persist. Entry conditions: a buy position opens when the upper line crosses above the lower line, and a sell position opens when the upper line crosses below the lower line; signals are confirmed by comparing the current and previous bar values at the specified SignalBar index. Exit conditions include fixed-point stop loss and take profit levels, plus reverse-signal closing where long positions close on sell signals and short positions close on buy signals. Position sizing supports five modes: free margin share, balance share, loss share from free margin, loss share from balance, and fixed lot size. Money management is controlled by the MM parameter for deposit share and MMMode parameter for the specific allocation method. The strategy employs multiple smoothing algorithms (SMA, EMA, JJMA, T3, etc.) for price preprocessing, which improves signal smoothness and reduces noise.
Strengths
- New bar detection mechanism prevents redundant trades within the same bar, reducing overtrading
- Supports multiple smoothing algorithms and price types, offering high flexibility for different market conditions
- Independent on/off switches for buy/sell directions and close permissions provide granular control
- Explicit stop loss and take profit settings make risk controllable
- Reverse-signal closing mechanism provides additional protection against trend reversals
Weaknesses
- Depends on the custom TrendContinuation indicator whose source code is not visible, making signal logic reliability hard to verify
- Default stop loss of 1000 points and take profit of 2000 points are large, potentially causing significant losses in short-term trading
- Lacks spread filter and trading session filter, which may result in unfavorable fills during high-spread or illiquid periods
- No trailing stop functionality, so profitable positions may give back significant gains during pullbacks
- Signals only trigger on bar crossovers, which may miss fast entry opportunities during volatile market moves
Possible improvements
- Add spread filter and trading session filter to avoid unfavorable fills during high-spread and low-liquidity periods
- Add trailing stop functionality to lock in more profit during trend continuation
- Add position check logic to prevent duplicate entries in the same direction
- Provide more granular signal confirmation mechanisms such as volume or momentum filters
Risk assessment
Overall risk: Medium
- Dependency on a custom indicator with unavailable source code creates black-box signal risk
- Default 1000-point stop loss is large and may cause significant losses on small accounts or high leverage
- Lacks same-direction position check, potentially leading to duplicate entries and overexposure
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio parameter |
MMMode | LOT | Position sizing mode |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum price deviation in points (slippage tolerance) |
BuyPosOpen | true | Allow opening long orders |
SellPosOpen | true | Allow opening short orders |
BuyPosClose | true | Allow closing long orders |
SellPosClose | true | Allow closing short orders |
InpInd_Timeframe | PERIOD_H4 | Timeframe for indicator calculation |
NPeriod | 20 | Indicator calculation period |
XMethod | MODE_T3 | Smoothing algorithm type |
XPeriod | 5 | Smoothing depth |
XPhase | 61 | Smoothing parameter (JJMA: -100~+100, VIDIA: CMO period, AMA: slow MA period) |
IPC | PRICE_CLOSE | Price constant type (close/open/high/low/median/typical/weighted) |
SignalBar | 1 | Bar index for entry signal |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.