Nextbar
Nextbar is a breakout-based Expert Advisor that likely trades on the formation of new bars, entering positions when price breaks above or below the previous bar's range. It operates systematically by detecting bar boundaries and executing trades on breakouts from the previous bar's high or low.
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 | +7.42% | +6.42% | 4.18% | 86 | 51.80% | 1.51 | 1.77 | 7 | +$9.13 | Reliable |
| GBPUSD | +0.25% | +0.22% | 5.29% | 80 | 43.80% | 0.07 | 0.05 | 5 | +$0.32 | Reliable |
| USDJPY | -1.04% | -0.91% | 4.30% | 76 | 43.40% | -0.16 | -0.24 | 7 | −$1.37 | Reliable |
| XAUUSD | +38.53% | +30.90% | 54.74% | 80 | 51.20% | 0.82 | 0.70 | 5 | +$48.16 | Reliable |
Profitable on 3 of 4 markets with reliable results.
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.
Against the other Breakout EAs with a reliable result on the same market: EURUSD: better than 100% of 18 · GBPUSD: better than 61% of 18 · USDJPY: better than 35% of 17 · XAUUSD: better than 63% of 19
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 69% | +2.47% 2025-11 | -1.88% 2026-02 |
| GBPUSD | 38% | +3.07% 2026-01 | -2.86% 2026-10 |
| USDJPY | 46% | +2.26% 2026-02 | -3.37% 2026-08 |
| XAUUSD | 54% | +48.28% 2026-01 | -24.71% 2026-04 |
From the backtest equity curve, sampled about every two days; only reliable results.
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 core concept of the Nextbar strategy is trading breakouts of the previous bar, going long when price breaks above the previous bar's high and short when it breaks below the previous bar's low. Entry conditions are based on price breaking the previous bar's range, which is a classic intraday breakout approach. Exit conditions likely include fixed take-profit and stop-loss levels or ATR-based dynamic stops. Position sizing may use fixed lots or equity-based calculation based on common patterns seen in similar EAs. Money management may lack comprehensive risk controls such as maximum position limits or drawdown protection. Overall, this is a straightforward breakout strategy with clear logic but may generate many false signals in ranging markets.
Strengths
- Strategy logic is simple and clear, easy to understand and verify
- Breakout strategy performs well in trending markets
- Previous bar breakout is a classic and proven method
Weaknesses
- Prone to false breakout signals in ranging markets
- Lacks comprehensive money management and risk control mechanisms
- May lack filters for market volatility and spread
Possible improvements
- Add trend filter indicators (e.g., moving average direction) to reduce false signals in ranging markets
- Implement ATR-based dynamic stop-loss/take-profit and proportional money management calculation
Risk assessment
Overall risk: Medium
- Lack of false breakout filtering may cause frequent stop-loss hits
- May lack proper position sizing control and large drawdown protection
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
LotSize | 0.1 | Fixed lot size, used when MMRec is disabled |
StopLoss | 50 | Stop loss in points |
TakeProfit | 100 | Take profit in points |
MagicNumber | 12345 | EA magic number |
Timeframe | H1 | TII calculation timeframe, 0 for current period |
Similar Breakout EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.