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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | -1.96% | -1.70% | 8.09% | 129 | 41.90% | -0.42 | -0.24 | 9 | −$1.52 | Reliable |
| GBPUSD | -0.83% | -0.72% | 8.97% | 128 | 46.50% | -0.11 | -0.09 | 6 | −$0.84 | Reliable |
| USDJPY | -9.04% | -7.90% | 10.58% | 132 | 43.90% | -1.73 | -0.85 | 4 | −$6.85 | Reliable |
| XAUUSD | -100.00% | -100.00% | 100.00% | 44 | 54.50% | -1.51 | -1.00 | 3 | −$227.93 | Account 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
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 38% | +2.60% 2026-01 | -2.76% 2026-03 |
| GBPUSD | 54% | +2.51% 2026-01 | -2.68% 2026-05 |
| USDJPY | 23% | +1.51% 2026-03 | -2.72% 2026-01 |
| XAUUSD | 40% | +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
Parameters
| Parameter | Default | Description |
|---|---|---|
TakeProfit | 30 | Total profit target in points |
GridStep | 20 | Grid spacing in points |
MaxTrades | 12 | Maximum number of trade layers |
Lots | 0.01 | Initial lot size |
LotMultiplier | 1.5 | Lot increment multiplier |
MagicNumber | 20184 | Manage positions with specific magic number only; 0 manages all |
StopLoss | 0 | stop losspoints (0meansnostop loss) |
Similar Grid EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.