Trading robot · MT5

RSI EA

by EarnForex

RSI EA is a MetaTrader 5 robot designed to execute trades based on the Relative Strength Index indicator.

GitHub stars14
Forks6
Last update2 years ago4 Mar 2024
LicenceApache-2.0
Latest release1.002 years ago

Overview

RSI EA functions as a template for mean-reversion strategies, triggering entries when the indicator crosses specific overbought and oversold thresholds. The expert advisor features comprehensive risk controls, including fixed or percentage-based position sizing and ATR-based exit levels. Users can configure fixed stop-loss and take-profit points, partial closing logic, and maximum spread filters. It also includes a time filter to restrict trading to specific hours and a limit on the maximum number of concurrent positions.

Details

Author

EarnForex on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Trades without a fixed stop loss

Topics

expert-advisorforexforex-marketforex-tradingindicatormetatradermetatrader5mql5mt5robot

Input parameters

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

NameTypeDefaultDescription
Comment_0string==========EA-Specific Parameters
RSIPeriodint14RSI period
RSIOverboughtdouble80RSI overbought level
RSIOversolddouble20RSI oversold level
RSIPriceENUM_APPLIED_PRICEPRICE_CLOSERSI applied price
Comment_1string==========Trading Hours Settings
UseTradingHoursboolfalseLimit trading hours
TradingHourStartENUM_HOURh07Trading start hour (Broker server hour)
TradingHourEndENUM_HOURh19Trading end hour (Broker server hour)
Comment_2string==========ATR Settings
ATRPeriodint100ATR period
ATRTimeFrameENUM_TIMEFRAMESPERIOD_CURRENTATR timeframe
Show all 40 inputs
NameTypeDefaultDescription
ATRMultiplierSLdouble2ATR multiplier for stop-loss
ATRMultiplierTPdouble3ATR multiplier for take-profit
Comment_astring==========Risk Management Settings
RiskDefaultSizeENUM_RISK_DEFAULT_SIZERISK_DEFAULT_FIXEDPosition size mode
DefaultLotSizedouble0.1Position size (if fixed or if no stop loss defined)
RiskBaseENUM_RISK_BASERISK_BASE_BALANCERisk base
MaxRiskPerTradeint2Percentage to risk each trade
MinLotSizedouble0.01Minimum position size allowed
MaxLotSizedouble100Maximum position size allowed
MaxPositionsint1Maximum number of positions for this EA
Comment_bstring==========Stop-Loss and Take-Profit Settings
StopLossModeENUM_MODE_SLSL_FIXEDStop-loss mode
DefaultStopLossint0Default stop-loss in points (0 = no stop-loss)
MinStopLossint0Minimum allowed stop-loss in points
MaxStopLossint5000Maximum allowed stop-loss in points
TakeProfitModeENUM_MODE_TPTP_FIXEDTake-profit mode
DefaultTakeProfitint0Default take-profit in points (0 = no take-profit)
MinTakeProfitint0Minimum allowed take-profit in points
MaxTakeProfitint5000Maximum allowed take-profit in points
Comment_cstring==========Partial Close Settings
UsePartialCloseboolfalseUse partial close
PartialClosePercdouble50Partial close percentage
ATRMultiplierPCdouble1ATR multiplier for partial close
Comment_dstring==========Additional Settings
MagicNumberint0Magic number
OrderNotestringComment for orders
Slippageint5Slippage in points
MaxSpreadint50Maximum allowed spread to trade, in points

How to install it

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

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

GridMaster Pro

by sajidmahamud835
128 stars

An automated MetaTrader 5 expert advisor that executes a bi-directional grid trading strategy. It uses the Average True Range (ATR) indicator to dynamically calculate grid spacing, allowing the system to adapt to current market volatility. The robot supports neutral, bullish, and bearish modes. It includes risk managem

MT5 Trading robot GridMean reversion High risk
Updated 5 months ago MIT GitHub repository of GridMaster Pro
52 stars

This MetaTrader 5 expert advisor serves as an educational example from a book on MQL5 programming. It 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 l

MT5 Trading robot Indicator crossoverMean reversion
Updated 6 years ago None stated GitHub repository of Introduction MQL5 Book EA

Spike Trader

by EarnForex
29 stars

Spike Trader is a price action robot for MetaTrader 4 and 5 that identifies price spikes to trade market reversals. It monitors candle highs or lows relative to preceding bars and requires a specific percentage price jump and candle close position to trigger an entry. The EA enters trades in the opposite direction of t

MT4MT5 Trading robot Mean reversion
Updated 1 year ago Apache-2.0 GitHub repository of Spike Trader

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

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