Collection · MT5

MT5 Auto Backtest Pipeline

by 26730023-PhamPhuNguyenHung

This repository features a headless CLI automation pipeline for MetaTrader 5, enabling users to compile, backtest, and rank MQL5 Expert Advisors through PowerShell.

GitHub stars4
Forks1
Last update5 months ago23 Apr 2026
LicenceMIT

Overview

MT5 Auto Backtest Pipeline contains a large collection of robots focused on candlestick patterns, such as Morning and Evening Star signals, combined with Stochastic or CCI filters. The system automates high-volume testing across multiple symbols and timeframes, applying a weighted scoring formula to identify strategies. Included EAs manage risk via fixed stop loss, take profit, and maximum bar-holding durations. While the provided samples use fixed lot sizing, the framework is designed to evaluate various strategy types.

Details

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Indicator crossover, Mean reversion

Markets

Forex, Gold

Timeframes

M1-M5, 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.

Topics

agentic-aialgorithmic-tradingautomationbacktestingexpert-advisorforexgold-tradingmetatrader5mql5powershell

Input parameters

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

NameTypeDefaultDescription
InpAverBodyPeriodint12period for calculating average candlestick size
InpStochKint47period %K
InpStochDint9period %D
InpStochSlowint13smoothing period %K
InpStochAppliedENUM_STO_PRICESTO_LOWHIGHcalculation type
InpStochMAENUM_MA_METHODMODE_SMAsmoothing type
InpDurationuint10position holding time in bars
InpSLuint200Stop Loss in points
InpTPuint200Take Profit in points
InpSlippageuint10slippage in points
InpLotdouble0.1lot
InpMagicNumberlong130400Magic Number

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone 26730023-PhamPhuNguyenHung/ex5-backtest 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

4 stars

This MetaTrader 4 collection provides several scripts designed to analyze price action and candlestick patterns. It includes modules for moving average crossovers, Bollinger Bands, and a specialized candlestick analysis tool. The software identifies specific formations such as hammers, dojis, and engulfing candles by c

MT4 Collection SMC / ICT / price actionIndicator crossoverMean reversion
Updated 5 years ago None stated GitHub repository of Candlestick Charts System
140 stars

This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti

MT5 Collection Indicator crossoverMean reversionTrend following
Updated 3 years ago None stated GitHub repository of Kecoma Trading Collection

Introducao MQL5 Collection

by RafaelFenerick
75 stars

This repository is a collection of educational expert advisors for MetaTrader 5, developed as part of an introductory MQL5 programming series. It includes multiple standalone robots utilizing common technical indicators such as moving average crossovers, Bollinger Bands, and the Relative Strength Index. The primary exp

MT5 Collection Indicator crossoverMean reversionMulti-strategy High risk
Updated 4 years ago None stated GitHub repository of Introducao MQL5 Collection
67 stars

This repository contains a collection of MetaTrader 5 expert advisors, primarily focused on the ChildsPlay strategy derived from online trading forums. The main expert advisor uses multiple exponential moving averages and the Commodity Channel Index across two timeframes to identify trend-following entries. It implemen

MT5 Collection Indicator crossoverMean reversionAI / machine learning
Updated 6 years ago None stated GitHub repository of ChildsPlay MQL5 Collection
61 stars

This collection features several expert advisors for the MetaTrader 5 platform, each built around a different technical indicator such as MACD, RSI, Parabolic SAR, and Ichimoku Kinko Hyo. The robots execute trades based on classic signal logic, including zero-line crossings and signal line crossovers. Users can configu

MT5 Collection Indicator crossoverTrend followingMean reversion
Updated 6 years ago Custom licence GitHub repository of Pipbolt MT5 Expert Collection
40 stars

This educational collection provides a foundation for building MetaTrader 5 expert advisors through a series of modular code snippets and a primary RSI-based trading robot. The included expert advisor executes trades based on Relative Strength Index overbought and oversold levels, supporting both live and closed candle

MT5 Collection Mean reversionIndicator crossoverTrend following

More collections

Need a broker for MT5?

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

Compare brokers