Trading robot · MT4

Inside Bar Grid EA

by danielworthy

This MetaTrader 4 robot implements a grid-based hedging strategy triggered by inside bar price formations.

High risk

GitHub stars1
Forks3
Last update7 months ago25 Mar 2026
LicenceNone stated

Overview

Inside Bar Grid EA 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, utilizing a 20-period RSI to filter for trending markets. It manages trades as a basket, aiming to close all positions once a collective profit target is achieved. Users should be aware of the high risk associated with its recovery mechanisms and significant historical drawdown.

Details

Author

danielworthy on GitHub

Type

Trading robot

Markets

Forex, Gold

Timeframes

M15-H1, H4 and above

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
  • Trades without a fixed stop loss

EA Files

Input Parameters

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

NameTypeDefaultDescription
Expert_NamestringDanw2 - Pending + IB multi breakout

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone danielworthy/InsideBarGridEA from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 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

The Gold Reaper

by naming1086
1 stars

The Gold Reaper is a multi-strategy expert advisor for MetaTrader 4 and 5. It trades gold pairs using breakout and reversal entries based on fractals and ATR. Trades enter when spread and frequency conditions are met and exit via trailing stops or time-based rules. The EA includes NFP filters to pause during economic e

MT4MT5 Trading robot BreakoutTrend followingScalping High risk
Updated 6 weeks ago None stated GitHub repository of The Gold Reaper

Prem Gold Advisor

by Premkumar238
13 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 2 months ago None stated GitHub repository of Prem Gold Advisor

Straddle Grid

by wolfbomb
1 stars

Straddle Grid is an automated trading robot for MetaTrader 5 that deploys bidirectional stop-order grids based on fixed price distances. 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

MT5 Trading robot GridBreakoutNews High risk
Updated 3 months ago None stated GitHub repository of Straddle Grid

Icarus

by fraggli
7 stars

Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr

MT4 Trading robot GridMartingaleMean reversion High risk
Updated 4 years ago GPL-3.0 GitHub repository of Icarus

Profit Hunter

by phpkadir
5 stars

Profit Hunter is an expert advisor for MetaTrader 4 designed for forex and cryptocurrency trading. It utilizes a composite signal strategy combining Triple Moving Average, Adaptive RSI, CCI, iTrend, and Fisher indicators. The robot executes trades using a grid system where distances between orders are set manually or c

MT4 Trading robot GridMartingaleHedging High risk
Updated 4 years ago None stated GitHub repository of Profit Hunter

North East Way

by Yogurt-Peng
3 stars

This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way

More gold EAs

Related on ForexR

Need a Broker for MT4?

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

Compare MT4 brokers