Trading robot · MT5

Multi Filter MA MT5

by lc5758

This MetaTrader 5 expert advisor implements a multi-timeframe trading strategy across M1, M5, and M15 intervals.

GitHub stars1
Forks0
Last update3 months ago9 Jun 2026
LicenceNone stated

Overview

Multi Filter MA MT5 utilizes a seven-period Exponential Moving Average system ranging from EMA 30 to EMA 60 to identify market conditions. When EMAs are aligned, it executes trend-following trades; in consolidated markets, it employs a combination of Stochastic oscillators, Parabolic SAR, and Bollinger Bands for entries. Risk controls include candle-based stop losses, multi-stage take profits at fixed ratios, trailing stops based on the EMA60, and automated break-even adjustments. Lot sizing is calculated relative to account balance.

Details

Author

lc5758 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Mean reversion, Indicator crossover, Multi-strategy

Markets

Any symbol

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.

Input parameters

Read from 三周期新版_MT5_v5_KDJ_fixed.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
MagicBaseulong123456魔术号基础值
Slippageint30?
EnableM1booltrue启用M1周期
EnableM5booltrue启用M5周期
EnableM15booltrue启用M15周期
LotPer1000double0.02每1000余额开仓手数
MaxLotdouble1.0最大开仓手数
MA30_Periodint30EMA30周期
MA35_Periodint35EMA35周期
MA40_Periodint40EMA40周期
MA45_Periodint45EMA45周期
MA50_Periodint50EMA50周期
Show all 40 inputs
NameTypeDefaultDescription
MA55_Periodint55EMA55周期
MA60_Periodint60EMA60周期
MinMatchMode_Alignedint2均线排列时HAK/SAP最低匹?
MinMatchMode_Mixedint2均线缠绕时HAK/SAP最低匹?
Stoch_Kint26K线周期
Stoch_Dint3D线周期
Stoch_Slowint9?
Stoch_MethodENUM_MA_METHODMODE_EMA平滑方法
Stoch_PriceENUM_STO_PRICESTO_LOWHIGH价格类型
Stoch_Oversoldint30?
Stoch_Overboughtint70?
SAP_Stepdouble0.02SAR步进值
SAP_Maximumdouble0.2SAR最大值
HAK_Countint2连续阳线/阴线确认根数
SL_BufferUSDdouble1.0止损金额缓冲(USD)
SL_LookbackBarsint10K线回看根数
SAP_SL_Offsetint200SAR止损偏移(点)
MinStopDistance_Pointsint500最小止损距离(点)
BB_Periodint20布林带周期
BB_Deviationdouble2.0布林带标准差倍数
MaxBBWidthUSDdouble0布林带宽度过滤(USD),0=?
TP1_Ratiodouble1.01:1分批止盈比例
TP2_Ratiodouble5.0多倍止盈?
TrailOffsetUSDdouble0.1EMA60追踪止损偏移(USD)
TrailStepUSDdouble0.5EMA60追踪步进(USD)
BreakevenBufferUSDdouble1.0保本止损缓冲(USD)
M1_TrailStop_Pointsint300M1跟踪止损距离(点)
M1_TrailStep_Pointsint100M1跟踪止损步进(点)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone lc5758/MT5-EA-Collection 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

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

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

Golden7

by edisonq
1 stars

Golden7 is an automated trading system for MetaTrader 5 that utilizes a weighted confluence engine across seven technical indicators, such as Moving Averages, RSI, and Bollinger Bands. It uniquely allows users to input a manual fundamental bias score to influence trade direction. The robot includes a robust filtering s

MT5 Trading robot Trend followingIndicator crossoverMean reversion
Updated 11 months ago None stated GitHub repository of Golden7

Edelweiss EA

by Attornado
3 stars

Edelweiss EA is an educational trading robot for MetaTrader 4 that utilizes a multi-indicator framework to generate buy and sell signals. It combines exponential moving averages, stochastic oscillators, the awesome oscillator, ADX, and Bollinger Bands to identify market entries. Trade management includes dynamic ATR-ba

MT4 Trading robot Indicator crossoverMean reversionTrend following
Updated 11 months ago MIT GitHub repository of Edelweiss EA

EA31337

by EA31337
1.3k stars

EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat

MT5 Trading robot Multi-strategyNewsTrend following
Updated 5 months ago GPL-3.0 GitHub repository of EA31337

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