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

Top libraries for MetaTrader 5 based on user ratings - 6

Submit your code

The Shapiro-Wilk normality test.

Converts a number to a text.

This class was developed to exchange data between MetaTrader 5 and CSV files. It converts the strings read from the CSV file to double and integer values depending of the type of the columns. Two producers of CSV files are most important for me. The most important producer are spreadsheet programs, i.e. LibreCalc. Manually entered CSV are the other kind of CSV files I had in mind. Be aware that this class do not use the standard library FileCsv.mqh etc. Instead it works with text files. It splits text lines into fields. Maximum speed and low memory usage were no development goals. This class may not be suited for large datasets or time critical operations. I would not use CSV files if speed was my main goal.

The CForceOnArray class is intended for calculation of Force Index on indicator buffers.

The COBVOnArray class is intended for calculation of OBV (On Balance Volume) on indicator buffers.

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

A library of GUI Controls.

Returns the profit of a position in points, as well as commission, swaps and profit in money based on the trading history.

A short format for storing ticks.

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

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

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.

CRVIOnArray class is designed for calculation of RVI (Relative Vigor Index) values on indicator buffers. Test_RVIOnArray indicator is provided as the example of the class use.

Emulator of functions for working with objects. It gives possibility to see the objects after testing in the chart

The CDownLoadHistory class provides the methods of historical data downloading.

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.

New comments added to a chart without deleting existing ones.

The CBandsOnArray is intended for calculation of the Bollinger Bands ® (BB) on an indicator buffer.

The CCHOOnArray class is intended for calculation of the Chaikin Volatility indicator (CHV) on indicator buffers.

This code allows you to set a maximum percentage of equity risk.

Uses the idea of ​​the classical Donchian channel.

Signal based on the indicator Gann Hilo.

The CDir class allows getting information about files and folders outside the MQL5 sandbox similar to the MS-DOS Dir command. Call of system DLL is used, therefore you should allow their use.

This file replaces the WndContainer.mqh original file. It prevents the chart from being affected when you click and hold the mouse inside a container area.

CSAROnArray class is designed for calculation of SAR (Parabolic SAR) values on indicator buffers. The example of use of the CSAROnArray class is presented.

Version 1.2 - MQL5\Include\mql4compat.mqh

CBullsBearsOnArray class is designed for calculation of Bulls Power and Bears Power values on indicator buffers. The example of use of the class is provided.

Random number generation using the 32-bit PCG generator.

It speaks the specified text using the speech engine.

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 CFractalsOnArray class is intended for calculation of Fractals on indicator buffers.

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

Function to define the trend strength

Library of fast Fourier transformation functions (FFT).

Signal based on the indicator developed by the Brazilian analyst Odir Aguiar (Didi).

Complete and fast functions similar to Bars and iBarShift from MQL4.

Frequent array operation methods.

The 64-bit xoshiro256** Random Number Generator.

Enables Programmers to create Martin Gale and Grid Trading strategies with ease.

converted stdlib library for MQL5 from the MQL4

12345678910