Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

Top libraries for MetaTrader 5 based on user ratings

Submit your code
PNG

Forget about BMP files like a bad dream. Thanks to this library, you can now use the PNG format, which has a number of advantages, such as being more compact without losing image quality and maintaining transparency.

Calculate DST for USA, EUR, AUD and RUB and the offset time of the broker automatically from the 70's until 2030 - even in the Strategy Tester of MQ.

The source codes written during the development of the library for creating multi-currency Expert Advisors that combine many instances of various trading strategies.

This library simulates prop trading firm scenarios by resetting the account balance based on configurable profit and loss thresholds during backtesting, and logs reset results for analysis.

With these classes you can create and test your signals runtime.

This code provides a simple function for sending push notifications to your mobile device whenever trades are opened or closed in MetaTrader 5. It's designed for netting accounts (where only one position per symbol is allowed).

Class to access to the local time for the specified location, as well as time zone information and the local trading session hours.

Monitoring of memory leaks in the strategy tester

This EA is a demonstration of how you can implement your own Hedging strategy with the help of the include file.

Basic library to create Volume Profiles on chart.

The CDebugLogger class is a flexible and comprehensive logging utility designed for use in MQL4/5 environments. It allows developers to log messages at various levels of importance (INFO, WARNING, ERROR, DEBUG) with options to include timestamps, function signatures, file names, and line numbers in the log entries. The class supports logging to both the console and files, with the ability to save logs in a common folder and in CSV format. Additionally, it offers functionality to silence logs based on specific keywords, ensuring that sensitive information is not logged. This class is ideal for developers looking to implement robust logging mechanisms in their MQL4/5 applications, with customizable features that cater to a wide range of debugging and monitoring needs.

The simplest class for logging in MetaTrader 5 with support for levels, message format, include and exclude filters on substrings.

Constructor for creating histograms of statistical distributions of indicators, timeseries and their derivatives.

Calculate the cosine distance and similarity between 2 vectors . The cosine distance is 1-cosine_similarity and the cosine similarity is the dot product of two vectors by their magnitudes multiplied.

Parallel use of the MetaTrader 4 and MetaTrader 5 order systems.

ALGLIB math function library (v. 3.19) ported to MQL5.

The library and iCanvas class simplify writing programs using Canvas.

Serialization and deserialization of JSON protocol. The code is ported from a high-speed С++ library.

Class for displaying multi-line comments.

The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs.

Calculating the best trading interval.

This library will allow you to tranfser realtime quotes from MetaTrader 5 to external server application.

This non-trading utility generates custom symbol information on 1M chart.

Functions for creating various objects and changing object properties.

Static class to fix the TimeGMT() function during testing in the strategy tester.

Trade functions library designed for use in the code of scripts and Expert Advisors depending on a broker

Class for expanding the capabilities of MqlRates.

Set of statistical functions which allows you to calculate some values describing timeseries.

Class for working with AES-256 encryption.

The library contains functions that returns description of runtime error codes and trade server return codes.

If you want to optimize your Expert Advisor using your own characteristics, you can use "Custom max" mode via OnTester() function. This code provides you many characteristics, which can be used during the optimization of your EA. Also it allows you to save the optimized charateristics in HTML file.

This class contains functions for working with colors. It has color conversion and other useful functions.

Synchronize ОС/EA/MT processes etc. Any self-made DLLs are not needed now.

The class restricts the EA trading by time. It has flexible configuration options, which allow to set a custom number of the time zones, and also to allow trading only on the specified week days.

A library for creating icons in the Windows taskbar and for sending text alerts. The use of this library will help you make your MQL programs more informative.

Filter based on the Intraday time filter offered by the standard library.

This library allows to automate the process of connecting to a trade server after the "Account disabled" error occurs.

The library makes indicators' Init/Deinit synchronized

The library that contains various statistical functions including the calculation of an average value, variance, asymmetry, excess, covariation, correlation etc.

123456789