Framework & template · MT5

MT5 Agent Toolkit

by smizxe

MT5 Agent Toolkit is a developer framework and collection of expert advisors designed to automate the creation and testing of MQL5 strategies using AI agents.

GitHub stars18
Forks2
Last update3 weeks ago30 Aug 2026
LicenceCustom licence

Overview

MT5 Agent Toolkit provides headless PowerShell scripts to bypass common MetaTrader 5 command-line failures during compilation and backtesting. The included example robots, such as RsiLevel, execute trades based on Relative Strength Index thresholds. These EAs feature built-in risk management including percentage-based lot sizing, fixed stop loss and take profit levels, spread filters, and daily entry limits. The system focuses on reliable headless execution for automated development workflows.

Details

Author

smizxe on GitHub

Type

Framework & template

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, Indicator crossover

Markets

Forex

Timeframes

Any timeframe

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

ai-agentsalgorithmic-tradingautomationbacktestingclaude-codecodexdeveloper-toolsexpert-advisorforexmetaeditor

Input parameters

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

NameTypeDefaultDescription
InpRsiPeriodint14RSI period
InpBuyLeveldouble30.0Buy while RSI is below this
InpSellLeveldouble70.0Sell while RSI is above this
InpRiskPercentdouble1.0Risk per trade, % of balance
InpStopLossPointsint300Stop loss, points
InpTakeProfitPointsint600Take profit, points, 0 = none
InpMaxPositionsint1Max simultaneous positions
InpMaxTradesPerDayint5Max entries per day, 0 = no limit
InpMaxSpreadPointsint30Max spread allowed, points
InpMagiclong20260808Magic number
InpCommentstringRsiLevelOrder comment

How to install it

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

2 stars

This MetaTrader 4 expert advisor and modular framework provides advanced trade management and position scaling capabilities. It features a linear trailing stop that triggers at a predefined profit level and a pyramiding system to add positions to winning trades using a lot multiplier. The code is structured as a librar

MT4 Framework & template Trend followingIndicator crossoverGrid High risk

Gartal Inc

by bsAmirHeydar
1 stars

Gartal Inc is a modular trading automation framework and strategy development template for MetaTrader 4. It provides a structured environment for testing various entry and exit logic, including Fair Value Gaps, moving average crossovers, and Donchian channels. The repository focuses on backtesting workflows, featuring

MT4 Framework & template SMC / ICT / price actionIndicator crossoverTrend following
Updated 3 months ago None stated GitHub repository of Gartal Inc
27 stars

This MetaTrader 5 expert advisor serves as a foundational template for building automated trading systems. The README is minimal, but the code provides a structured framework for beginners to implement custom entry and exit logic using price data and technical indicators. It includes examples of Exponential Moving Aver

MT5 Framework & template Indicator crossoverSMC / ICT / price action

X-Tick Chart SDK

by 9nix6
18 stars

This repository provides a software development kit and a collection of example Expert Advisors for MetaTrader 5 designed to work with custom tick and volume bar charts. It includes template robots that execute trades based on moving average crossovers or price action relative to moving averages on non-time-based chart

MT5 Framework & template Indicator crossover
Updated 5 years ago GPL-3.0 GitHub repository of X-Tick Chart SDK
16 stars

This framework provides MQL5 header files and example expert advisors designed to trade on non-time-based Range Bar charts within MetaTrader 5. It includes template robots for moving average crossovers and Super Trend strategies. The included code manages trade execution with configurable stop loss, take profit, break-

MT5 Framework & template Indicator crossoverTrend following

Orchard Simple EA Template

by OrchardForexTutorials
13 stars

This collection provides educational templates for building MetaTrader 5 Expert Advisors. It includes demonstration robots that interface with indicators like MACD and Parabolic SAR using the iCustom function. The repository serves as a learning resource for structuring MQL5 code and handling trade execution. Each exam

MT5 Framework & template Indicator crossoverTrend following

More frameworks and templates

Need a broker for MT5?

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

Compare brokers