Trading robot ยท MT5

Candle Pattern Breakout Reversal

by handiko

This MetaTrader 5 expert advisor implements a candlestick pattern breakout and mean-reversion strategy.

GitHub stars2
Forks1
Last update3 months ago7 Jun 2026
LicenceNone stated

Overview

Candle Pattern Breakout Reversal identifies specific sequences of three candles to determine market entry points. The robot places pending buy stop, sell stop, and buy limit orders at fixed distances from previous price extremes to target liquidity zones. Risk is managed through fixed lot sizes and mandatory stop loss levels, with take profits calculated using a reward-to-risk ratio. Originally designed for the daily timeframe, the code is structured modularly for optimization across various currency pairs and indices.

Details

Author

handiko on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, Mean reversion

Markets

Forex, Indices

Timeframes

H4 and above

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.

Topics

mql5mql5-strategytrading-strategies

Input parameters

Read from Candle Pattern - USDJPY.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InpExpirationHoursint60Expiration Hours
InpLotdouble1.0Lot (fixed)
InpPendingDist1int200Liquidity Distance (points)
InpPattern1ENUM_CANDLE_PATTERNUDDCandle Pattern
InpRewardToRisk1double1.4Reward to Risk Ratio
InpStopLoss1int850StopLoss (points)
InpPendingDist2int250Liquidity Distance (points)
InpPattern2ENUM_CANDLE_PATTERNUDDCandle Pattern
InpRewardToRisk2double0.8Reward to Risk Ratio
InpStopLoss2int450StopLoss (points)
InpPendingDist3int500Liquidity Distance (points)
InpPattern3ENUM_CANDLE_PATTERNUDDCandle Pattern
Show all 14 inputs
NameTypeDefaultDescription
InpRewardToRisk3double0.8Reward to Risk Ratio
InpStopLoss3int850StopLoss (points)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone handiko/Improvement-to-an-existing-strategy 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

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

Nolo Trading Bot

by festomanolo
4 stars

This expert advisor for MetaTrader 5 is a multi-strategy system that utilizes market regime detection to switch between trend following, range trading, and breakout modes. It incorporates a wide array of technical indicators, including Moving Averages, RSI, MACD, Ichimoku, and SuperTrend. The bot manages risk through v

MT5 Trading robot Trend followingMean reversionBreakout High risk
Updated 6 months ago MIT GitHub repository of Nolo Trading Bot
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
3 stars

This automated expert advisor for MetaTrader 5 implements a mean-reversion strategy based on Asian session price ranges. It identifies the high and low levels during specific Asian trading hours and monitors for a price breakout. Instead of trading the breakout momentum, it enters a position when price returns inside t

MT5 Trading robot Mean reversionBreakout
Updated 1 year ago None stated GitHub repository of Asian Range Breakout

Xauusd God MT5

by techly39
3 stars

This MetaTrader 5 expert advisor is designed specifically for trading gold (XAUUSD). The system utilizes a modular architecture to detect market regimes, identify ranges, and execute trades based on liquidity sweeps and breakouts. It incorporates several filters, including spread and volume checks, alongside a drawdown

MT5 Trading robot BreakoutSMC / ICT / price actionMean reversion
Updated 10 months ago None stated GitHub repository of Xauusd God MT5

EA SMC Engine

by Pauloeduspbr
3 stars

This automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following
Updated 5 months ago MIT GitHub repository of EA SMC Engine

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