Collection · MT5

MQL5 Snippet Codes

by a2gs

This repository is a collection of MQL5 utility scripts and snippets for the MetaTrader 5 platform.

GitHub stars1
Forks2
Last update6 years ago14 May 2020
LicenceMIT

Overview

MQL5 Snippet Codes includes tools for dumping account details, active positions, and trade history directly into the terminal log for debugging or monitoring. Other components demonstrate SQLite database integration, price alerts, and graphical user interface elements like labels and key event handling. It is primarily designed as a developer resource or diagnostic toolset rather than an automated trading system, as it lacks a built-in entry strategy or risk management logic beyond basic code examples.

Details

Author

a2gs on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Markets

Any symbol

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.

Input parameters

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

NameTypeDefaultDescription
DUMP_ORDERSbooltrueDump Orders
DUMP_POSITIONSbooltrueDump Positions
DUMP_DEALSboolfalseDump Deals
DUMP_TRADEbooltrueDump Trade Transaction
DUMP_ALL_FIELDSbooltrueDump ALL Trade fields

How to install it

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

643 stars

This collection of MetaTrader 5 expert advisors implements various technical strategies using indicators such as Moving Averages, MACD, and the Andean Oscillator. It includes a specific tool for trading based on Commitment of Traders data combined with SuperTrend signals. Most robots in the repository incorporate a gri

MT5 Collection Indicator crossoverScalpingGrid High risk
464 stars

This repository features a collection of trading tools for MetaTrader 5 and 4, headlined by a comprehensive Trade Manager EA. This manager enables manual execution via keyboard shortcuts and provides automated risk controls, including ATR-based break-even settings and trailing stops. The collection also offers strategy

MT4MT5 Collection BreakoutHedging
167 stars

This repository provides a containerized environment for MetaTrader 5 using Docker, Alpine Linux, and Wine64. It includes a VNC server with an Openbox GUI for remote management and features Python integration via pyzmq for data feeding. The collection includes various MetaTrader 5 expert advisors, ranging from a 3D cor

MT5 Collection Indicator crossoverGrid High risk
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
135 stars

This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri

MT4MT5 Collection Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of Nkanven EA Collection
131 stars

This collection of MetaTrader 5 expert advisor samples supplements the Darwinex educational video series on advanced MQL5 programming. It provides technical implementations for multi-symbol trade management and institutional-grade risk controls. The codebase includes specialized modules for calculating custom performan

MT5 Collection
Updated 4 years ago BSD-3-Clause GitHub repository of Darwinex Advanced MQL Samples

More collections

Need a broker for MT5?

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

Compare brokers