Trading robot · MT5

Introduction MQL5 Book EA

by rafaelfvcs

This MetaTrader 5 expert advisor serves as an educational example from a book on MQL5 programming.

GitHub stars52
Forks38
Last update6 years ago23 Mar 2020
LicenceNone stated

Overview

Introduction MQL5 Book EA implements a versatile trading system that can be configured to use moving average crossovers, Relative Strength Index levels, or both indicators combined for trade entries. The EA manages risk with user-defined stop loss and take profit levels and uses fixed lot sizing. A notable feature is the inclusion of a daily time-based exit, which automatically closes open positions at a specified hour. It is designed for users learning automated strategy development.

Details

Author

rafaelfvcs on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Indicator crossover, Mean reversion

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 MA_CROS_RSI.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
s0stringStrategy
strategySTRATEGY_INONLY_MATrader Entry Strategy
s1stringMoving Averages
ma_fast_periodint12Fast Moving Average Period
ma_slow_periodint32Slow Moving Average Period
ma_time_graphicENUM_TIMEFRAMESPERIOD_CURRENTGraphic Time
ma_methodENUM_MA_METHODMODE_EMAMethod
ma_priceENUM_APPLIED_PRICEPRICE_CLOSEPrice Applied
s2stringRSI
rsi_periodint5RSI Period
rsi_time_graphicENUM_TIMEFRAMESPERIOD_CURRENTGraphic Time
rsi_priceENUM_APPLIED_PRICEPRICE_CLOSEPrice Applied
Show all 20 inputs
NameTypeDefaultDescription
rsi_overboughtint70Level Overbought
rsi_oversoldint30Level Oversold
s3string
num_lotsint100Number of lots
TKdouble60Take Profit
SLdouble30Stop Loss
s4string
limit_close_opstring17:40Time Limit Close Position

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone rafaelfvcs/Introduction-to-MetaTrader5-and-MQL5---book 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

Allegro Stormer

by ReneMilare
28 stars

Allegro Stormer is a MetaTrader 5 expert advisor that implements a specific technical setup based on momentum and oscillator indicators. It utilizes a Momentum indicator filtered by a moving average alongside a Stochastic Oscillator to identify entry points. Risk management is centralized around the Average True Range,

MT5 Trading robot Mean reversionIndicator crossover
Updated 6 years ago None stated GitHub repository of Allegro Stormer

Scalpflip EA

by anthonycdp
25 stars

Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index

MT5 Trading robot ScalpingTrend followingMean reversion
Updated 1 year ago None stated GitHub repository of Scalpflip EA

MonsterFX Reliable Trader

by NadirAliOfficial
12 stars

This MetaTrader 5 expert advisor combines automated Forex trading with a Discord notification system via a Python Flask webhook. It executes a dual-timeframe strategy using EMA crossovers, a 200-period trend filter, RSI, and VWAP on the M5 and M15 charts. The EA manages trades with ATR-based stop loss and take profit l

MT5 Trading robot Indicator crossoverTrend followingMean reversion

FG Scalping Pro

by FaizGusion00
11 stars

FG Scalping Pro is an automated trading system for MetaTrader 5 that utilizes a multi-indicator approach to identify entry points. It combines exponential moving average crossovers with RSI momentum and Bollinger Band volatility filters to execute trades. The EA manages risk through dynamic ATR-based stop loss and take

MT5 Trading robot ScalpingIndicator crossoverMean reversion
Updated 1 year ago Custom licence GitHub repository of FG Scalping Pro
10 stars

This expert advisor for MetaTrader 5 automates trade entries using a combination of Relative Strength Index (RSI), Money Flow Index (MFI), and multiple Moving Average periods. It identifies potential entry points based on overbought and oversold thresholds, specifically looking for RSI values below 30 or MFI values bel

MT5 Trading robot Mean reversionIndicator crossover
Updated 3 years ago None stated GitHub repository of Emreguven Forex Trading Bot

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