Collection · MT5

EA Trading Guide

by thenaritlab

This collection provides educational Expert Advisors for the MetaTrader 5 platform, showcasing different algorithmic approaches for beginners and intermediate traders.

GitHub stars1
Forks0
Last update2 weeks ago4 Sep 2026
LicenceMIT

Overview

EA Trading Guide features a moving average crossover system and a more advanced mean reversion robot based on the Relative Strength Index. The included tools utilize volatility-based exits via Average True Range multipliers for both stop loss and take profit orders. Traders can control risk through automated lot sizing based on account equity percentages. The system includes a trend filter using a 200-period moving average, a trailing stop mechanism, and time-based trading filters to limit activity.

Details

Author

thenaritlab on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Mean reversion, Indicator crossover

Markets

Any symbol

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.

Input parameters

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

NameTypeDefaultDescription
InpRSIPeriodint14RSI Period
InpOversolddouble30RSI Oversold level
InpOverboughtdouble70RSI Overbought level
InpTrendMAint200Trend filter MA Period
InpATRPeriodint14ATR Period
InpATRStopMultdouble2.0Stop Loss = ATR x
InpATRTPMultdouble3.0Take Profit = ATR x
InpRiskPercentdouble1.0Risk per trade (%)
InpUseTrailingbooltrueUse Trailing Stop
InpTrailATRMultdouble1.5Trailing distance = ATR x
InpStartHourint7Trading start hour (server time)
InpEndHourint20Trading end hour (server time)
Show all 14 inputs
NameTypeDefaultDescription
InpMaxSpreadint30Max spread (points)
InpMagicint100002Magic Number

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone thenaritlab/ea-trading-guide 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

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
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
41 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

This repository provides a diverse collection of MetaTrader 5 expert advisors focusing on technical indicator automation. The core component aggregates signals from a wide array of standard tools, including trend-following moving averages, oscillators like RSI and MACD, and Bill Williams indicators. It includes specifi

MT5 Collection Trend followingIndicator crossoverMulti-strategy
8 stars

This collection of MetaTrader 5 expert advisors serves as an educational resource for MQL5 programming. It contains multiple example robots utilizing technical indicators such as Moving Averages, Parabolic SAR, CCI, and Stochastic oscillators. The provided scripts demonstrate fundamental trading automation features inc

MT5 Collection Indicator crossoverTrend followingMean reversion
4 stars

This repository is a collection of MetaTrader 5 expert advisors developed as early coding projects between 2021 and 2024. It includes multiple robots implementing varied strategies such as range breakouts, Donchian channels, Fibonacci retracements, and Bollinger Bands. The expert advisors are largely technical indicato

MT5 Collection Trend followingBreakoutMean reversion High risk

More collections

Need a broker for MT5?

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

Compare brokers