Trading robot · MT5

Straddle Grid

by wolfbomb

Straddle Grid is an automated trading robot for MetaTrader 5 that deploys bidirectional stop-order grids based on fixed price distances.

High risk

GitHub stars1
Forks1
Last update7 weeks ago30 Jul 2026
LicenceNone stated

Overview

The expert advisor utilizes a gates system to filter entries by ATR volatility, spread limits, and specific GMT trading sessions. It manages positions as a basket with currency-based take-profit, stop-loss, and trailing stop controls. Advanced features include a whipsaw protection module and an experimental FOMC news trading mode. The bot uses a custom lot progression string to scale positions across grid levels.

Details

Author

wolfbomb on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Breakout, News, Martingale, Hedging

Markets

Gold, Forex

Timeframes

M15-H1

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once

Input parameters

Read from Straddle_Grid.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
AUTO_TRADING_ENABLEDboolfalseSIGMA rule: defaults false, never flip in code
MagicNumberlong20260713
GridLevelsint9per side
GridSpacingUSDdouble0.70$ between levels (VT XAUUSD-VIP: stops 20 + max spread 35 + buffer 10 pts)
FirstLevelOffsetUSDdouble0.50$ from anchor to level 1
LotProgressionCSVstring0.01,0.01,0.02,0.02,0.02,0.03,0.04,0.04,0.05
OCO_Modebooltrue
GridTTLMinint45
BasketTP_USDdouble15.0
BasketSL_USDdouble10.0
TrailActivate_USDdouble8.0
TrailDistance_USDdouble4.0
Show all 27 inputs
NameTypeDefaultDescription
Session1string07:00-10:00GMT
Session2string12:00-15:00
ATR_Min_USDdouble1.5
ATR_Max_USDdouble8.0
MaxSpreadPointsint35
MinMarginLevelPctdouble500.0
MaxDailyLossPctdouble3.0
FOMCOnlyModeboolfalseadditive-only: false = zero effect on gate 1
FOMCDatesCSVstring2026.01.28,2026.03.18,2026.04.29,2026.06.17,2026.07.29,2026.
FOMCWindowDaysint1gate 1 also requires server date within +/- this many days of a listed date
WhipsawWindowSecint300
WhipsawCooldownMinint60
MaxWhipsawsPerDayint2
ResetWhipsawStateNowboolfalse
DashSelfTestboolfalsesynthetic dashboard battery + visual screenshots;

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone wolfbomb/Straddle_Grid from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Prem Gold Advisor

by Premkumar238
1 stars

Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe

MT5 Trading robot BreakoutTrend followingMartingale High risk
Updated 4 weeks ago None stated GitHub repository of Prem Gold Advisor

Inside Bar Grid EA

by danielworthy
1 stars

This MetaTrader 4 robot implements a grid-based hedging strategy triggered by inside bar price formations. It places multiple pending orders on both sides of a breakout and uses martingale lot scaling to increase position sizes for subsequent entries. The expert advisor is designed for the H4 and Daily timeframes, util

MT4 Trading robot BreakoutGridMartingale High risk
Updated 6 months ago None stated GitHub repository of Inside Bar Grid EA

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

EA XAUUSD Premium

by diditgravatar
4 stars

This MetaTrader 5 expert advisor is designed for gold trading, utilizing a multi-timeframe strategy across the M15, H1, and H4 charts. It integrates technical indicators including ADX, RSI, and Moving Averages to identify trend-following and breakout opportunities. Risk controls include dynamic lot sizing based on acco

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of EA XAUUSD Premium

AutoTrade EA

by liucheng-12-08
3 stars

AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa

MT4MT5 Trading robot ScalpingIndicator crossoverMartingale High risk
Updated 7 months ago None stated GitHub repository of AutoTrade EA

Grid Hedge Combine

by Far-1d
3 stars

Grid Hedge Combine is a MetaTrader 5 expert advisor designed to automate market entries using a mixture of grid and hedging techniques. It opens initial trades and layers subsequent orders at predefined pip intervals when the price moves against the position. The EA features lot size scaling, allowing for aggressive or

MT5 Trading robot GridMartingaleHedging High risk
Updated 1 year ago None stated GitHub repository of Grid Hedge Combine

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers