Trading robot · MT5

Adaptive Breakout Basket

by hutamisiina

This MetaTrader 5 expert advisor is an experimental trading robot that implements a pseudo-straddle breakout strategy.

GitHub stars2
Forks0
Last update2 days ago2 Oct 2026
LicenceMIT

Overview

Adaptive Breakout Basket automatically opens buy positions when the price breaks recent M1 highs, and sell positions when it breaks recent M1 lows, provided a minimum entry distance is maintained. The expert advisor manages these multiple positions collectively as a basket, employing a trailing stop based on total basket profits that dynamically adjusts according to the net direction bias. Risk controls include optional basket stop-loss amounts, maximum position counts, and maximum holding times, though these protective parameters are disabled by default.

Details

Author

hutamisiina on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Hedging

Markets

Gold, Forex

Timeframes

M1-M5

Risk Profile

  • Holds opposite positions at once
  • Trades without a fixed stop loss

Topics

algorithmic-tradingexpert-advisormql5mt5

Input Parameters

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

NameTypeDefaultDescription
InpMagiclong36291761
InpLotsdouble0.01
InpBreakoutLookbackBarsint3
InpBreakoutBufferPricedouble0.0
InpMinEntryDistancePricedouble0.80
InpUseBasketTrailingbooltrue
InpTrailStartProfitdouble1.0
InpTrailFixedDistancedouble0.3
InpTrailPercentdouble20.0
InpUseNetPositionTrailbooltrue
InpNetTrailStrengthdouble0.70
InpMinTrailMultiplierdouble0.40
Show all 25 inputs
NameTypeDefaultDescription
InpBasketProfitMoneydouble1.0
InpBasketLossMoneydouble0.0
InpUseHoldingTimeStopboolfalse
InpMaxHoldingMinutesint17
InpUsePositionCountStopboolfalse
InpPositionCountStopint100
InpMaxPositionsint9999999
InpUseWeekendEntryGuardboolfalse
InpWarnIfChartNotM1booltrue
InpPrintDebugbooltrue
InpCloseRetrySecondsint2retry interval while basket is closing
InpCloseMaxAttemptsint00 = unlimited
InpUseCloseByForHedgebooltrue

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone hutamisiina/MQL_EA 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

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

Experienced FX Trader

by simonokwundue-ops
1 stars

This collection of Expert Advisors for MetaTrader 5 provides high-frequency scalping and multi-strategy automated trading across multiple currency pairs. The robots utilize a signal scoring system based on moving average crossovers, RSI momentum, Bollinger Band breakouts, and MACD signals. The suite includes a dedicate

MT5 Trading robot ScalpingBreakoutIndicator crossover
Updated 10 months ago None stated GitHub repository of Experienced FX Trader

Fibonacci Expert

by ismail505
1 stars

Fibonacci Expert is a MetaTrader 5 robot that calculates Fibonacci levels using price extremes from a user-defined timeframe. It automatically places various pending orders, including buy stops, sell stops, buy limits, and sell limits, at specified intervals relative to these levels. The EA manages risk through individ

MT5 Trading robot BreakoutMean reversionHedging
Updated 3 years ago None stated GitHub repository of Fibonacci Expert

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 6 weeks 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 2 months ago None stated GitHub repository of Straddle Grid

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