EA-20184 · Grid

FarhadCrab1

FarhadCrab1 is a grid-based Expert Advisor that places buy and sell pending orders at fixed intervals from the current price, aiming to profit from market oscillations within a range. It uses a crab-like symmetric order placement pattern with incremental lot sizing. The EA opens multiple positions at predetermined price levels and relies on overall portfolio closure when total profit target is reached.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryGrid
RiskDangerous
Blow-up riskHigh
Rating★☆☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsGrid Levels, Price Action
AuthorCopyright © 2006, Farhad Farshad

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-1.96%-1.70%8.09%12941.90%-0.42-0.249−$1.52Reliable
GBPUSD-0.83%-0.72%8.97%12846.50%-0.11-0.096−$0.84Reliable
USDJPY-9.04%-7.90%10.58%13243.90%-1.73-0.854−$6.85Reliable
XAUUSD-100.00%-100.00%100.00%4454.50%-1.51-1.003−$227.93Account stopped out

Profitable on 0 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.

Month by month

MarketMonths with a gainBest monthWorst month
EURUSD38%+2.60% 2026-01-2.76% 2026-03
GBPUSD54%+2.51% 2026-01-2.68% 2026-05
USDJPY23%+1.51% 2026-03-2.72% 2026-01
XAUUSD40%+20.20% 2025-12-100.00% 2026-03

From the backtest equity curve, sampled about every two days; only reliable results.

Blow-up risk: High

  • Opens a grid of orders at fixed price steps
  • Hit a stop-out in our backtest (equity below 10%) on XAUUSD

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 grid trading, where the EA places buy and sell pending orders at fixed intervals above and below the current price, forming a crab-like symmetric pattern. Entry conditions are triggered when price reaches preset grid levels, with buy stops above and sell stops below the current price. Exit conditions rely on total floating profit across all positions reaching a configured profit target, at which point all positions close simultaneously. Position sizing uses incremental lot increases, with subsequent grid levels using multiplied lot sizes, making it a martingale variant. Money management depends on the total profit target closure mechanism but lacks individual trade stop-loss protection, creating extreme risk in trending markets. The overall strategy assumes mean-reverting price behavior within a range, capturing oscillations through multiple grid layers, but can suffer catastrophic losses during strong directional moves.

Strengths

  • Grid strategy performs well in ranging markets, continuously capturing small price oscillations for profit
  • Symmetric layout allows profit from both directions without relying on directional trend bias
  • Highly configurable parameters allow traders to adjust grid spacing and lot multiplier for different instruments and volatility

Weaknesses

  • Martingale-style lot increment creates extreme risk in trending markets, potentially leading to account blowup
  • Lacks effective stop-loss mechanism, with insufficient individual and portfolio risk controls
  • Fixed grid spacing cannot adapt to changing market volatility, too dense in low volatility and too sparse in high volatility

Possible improvements

  • Add dynamic grid spacing that automatically adjusts based on ATR or volatility indicators
  • Implement account-level risk controls with maximum drawdown limits and emergency stop mechanisms
  • Add a trend filter to pause grid trading or reduce position sizes during strong trending conditions

Risk assessment

Overall risk: Dangerous

  • Martingale lot increment causes exponential risk growth as loss layers deepen
  • No effective stop-loss means extreme directional moves can wipe out entire account
  • Total profit closure mechanism may prevent timely stop-loss during deep drawdowns, with continuous position adding leading to uncontrolled risk

Evaluation scores

Code quality2.0
Strategy logic2.0
Risk management1.0
Robustness2.0
Innovation2.0
Documentation1.0
Overall1.7

Parameters

ParameterDefaultDescription
TakeProfit30Total profit target in points
GridStep20Grid spacing in points
MaxTrades12Maximum number of trade layers
Lots0.01Initial lot size
LotMultiplier1.5Lot increment multiplier
MagicNumber20184Manage positions with specific magic number only; 0 manages all
StopLoss0stop losspoints (0meansnostop loss)

Similar Grid 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.