EA-16894 · Trend Following

Exp_JBrainTrend1Stop_ReOpen

This EA implements the JBrainTrend1 trend-following strategy with a stop-and-reopen mechanism. It enters positions based on the JBrainTrend1 indicator signals and closes/reverses when the trend direction changes, reopening positions in the new trend direction. The 'Stop_ReOpen' logic allows it to exit a trade on a trend reversal signal and immediately re-enter in the opposite direction.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskCaution
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsJBrainTrend1
Author—

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.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

JBrainTrend1Stop_ReOpen is a trend-following trading system based on the JBrainTrend1 indicator. Entry conditions rely on the JBrainTrend1 indicator's trend direction assessment — going long when an uptrend signal is detected and going short when a downtrend signal appears. Exit conditions are also based on the indicator's reversal signals, closing the current position when the trend direction changes. The core feature of this EA is the 'Stop ReOpen' mechanism, which not only closes the existing position on a trend reversal but immediately reopens in the opposite direction, continuously capturing trending markets. Position sizing uses fixed lot trading by default, adjustable via user parameters. Money management provides stop loss and take profit parameter settings, but the core risk control still relies on the indicator's reversal signal for exits. The overall strategy logic is clear, but the always-in-market characteristic means that in choppy/ranging markets it may frequently stop and reopen, causing consecutive losses.

Strengths

  • Simple and clear strategy logic based on a single indicator, making trend following easy to understand and verify
  • The Stop ReOpen mechanism ensures continuous capture of trending markets without missing major trends
  • Few parameters with clear tuning scope, reducing the risk of overfitting

Weaknesses

  • Frequent reversals in choppy/ranging markets generate numerous ineffective trades and slippage costs
  • Default stop loss and take profit are zero, relying entirely on indicator reversal signals without hard price-level risk control
  • Fixed lot sizing lacks dynamic position management, unable to adapt to account equity and volatility changes
  • No new bar check mechanism, potentially leading to repeated trades within the same bar

Possible improvements

  • Add a choppy market filter (such as ADX or ATR threshold) to pause trading during low trend strength and reduce ineffective reversals
  • Implement ATR-based dynamic stop loss/take profit and position sizing to adapt risk parameters to market volatility
  • Add a new bar check logic to prevent multiple open/close operations within the same bar

Risk assessment

Overall risk: Caution

  • Default stop loss of zero may result in unexpectedly large single-trade losses during extreme market moves
  • Always-in-market mechanism can produce consecutive losses in ranging markets without a maximum drawdown limit
  • Lack of new bar checking may cause duplicate orders during rapid price fluctuations

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
Lots0.1Hedge order lot size
StopLoss0Stop loss amount, 0 disables overall stop loss
TakeProfit0Hedge pair net profit target in points
JBrainTrend1_Period7JBrainTrend1 indicator period parameter
JBrainTrend1_PricePRICE_CLOSEJBrainTrend1 indicator applied price type
MagicNumber16894EA magic number for order identification
ReOpentrueRe-open reverse position immediately after close

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.