Watch how to download trading robots for free
Find us on Facebook!
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.

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

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

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.

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

The library and iCanvas class simplify writing programs using Canvas.

This Include File checks for Market Open Hours. An EA to test it is also included.

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

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

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

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

Class for displaying multi-line comments.

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.

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

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

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.

Class for the calculation of the ENUM_STATISTICS enumeration parameters

A class for a transparent button.

This simple class can be used to adjust, for example, trading ranges, or to enable / disable certain actions by time or day of the week.

Here are 6 classes, designed for convenient and intuitive use of indicators in your code.

NELODI Trading Terminal is a collection of Indicators and an Expert Advisor, which work together to provide a complete solution for manual Trading, primarily designed for Scalping.

Sort the input array in-place using comparison function less.

12345678