A powerful grid-based martingale Expert Advisor for MetaTrader 4 & MetaTrader 5. Designed for ranging pairs on the M5 timeframe with 4 analysis methods and AutoConfig AI.
Instant activation via MetaQuotes MQL5 Market. No broker lock, no account number restriction, and zero monthly expiration.
Run 100% free on unlimited Demo accounts or register a Live account under our broker partner link for permanent authorization.
Pricing schedule: the lifetime purchase price increases by +$10 USD after every 10 purchases. Try the free demo in the MT5 Strategy Tester before you buy, or start with a monthly rental.
⚠️ Grid and martingale trading can lose significant capital. Test on a demo account first; past performance does not guarantee future results.
Tested in MetaQuotes Strategy Tester against rigorous tick simulations
Compatible with all MT5 broker margin accounting systems worldwide
Highest security standard — zero external binaries or security risks
Automatic download and 20 terminal activations right in MetaTrader 5
Built with precision for automated grid trading on the worlds most popular platforms.
Runs on both MetaTrader 4 and MetaTrader 5 with identical trading logic.
Classic Candle, SMA20, Alligator, and Ichimoku for entry signals.
Automatic position layering with configurable multiplier and distance.
Dynamic parameter optimization based on Average Daily Range.
Trade both directions simultaneously or restrict to single-direction.
Schedule EA active hours with configurable Start/Stop times.
One-click close for all open positions directly on the chart.
Account-locked licensing with unlimited demo mode support.
Understanding the EAs step-by-step decision-making process on every tick.
On every tick, the EA updates the chart display and checks if the current time is within the configured Start/Stop window.
Determines whether the main logic runs on every tick or only when a new bar appears on the chart.
If no positions exist, the EA evaluates the selected analysis method (Candle, SMA20, Alligator, or Ichimoku) with an RSI H1 filter to determine entry direction.
If positions exist and GridTrading is enabled, the EA checks distance from the last position and opens a new position with martingale lot sizing.
Take Profit for all positions is updated to the weighted average entry price (break-even) plus the configured TP in pips.
If enabled, stop loss is calculated from the first entry price of the basket for risk protection.
Fine-tune every aspect of the EAs behavior to match your trading strategy.
| Parameter | Default | Description |
|---|---|---|
EA_Name | [https://t.me/SyariefAzman] | Display name shown in trade comments |
Execution_Mode | on Every New Bar | Every Tick = instant; Every New Bar = candle close |
Pos_Mode | Buy & Sell | Buy & Sell, Buy Only, or Sell Only |
Hedging | false | Allows simultaneous buy/sell baskets |
Method | Ichimoku | Analysis method: Classic Candle, SMA20, Alligator, Ichimoku |
Let the EA automatically optimize parameters based on real-time market volatility.
Automatically detects EURUSD (or broker variations) and calculates the 365-day Average Daily Range on D1.
Derives divisor ratios from the EURUSD ADR: TP÷25, minPipStep÷4, PipStepIncr÷(2×Multiplier^positions), maxPipStep÷100.
Calculates the 20-day ADR of the current symbol and applies optimized parameters that recalculate every tick/bar.
Pick your platform and an optimized risk strategy, inspect or adjust the inputs, and instantly download a ready-to-load .set configuration file for MetaTrader.
Wider grid distance and lower multiplier designed to withstand sustained trends with minimal drawdown.
Default factory calibrated settings balancing consistent daily profit take and moderate grid recovery.
Calibrated for Gold price scaling (1 pip = $0.01): 3,500 TP ($35.00 trend capture), 350 minDistance ($3.50 spacing), RSI filter disabled, Break-Even profit lock and margin guards enabled.
Tight pip distances with fast take profit cycles. Recommended exclusively on Cent/Micro accounts.
.set file → Click OK!Simulate position layering, floating drawdown, and margin requirements up to 10 grid levels before deploying live.
| Layer | Order Lot | Total Lots | Order Gap | Total Pips | Floating Loss | Drawdown % | Total Margin | Margin Level |
|---|---|---|---|---|---|---|---|---|
| #1 | 0.01 | 0.01 | — | 0 pips | -0 USC (¢) | 0.0% | 1.1 USC (¢) | 921,659% |
| #2 | 0.01 | 0.02 | +4 p | 4 pips | -0.4 USC (¢) | 0.0% | 2.2 USC (¢) | 460,811% |
| #3 | 0.01 | 0.03 | +6 p | 10 pips | -1.6 USC (¢) | 0.0% | 3.3 USC (¢) | 307,171% |
| #4 | 0.01 | 0.04 | +8 p | 18 pips | -4 USC (¢) | 0.0% | 4.3 USC (¢) | 230,323% |
| #5 | 0.01 | 0.05 | +10 p | 28 pips | -8 USC (¢) | 0.1% | 5.4 USC (¢) | 184,184% |
| #6 | 0.01 | 0.06 | +12 p | 40 pips | -14 USC (¢) | 0.1% | 6.5 USC (¢) | 153,395% |
| #7 | 0.01 | 0.07 | +14 p | 54 pips | -22.4 USC (¢) | 0.2% | 7.6 USC (¢) | 131,371% |
| #8 | 0.01 | 0.08 | +16 p | 70 pips | -33.6 USC (¢) | 0.3% | 8.7 USC (¢) | 114,820% |
Headway provides true Micro/Cent accounts with up to 1:1000 leverage. Perfect for running EA Budak Ubat with $100 starting capital.
Get up and running in minutes with this step-by-step guide.
Download EA - Budak Ubat v1.62 - MT4 - 20261030.ex4
Open MT4 → File → Open Data Folder
Navigate to MQL4/Experts/
Copy the .ex4 file into this folder
Restart MT4 (or right-click Navigator panel → Refresh)
Drag the EA onto a chart (recommended: M5 timeframe, ranging pair)
In the EA properties, go to Common tab → check Allow live trading
Configure parameters in the Inputs tab
Click OK — the EA will display its status on the chart
Run your EA 24/7 with maximum uptime and low latency.

Martingale strategies carry significant risk. Always use proper risk management.
Cent account recommended for small capital; Standard also supported
Minimum $100 for 0.01 starting lot (Cent recommended)
Maximum leverage reduces margin usage per trade
Choose low-volatility pairs, avoid trending pairs
Set a reasonable cap to prevent runaway lot sizes
Consider enabling SL for additional protection
Check your account daily, even on VPS
Withdraw regularly, don't let it grow unchecked
Yes, but use a different MagicNumber for each chart to avoid conflicts between EA instances.
Yes. The core trading logic, grid math, and analysis methods are identical. MT5 v1.63 adds dedicated RSI filter toggling, dynamic order filling mode negotiation, spread guard, and equity protection.
Ranging pairs with low spread work best. Avoid highly trending or exotic pairs to minimize drawdown risk.
Yes! In v1.63 you can now disable the RSI filter specifically for Gold (UseRSIFilter = false). In macro bull trends, gold often stays overbought—disabling RSI allows the bot to continue opening buys without being blocked. Always use a cent account and conservative lot sizing.
A minimum of $100 on a Cent account (or larger capital for Standard) with 0.01 starting lots is recommended. Higher leverage reduces margin requirements per position.
Register through one of the broker partner links on this page, then send your trading account number to @SyariefAzman on Telegram.