Trading robot · MT5

BTMM Expert Advisor

by FullscopeContractors

This MetaTrader 5 expert advisor automates the Breakout-To-Market-Maker (BTMM) strategy, featuring eight distinct intraday setups including M/W patterns, NYC reversals, and EMA200 bounces.

GitHub stars1
Forks0
Last update3 months ago21 Jun 2026
LicenceNone stated

Overview

BTMM Expert Advisor employs a signal arbitration engine to score and prioritize trades based on confluence, liquidity, and regime alignment. Risk management is comprehensive, including equity drawdown circuit breakers, daily and weekly loss limits, and consecutive loss suspensions. The EA supports both fixed and percentage-based lot sizing, utilizes trailing stops, and includes an execution retry framework to handle transient broker errors.

Details

Author

FullscopeContractors on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Mean reversion, Indicator crossover, Multi-strategy

Markets

Forex

Timeframes

M15-H1

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

EA files

Input parameters

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

NameTypeDefaultDescription
InpMagicNumberint20240101Magic number
InpGMTOffsetint2Broker GMT offset (hours)
InpAutoDetectGMTboolfalseAuto-detect GMT offset
InpEnableTradingbooltrueAuto-open trades on signal
InpRiskPctdouble1.0Risk per trade (% of balance)
InpMaxLotsdouble10.0Maximum lot size
InpUseFixedLotsbooltrueUse fixed lot size
InpFixedLotsdouble0.1Fixed lot size (if enabled)
InpMinConfluenceint50Minimum confluence score (0-100)
InpTrade_MW_Leg2booltrueTrade: M/W Leg 2 (bread & butter)
InpTrade_33booltrueTrade: 33 Setup
InpTrade_NYCbooltrueTrade: NYC Reversal
Show all 40 inputs
NameTypeDefaultDescription
InpTrade_EMA200booltrueTrade: EMA200 Bounce
InpTrade_SwingboolfalseTrade: Swing (manual preferred)
InpTrade_StraightboolfalseTrade: Straightaway
InpTrade_HalfBatboolfalseTrade: Half Batman
InpTrade_StopHuntboolfalseTrade: Stop Hunt Fade (1st leg)
InpTradeAsiaLondonbooltrueTrade Asia/London window (01-05 ET)
InpTradeUSOpenbooltrueTrade US Open window (08-11 ET)
InpRequireTimeWindowboolfalseRestrict entries to session windows only
InpAvoidNFPbooltrueAvoid Non-Farm Payroll (Fri 08:30 ET)
InpAvoidDecJanbooltrueAvoid mid-Dec through mid-Jan
InpUseTrailingStopbooltrueUse 32-pip trailing stop
InpUseScaleInbooltrueUse 5:4:3:2:1 scale-in
InpScratchTradesbooltrueScratch if no move within 2h
InpTP1_Pipsdouble50.0TP1 (initial target, pips)
InpMaxOpenRiskPctdouble3.0Max open portfolio risk (%)
InpMaxDailyLossPctdouble5.0Max daily loss (%)
InpMaxWeeklyLossPctdouble10.0Max weekly loss (%)
InpMaxOpenTradesint3Max simultaneous trades
InpMaxSpreadPipsdouble3.0Max spread (pips)
InpMaxExposurePctdouble15.0Max symbol exposure (%)
InpEnableEquityProtectionbooltrue
InpMaxEquityDrawdownPercentdouble15.0
InpPersistProtectionStatebooltrue
InpMaxExecutionRetriesint3
InpRetryDelayMillisecondsint250
InpLogRetryAttemptsbooltrue
InpMaxConsecutiveLossesint5
InpPersistConsecutiveLossStatebooltrue

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone FullscopeContractors/BTMM-EA-Production 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, and any .mqh files into the Include folder the code expects.
  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

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

Gold Trader EA

by mehdi-jahani
141 stars

Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n

MT5 Trading robot Multi-strategyTrend followingIndicator crossover
Updated 1 year ago None stated GitHub repository of Gold Trader EA
4 stars

This MetaTrader 5 expert advisor utilizes a combination of Bollinger Bands, Relative Strength Index, and Average Directional Index to identify entries. It supports multi-timeframe analysis for trend confirmation and provides optional filters for Average True Range and price action patterns such as hammers. Risk managem

MT5 Trading robot Trend followingMean reversionSMC / ICT / price action High risk
Updated 1 year ago None stated GitHub repository of Alif BB RSI ADX MTFA

SOEA Master

by bfforex
3 stars

This MetaTrader 5 robot employs a dual-strategy approach, switching between trend-following moving average crossovers and RSI-based mean-reversion depending on detected market regimes. It features an integrated walk-forward optimization system that loads optimized parameters from external files to adapt to changing vol

MT5 Trading robot Trend followingMean reversionIndicator crossover
Updated 11 months ago MIT GitHub repository of SOEA Master

Forex Master Multi Strategy

by simonokwundue-ops
2 stars

This MetaTrader 5 expert advisor utilizes a weighted signal scoring system to execute trades based on four technical indicators: Moving Average crossovers, RSI, Bollinger Bands, and MACD. It incorporates multi-timeframe analysis across M15, M30, and H1 periods to confirm trend direction. Risk management features includ

MT5 Trading robot Indicator crossoverMean reversionTrend following
Updated 10 months ago None stated GitHub repository of Forex Master Multi Strategy

Fibonacci ICT EA

by Shifrozy
2 stars

Fibonacci ICT EA for MetaTrader 5 combines institutional price action concepts with Fibonacci retracement levels. It identifies higher timeframe trends and enters on pullbacks to specific golden zones using confirmations like Break of Structure and Fair Value Gaps. The system includes robust risk management such as per

MT5 Trading robot SMC / ICT / price actionIndicator crossoverMean reversion High risk
Updated 3 weeks ago None stated GitHub repository of Fibonacci ICT EA

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