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 - 5

Submit your code

There are a lot of users who searched for iBarShift function like in MQL4. But this function is no more include in MQL5, mainly because MQL5 provides all necessary basic, low-level, functions to process such thing in a library.

A price channel based on a bar of user-defined duration (timeframe).

Compute the daylight saving time changes (start/end of the summer time).

The RSI Expert Advisor (EA) is an automated trading tool developed for the MetaTrader 5 (MT5) platform. This EA leverages the Relative Strength Index (RSI) to identify buy and sell signals, incorporating risk management, partial position closing, and trading hour restrictions to optimize trading performance.

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

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.

Slightly modified history load function from MetaQuotes.

Measuring the net performance of MetaTrader 4/5 strategy testers.

Trading signals module for MQL5 Wizard. BykovTrend indicator's color arrow 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 class allows to easily determine from your MQL5 programs any changes in the Market Watch window (change of symbol sorting, adding, deleting a symbol or a set of symbols), as well as opening and closure of charts, and the availability of the one click trading option on the current chart, on which the program is running.

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

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

CMFIOnArray class is designed for calculation of MFI (Money Flow Index) values on indicator buffer. The example of use of the class is presented.

A library to provide simple storage mechanism for expert advisors and indicators.

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

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.

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

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

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.

СIsNewBar class allows to determine the moment of a bar change.

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.

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

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.

123456789