Trading robot · MT5

RL Agent Trader

by rezakarbasi

RL Agent Trader is an expert advisor for MetaTrader 5 that integrates with a Python-based reinforcement learning environment via network sockets.

GitHub stars12
Forks5
Last update2 years ago20 Mar 2024
LicenceNone stated

Overview

RL Agent Trader implements a breakout strategy based on the highest and lowest prices of previous candles. The core functionality relies on a Deep Q-Network (DQN) in Python to dynamically optimize the lookback period for entry signals and stop-loss placement. The system communicates real-time state data, including multi-timeframe price extremes, to the external agent. It manages trade execution with automated stop-loss adjustments and fixed lot sizing.

Details

Author

rezakarbasi on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, AI / machine learning

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.

Topics

dqnmetatradermqlrlsockettrade

Input parameters

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

NameTypeDefaultDescription
Hostnamestring127.0.0.1
ServerPortushort19968
lotdouble0.1

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone rezakarbasi/RL-agent-trader 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

Code To Cash

by LUBANGAKENE
9 stars

Code To Cash is an end-to-end algorithmic trading system for MetaTrader 5 that combines deep learning forecasts with technical breakout logic. It utilizes a ZeroMQ bridge to receive real-time market predictions from an external Python backend. The system enters trades using BuyStop or SellStop orders at recent price ex

MT5 Trading robot AI / machine learningBreakoutTrend following
Updated 1 year ago None stated GitHub repository of Code To Cash

Athena EA

by kecoma1
7 stars

Athena is a MetaTrader 5 expert advisor designed for intraday trading based on session range breakouts. The robot monitors price action during a specific user-defined time window to establish daily high and low boundaries. Once this window closes, it executes buy or sell orders when the current price breaches these lev

MT5 Trading robot BreakoutAI / machine learning
Updated 2 years ago None stated GitHub repository of Athena EA

GoldForge ML

by pw4654918-jpg
2 stars

GoldForge ML is a MetaTrader 5 expert advisor specialized for gold trading on the M15 timeframe using a machine learning ensemble. It combines CatBoost, XGBoost, and LightGBM models via ONNX with Smart Money Concepts such as liquidity sweeps and order blocks. The EA manages risk through ATR-based stop losses, trailing

MT5 Trading robot AI / machine learningSMC / ICT / price actionTrend following
Updated 5 months ago None stated GitHub repository of GoldForge ML

Gold ORB

by yulz008
295 stars

This MetaTrader 5 expert advisor implements an open range breakout strategy specifically designed for gold trading on the hourly timeframe. It identifies the high and low of the initial trading hour and establishes a definitive range after a user-defined consolidation period. Trades are triggered when price breaks thro

MT5 Trading robot Breakout
Updated 3 years ago None stated GitHub repository of Gold ORB

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

My Trading Bot

by carlosrod723
77 stars

This MetaTrader 5 expert advisor implements a multi-strategy framework based on Smart Money Concepts. It identifies fractal-based liquidity sweeps, order blocks, and Fibonacci zones across multiple timeframes, typically using H4 for trend direction and M15 for execution. The EA includes an optional machine learning fil

MT5 Trading robot SMC / ICT / price actionAI / machine learningMulti-strategy
Updated 10 months ago MIT GitHub repository of My 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