Trading robot ยท MT5

Breakout Scalper

by TBS-Bettaieb

This MetaTrader 5 expert advisor executes a breakout scalping strategy, primarily designed for major currency pairs like EURUSD and GBPUSD on the M5 timeframe.

GitHub stars1
Forks0
Last update9 months ago13 Dec 2025
LicenceNone stated

Overview

Breakout Scalper identifies trading opportunities using swing detection over a specific number of bars and places pending stop orders at calculated distances. The EA includes comprehensive trade management features such as fixed stop loss and take profit levels, trailing stops, and a unique multi-level trailing take profit system. Risk is managed through percentage-based lot sizing, session-specific risk multipliers, and an integrated news filter to pause trading during high-impact economic releases.

Details

Author

TBS-Bettaieb on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Scalping

Markets

Forex

Timeframes

M1-M5

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.

Input parameters

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

NameTypeDefaultDescription
InpStrategyNamestringForex Scalper V1.1Strategy Name
InpStrategyCommentstringScalping RobotStrategy Comment
InpBaseMagicNumberint298347Base Magic Number
InpDefaultSymbolsstringEURUSD,GBPUSDSymbols List (comma separated)
InpUseAllMarketWatchboolfalseUse All Market Watch Symbols
InpTradingTimeframeENUM_TIMEFRAMESPERIOD_M5Trading Timeframe
InpRiskPercentdouble4.0Risk Percent (% of capital divided by symbol count)
InpTpPointsint200Take Profit Points (10 points = 1 pip)
InpSlPointsint180Stop Loss Points (10 points = 1 pip)
InpTslTriggerPointsint10TSL Trigger Points (profit before TSL activates)
InpTslPointsint10TSL Points (trailing stop distance)
InpStartHourint7Start Hour
Show all 40 inputs
NameTypeDefaultDescription
InpEndHourint20End Hour
InpBarsAnalysisint5Bars Analysis
InpExpirationBarsint50Expiration Bars
InpOrderDistancePointsint80Order Distance (Points)
InpSlippagePointsint10Slippage Tolerance (Points)
InpEntryOffsetPointsint0Entry Offset for Stop Orders (Points)
InpSwingDetectionModeENUM_SWING_DETECTION_MODESWING_DETECTION_WICKSwing Detection Mode
InpUseTrailingTPbooltrueUse Trailing TP
InpTrailingTPModeENUM_TRAILING_TP_MODETRAILING_TP_STEPPEDTrailing TP Mode
InpCustomTPLevelsstring25:0:0, 50:25:25, 75:40:50, 100:60:100, 125:75:150Custom TP Levels
InpUseRiskMultiplierboolfalseUse Risk Multiplier
InpRiskMultStartHourint13Risk Multiplier Start Hour
InpRiskMultStartMinuteint0Risk Multiplier Start Minute
InpRiskMultEndHourint17Risk Multiplier End Hour
InpRiskMultEndMinuteint0Risk Multiplier End Minute
InpRiskMultiplierdouble1.5Risk Multiplier Value
InpRiskMultDescriptionstringLondon-NY OverlapRisk Multiplier Description
InpUseNewsFilterboolfalseUse News Filter
InpNewsCurrenciesstringUSD,EUR,GBPAffected Currencies (comma separated)
InpKeyNewsEventsstringNFP,JOLTS,Nonfarm,PMI,Interest Rate,CPI,GDPHigh Impact Events
InpStopBeforeNewsMinint30Minutes Before News to Stop Trading
InpStartAfterNewsMinint10Minutes After News to Resume Trading
InpNewsLookupDaysint7Days Ahead to Check News
InpNewsSeparatorENUM_SEPARATORCOMMAList Separator (COMMA or SEMICOLON)
InpNewsBlockMsgstring๐Ÿ“ฐ TRADING PAUSED - High Impact News EventNews Block Message
InpHourBlockMsgstringโฐ TRADING PAUSED - Outside Trading HoursHour Block Message
InpBothBlockMsgstring๐Ÿšซ TRADING PAUSED - Outside Trading ScheduleBoth Block Message
InpLogLevelENUM_LOG_LEVELLOG_INFOLog Level (DEBUG/INFO/WARNING/ERROR)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone TBS-Bettaieb/breakout-scalper 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

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

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet
5 stars

Universal Market Hunter is an automated trading robot for MetaTrader 5 that targets Forex, gold, and cryptocurrency markets. It allows users to switch between two main strategies: a Bollinger Band volatility breakout and an engulfing price action pattern using volume confirmation. The system manages risk through ATR-ca

MT5 Trading robot BreakoutScalpingTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Universal Market Hunter

High Frequency Scalper

by Pusparaj99op
5 stars

This MetaTrader 5 expert advisor is designed for scalping gold on the M1 timeframe. It features a versatile strategy engine capable of toggling between breakout and mean-reversion modes based on market conditions. The system manages trades using ATR-based trailing stops, break-even adjustments, and time-based exits. Ri

MT5 Trading robot ScalpingBreakoutMean reversion
4 stars

Gold SnR Momentum Scalper Pro is an automated scalping robot for MetaTrader 5, specifically optimized for XAUUSD on the M1 timeframe. It identifies entry points by combining support and resistance zones with RSI and moving average momentum. The system incorporates tick-level analysis to measure buying and selling press

MT5 Trading robot ScalpingBreakoutMean reversion
Updated 3 months ago Custom licence GitHub repository of Gold SnR Momentum Scalper Pro
2 stars

This Expert Advisor for MetaTrader 5 implements a stop-and-reverse trading strategy using pending stop orders. It places Buy Stop and Sell Stop orders that trail price movements in a single direction to tighten the entry point. Once a position is active, the EA maintains an opposite pending order as a reversal trigger,

MT5 Trading robot BreakoutScalping

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