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

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

CRSIOnArray class is designed for calculation of RSI (Relative Strength Index, RSI) values on indicator buffers. The example of use of the class is presented.

CAMAOnArray class is designed for calculation of AMA (Adaptive Moving Average) values on indicator buffers. The example of use of the class is provided.

COsMAOnArray class is designed for calculation of OsMA (Moving Average of Oscillator) values on indicator buffers. The example of use of the class is provided.

CStochasticOnArray class is designed for calculation of Stochastic indicator values on indicator buffers. The example of use of the class is provided.

CMACDOnArray class is designed for calculation of MACD (Moving Average Convergence/Divergence) values on indicator buffers. The example of use of the class is provided.

CADXWOnArray class is designed for calculation of ADXW (Average Directional Movement Index Wilder, ADX Wilder) values on indicator buffers. The example of use of the class is provided.

CADXOnArray class is designed for calculation of ADX (Average Directional Movement Index) values on indicator buffers. The example of use of the class is provided.

CATROnArray is designed for calculation of ATR (Average True Range) values on indicator buffers. The example of use of the class is provided.

CMAOnArray class is used for Moving Average calculation on indicator buffer's data. The example of use of the class is provided.

Multi-currency Expert Advisor functional module for organization of an access to any historical data with a request result processing.

CNetMLP provides multilayer perceptron (MLP).

A library for parsing of XML documents. Pure MQL5, it doesn't uses any external libraries.

The library provides simple matrix operations: addition, subtraction, multiplication, inversion.

New comments added to a chart without deleting existing ones.

The downward crossover of T3 moving average is a signal to open a long position, the upward crossover of T3 moving average is a signal to open short position.

Crossover of overbought/oversold levels of Chande Momentum Oscillator is used as a signal to open positions.

A Lime candle of BrainTrend2 indicator is a signal to open a long position, a Magenta candle is a signal to open a short position.

A blue candle of BrainTrend1 indicator is a signal to open a long position, a red candle is a signal to open a short position.

The strategy is following: when outer (outside) bar appears, it checks the fact of the inner bar breakthrough in trend direction and generates a signal to open position. A module of trade signals is compatible with the new version of MQL5 Wizard.

The CDownLoadHistory class provides the methods of historical data downloading.

The script contains a class, that can be used to solve mathematical and logical expressions, defined as string.

It speaks the specified text using the speech engine.

The class can be used for creation of trade signal classes with reversal candlestick patterns.

A class for creation and output of BMP images.

The library contains the following hash functions: adler32, CRC-32, MaHash8v64. Also it has functions for radix conversion of a number.

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 provides methods for working with Windows *.ini files.

All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.

The MQL5 keywords and aliases for autoreplace are presented.

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

The API functions to Free Fuzzy Logic Library.

The CGV class simplifies the work with global variables of MetaTrader 5 client terminal.

A simple XML-parser, based on the msxml library.

Classes for working with databases through ODBC and OLE DB interfaces

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

The MovingAverages library contains functions for calculation of different types of moving averages.

Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).

12345678