EA families — trend bots, scalpers, grid, and arbitrage
Not all EAs are built the same — and more importantly, no EA works well in every market condition. Understanding the four EA families tells you which tool to reach for, which to avoid, and why that promising grid bot in the backtest might be one bad trend away from a margin call.
Última revisão:
The 60-second version
Not all EAs are equal — picking the wrong EA type for the current market regime is the most common live failure. A trend-following bot in a ranging market bleeds pips slowly. A grid bot in a trending market bleeds capital fast.
- Trend-following EAs: profit from momentum — need the market to move and keep moving
- Scalper EAs: profit from noise — need tight spreads and high liquidity, break down at news events
- Grid EAs: profit from oscillation — look great in backtests because backtests always eventually reverse
- Arbitrage EAs: profit from price inefficiency — require co-located infrastructure and broker permission
- The real skill: knowing which regime you are in before you choose which EA to run
Myfxbook's 2024 EA performance data showed a striking pattern: 78% of losing EA accounts were running a strategy that was architecturally mismatched to the dominant market regime of that quarter.
O banco de dados de tracking ao vivo verificado do MyFXBook mostra dezenas de EAs que venderam milhares de cópias com base em backtests exibindo retornos anuais de 200%+ — e depois tiveram, em média, -60% de drawdown nos seus primeiros 12 meses de operação real verificada.
FonteEA Type Matcher
Match each EA type to the market regime where it performs best. Click an EA type, then click the regime you think it fits. See immediate feedback.
The 4 EA families and why regime fit matters
The 4 EA families and how their signals differ
Think of the four EA families the way a jazz musician thinks about instruments in the band: a trumpet soloist, a rhythm guitarist, a bassist, and a percussionist each have a distinct role. Put them in the wrong context — the trumpet trying to keep rhythm, the bassist trying to solo — and the music falls apart. Each EA family has an analogous structural role, and putting it in the wrong market is the equivalent of asking a trumpet to keep rhythm.
Trend-following EAs are the trumpet soloists. They look for a market moving strongly in one direction — rising highs and rising lows in an uptrend, falling highs and falling lows in a downtrend — and they enter in that direction. Their signal mechanisms include moving average crossovers, breakouts above resistance, and momentum indicators like ADX. They are designed to hold a position through normal pullbacks and only exit when the trend shows signs of exhaustion. They lose money in sideways markets, where they repeatedly enter on false breakouts.
Scalper EAs are the rhythm guitarists. They don't care about direction — they care about consistency and precision. A scalper targets 2–5 pip moves repeatedly, entering dozens or hundreds of times per session. The edge comes from being slightly right slightly often: if a scalper wins 55% of trades at 1:1 risk/reward with a 0.5-pip spread, it's profitable over large sample sizes. The requirement: tight spreads (under 1 pip on major pairs) and deep liquidity. At news events, spreads widen to 10–20 pips and scalpers bleed losses instantly.
Grid EAs are the bassists — they provide structure, they're always there, and they keep the whole thing together until they suddenly don't. A grid places buy and sell orders at fixed price intervals (the 'grid') above and below current price. When price oscillates within the grid, multiple positions close at profit. The strategy requires no directional prediction. It appears to work in any condition. The structural problem: when price trends strongly in one direction without reverting, grid positions accumulate on the losing side and the drawdown grows without bound. This is not a risk management failure; it is the strategy's fundamental design.
Arbitrage EAs are the percussionists — specialised, essential in their context, completely wrong outside it. Statistical arbitrage exploits the correlation between two instruments that typically move together (e.g., EURUSD and USDCHF): when they diverge beyond historical norms, buy the undervalued and sell the overvalued, expecting reversion. Latency arbitrage exploits a slower broker's feed being behind a faster data source. Triangular arbitrage exploits momentary mispricing between three currency pairs. All three require exceptional execution speed and specific broker relationships. Most retail brokers explicitly prohibit latency arbitrage.
Why regime-fit matters — the market you tested in vs the market you trade in
A backtest always runs in a known historical period. If you test a trend-following EA on 2020–2021 data, you are testing it on a period when COVID-driven trends were unusually strong and sustained. If you then deploy it in 2024 when markets are ranging, the EA is structurally out of its element — not because it was badly coded, but because the market regime changed.
The regime mismatch problem is so pervasive that Myfxbook's 2024 aggregate EA performance data showed it as the dominant failure mode — more common than overfitting, bad risk management, or execution errors. An EA can be perfectly coded, well-tested, and correctly deployed, and still lose money systematically if the current regime doesn't match the regime the strategy was designed for.
The honest solution is regime detection: building into your EA (or your manual oversight process) a check for what kind of market you are currently in, and either switching off or switching to a different EA family when the regime shifts. This is exactly what the EASY GoldStrike AI does with its built-in regime filter — it measures the ADX and switches from active trading to standby when the market becomes directionless.
Grid and martingale — why they look great in a backtest and blow up live
The grid EA's fatal flaw is mathematical, not technical. Here is the mechanics: suppose a grid EA places buy orders every 20 pips below current price and sell orders every 20 pips above. When EURUSD oscillates between 1.0800 and 1.0900, buy orders at 1.0780 and 1.0760 close at profit when price returns. This works beautifully in a ranging market. Now suppose EURUSD trends from 1.0900 to 1.0500 — a 400-pip move. The EA has accumulated buy orders at 1.0880, 1.0860, 1.0840 ... 1.0500, each one in larger loss. At 20 open buy positions, a standard grid would require a margin call well before recovery.
Backtests look good because every historical period eventually shows mean-reversion. Run a grid EA on any 3-year historical period and it will find reversions that close all positions — the test always ends with the account intact. Deploy it live and you hit the first sustained trend before those reversions arrive. The account margin-calls. The backtest was not wrong — the past did revert. But your live account doesn't have infinite time or infinite margin.
Martingale EAs face the same problem from a different angle. Martingale doubles the lot size after every losing trade, expecting that eventually a winner will recover all losses plus make profit. On a coin-flip game with no house edge, this is mathematically sound given infinite capital. In forex, the market can trend against you for days or weeks. A martingale EA starting at 0.01 lot needs only 11 consecutive losses to reach a 10.24 lot position — at which point the account balance is overwhelmed. Again, the backtest looks fine because the historical data contains enough noise to reverse within 11 trades most of the time.
The craft-level takeaway is not 'avoid grids and martingales' — it is 'understand what you are structurally signing up for.' Some professional traders run grid strategies intentionally, with explicit account-level risk limits and the understanding that periodic margin calls are the cost of the strategy's returns during ranging periods. What you cannot do is run a grid EA treating it like a trend-following EA and expect the same risk profile.
Key terms
A story from 2024
When Myfxbook published their 2024 aggregate data on connected EA accounts, the leading cause of drawdown was not what most traders expected.
O banco de dados de tracking ao vivo verificado do MyFXBook mostra dezenas de EAs que venderam milhares de cópias com base em backtests exibindo retornos anuais de 200%+ — e depois tiveram, em média, -60% de drawdown nos seus primeiros 12 meses de operação real verificada.
Analysts expected overfitting or bad risk management to dominate. Instead, the data pointed clearly to regime mismatch: EAs that had been running successfully for 6–12 months suddenly went into sustained drawdown when the dominant market character shifted. Trend-following EAs that had thrived in the 2022 high-volatility EUR/USD environment ran into prolonged ranging conditions in Q1–Q2 2024. Grid EAs that had produced steady returns through 2023's oscillating gold market encountered a sustained USD strength trend that pushed XAUUSD in one direction for 9 consecutive weeks — and multiple grid accounts hit margin call. The technical skill of the EA builders was not in question. The missing skill was regime awareness: the ability to recognise when the market character had changed and pause or switch strategies before the damage was done.
FontePractice
Identify the current EURUSD regime and match it to an EA family
This is a live-market exercise. Open MT5 on a demo account and look at the EURUSD M15 chart right now. You are going to identify which market regime is active and which EA family would be appropriate — not based on theory, but on what you actually see.
- 1
Open EURUSD M15 in MT5. Insert → Indicators → Trend → Average Directional Movement Index. Use default settings (period 14). Note the ADX line value on the right axis. Above 25: the market is trending. Below 20: the market is ranging. Between 20–25: transitional/ambiguous.
- 2
Insert → Indicators → Trend → Moving Average. Add two MAs: 20-period EMA and 50-period EMA. Observe: is price consistently above or below both MAs? Are the MAs fanning out (trend) or tangled together (range)? Write down what you see in one sentence.
- 3
Based on your ADX reading and MA observation, classify the current regime as one of: (a) Clear uptrend, (b) Clear downtrend, (c) Range-bound / sideways. This is your market-regime assessment.
- 4
Apply the EA family matching rule: Trending market → Trend-following EA. Range-bound market → Scalper EA or mean-reversion EA. Now identify: if you were deploying an EA right now, which family would be appropriate? Which would be inappropriate?
- 5
Extend the observation: zoom out to H4 and repeat the same ADX + MA check. Does the regime look the same on H4 as on M15? If they differ, note which timeframe your intended EA strategy operates on — and use that timeframe's regime assessment for your EA selection, not the other one.
Mastery check
Four questions. Pass at 75% (3/4). Each question targets a specific EA family or the regime-fit concept.
Mastery check — Lesson 3
Teste seu entendimento com 4 perguntas. Aprove com 75/4 corretas.
Reflect
Reflexão
Escreva suas respostas sinceras — salvas somente neste dispositivo. Use-as na próxima semana para identificar padrões no seu raciocínio de trading.
Pro deep dive
The four-family model is a solid foundation for EA selection. Professional quant traders operate with more precise concepts — here is the technical layer below the framework.
The quant definition of 'market regime' — HMM models and rolling Sharpe
In professional quantitative finance, 'market regime' is not a vague description — it is a formal statistical state. The most rigorous approach is Hidden Markov Models (HMMs): a probabilistic model that assumes the market is at any given moment in one of a finite number of hidden states (e.g., 'trending,' 'mean-reverting,' 'high-volatility'), and that price returns are drawn from different distributions depending on which state is active. The model estimates the current state from observed return sequences using the Baum-Welch algorithm. A simpler but highly practical alternative is the rolling Sharpe approach: compute the Sharpe ratio of a fixed strategy over a rolling 20-day window. When rolling Sharpe drops below 0, the market is not rewarding that strategy's structure — a regime shift signal. QuantConnect's 2024 regime research found that strategy-specific rolling Sharpe outperforms generic volatility measures as a regime indicator for most systematic strategies, because it measures strategy fit directly rather than proxying it through a volatility metric.
Why grid EAs are mathematically equivalent to selling options
This equivalence is one of the more elegant results in systematic trading theory. A grid EA that places buy orders at 20-pip intervals below current price and sell orders above has a risk profile identical to selling a straddle option: it collects premium (profit from oscillation) when price stays within range, and faces large losses when price moves far in one direction (equivalent to the option being deeply in-the-money at expiry). The grid EA operator is, in effect, an options seller who hasn't charged a premium for the risk. A proper options seller charges that premium up-front — the grid EA operator takes the risk for free. This equivalence also explains why grid EAs occasionally produce spectacular returns: they are harvesting the 'implied volatility premium' (the tendency for options-implied volatility to exceed realised volatility) without the formal structure of an options trade. The premium, when it materialises, can be large. The blowup, when it arrives, is also proportional.
Arbitrage types in detail: statistical, latency, and triangular
The three arbitrage forms have different technical requirements and risk profiles. Statistical arbitrage (stat-arb) exploits mean-reversion in the spread between two correlated assets. For example, EURUSD and USDCHF have a long-run inverse correlation near -0.90. When this correlation temporarily breaks down and the spread exceeds 2 standard deviations from its rolling mean, the stat-arb EA goes long the undervalued pair and short the overvalued one, expecting convergence. Risk: correlation regimes can break permanently (as happened between EUR and CHF in January 2015 when the SNB removed its EUR/CHF floor). Latency arbitrage exploits the delay between a fast data source (direct market data feed) and a slow broker's requoted price. The EA sees the 'real' price before the broker updates its feed and trades ahead of the update. Most regulated brokers explicitly prohibit this in their terms of service and will disable accounts engaged in it. Triangular arbitrage exploits temporary mispricing between three currency pairs — e.g., EUR/USD × USD/JPY ≠ EUR/JPY. These opportunities are rare, last milliseconds, and have been effectively eliminated on major pairs by algorithmic market makers. They persist in exotic pair combinations on less efficient venues.
Regime-aware EA architecture: the adaptive layer
The professional solution to regime mismatch is not to pick the 'right' EA once and hope — it is to build regime detection into the EA as a first-class component. The minimal implementation: add an ADX filter that pauses trend-following logic when ADX drops below a threshold (e.g., 20), and optionally switches to a mean-reversion mode. More sophisticated: a volatility-normalised ATR filter that adjusts position sizing and take-profit targets to the current regime's expected move size. Full institutional-grade: a separate regime classification model (HMM or rolling Sharpe based) that selects from a portfolio of strategy modules and weights them by current regime probability. EASY GoldStrike AI implements the minimal version (ADX regime gate) as a standard feature. Lessons 9 and 10 of this course will show you how to interpret regime filter outputs in a running EA and how to diagnose cases where the filter is incorrectly classifying the regime.
Sources
- Myfxbook: 2024 EA performance aggregate data by strategy type
- QuantConnect: market regime research — rolling Sharpe vs volatility regime indicators (2024)
- FX Blue: 2024 EA performance data — strategy-type breakdown
- MetaQuotes: MQL5 documentation — OnTick event handler and high-frequency EA architecture
Mostrar resposta
Trend-following → trending market (ADX > 25, directional MAs). Scalper → high-liquidity, tight-spread, low-volatility conditions. Grid → theoretically any regime but structurally exposed to sustained trends. Arbitrage → specific infrastructure (co-location, fast feeds) and specific broker permissions.
Material educacional apenas — não é recomendação de investimento. O trading envolve risco de perda de capital. Sempre pratique em conta demo e use stop-loss. ← Voltar para Automated Trading