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

MQL5 Source Codes of Libraries for MetaTrader 5 - 6

icon

Libraries are small sub-programs containing a certain functionality that can then be used for developing new applications. Once written and thoroughly checked, a library allows users to speed up the development of new MQL5 applications. One of the illustrative examples is ALGLIB library containing multiple numerical analysis functions.

Library source codes can be downloaded and used in MetaEditor when developing trading strategies. They cannot be launched in MetaTrader 5 independently.

Submit your code
latest | best

Function to define the trend strength

The class for localization/multilingual support of text messages in user MQL5 programs

The "Day of Week" function is designed to determine the number of required month according to data of the week and the day of the week inside this month

The class is the simplified version of the CArrayRing class: it has a predetermined fixed size of 256 elements, it is faster, and allows to organize the mini time series, indicator minibuffers, short sized buffers to store intermediate stream data inside the Expert Advisor or indicator.

Initial library of combinatorics functions.

The class allows to organize the mini time series, indicator minibuffers, short sized buffers to store intermediate stream data inside the Expert Advisor or indicator.

The class realizes generalized regression network (General Regression Neural Network - GRNN)

The class realizes the probabilistic neural network (Probabilistic Neural Network - PNN)

Class implements neural network of radial basis functions (Radial Basis Function Network - RBFN)

Slightly modified history load function from MetaQuotes.

Library of functions for working with strings: StringToArray, StringToPeriod and PeriodToString

Simple MA crossover Signaling for Expert Advisor Wizard

The Shapiro-Wilk normality test.

The file selection graphical interface class.

Class for the calculation of the ENUM_STATISTICS enumeration parameters

The function that identifies extremums over a given period of history.

Graphical control for pixel drawing.

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

Function Library for Working with Time Series: iTime, iOpen, iHigh, iLow, iClose, iHighest, iLowest, iBarshift. Short invocation version is available for all functions (with the current chart's symbol and period).

The function is used to determine weekends on a server. It will be especially useful to those who use OnTimer() function in their Expert Advisors for events handling.

This library allows an easy interface to MySQL.

Dedicated functions to read and write object properties.

The function that calculates the lot size depending on the amount of money in the deposit currency being used.

The function that decrypts the code of the trade operation result for the functions OrderSend() and OrderCheck().

Class for working with matrices.

Graphic control for color selection.

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

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

Trading signals module for MQL5 Wizard. SilverTrend_Signal indicator's color dot serves as a market entry signal.

Trading signals module for MQL5 Wizard. The moment, when ColorJFatl indicator changes its color, indicates the time for market entry.

The CFastFile eliminates the need for an intermediate writing of data to the physical file on disk. It provides the significant acceleration when working with data.

Trading signals module for MQL5 Wizard. WPRSIsignal indicator's color arrow serves as a market entry signal.

Trading signals module for MQL5 Wizard. The moment, when a candlestick formed by Candles_Smoothed changes its color, indicates the time for market entry.

Trading signals module for MQL5 Wizard. The moment, when PriceChannel_Stop indicator changes its color, indicates the time for market entry.

Trading signals module for MQL5 Wizard. The moment, when NonLagDot indicator changes its color, indicates the time for market entry.

Trading signals module for MQL5 Wizard. The moment, when the oscillator line formed by ColorLaguerre changes its color, indicates the time for market entry.

Trading signals module for MQL5 Wizard. Karacatica indicator's color arrow serves as a market entry signal.

Trading signals module for MQL5 Wizard. BykovTrend indicator's color arrow serves as a market entry signal.

Trading signals module for MQL5 Wizard. LeManSignal indicator's color dot serves as a market entry signal.

Trading signals module for MQL5 Wizard. The moment, when a bar formed by 3LineBreak changes its color, indicates the time for market entry.

12345678