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

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

Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it

Provide a surrogate or placeholder for another object to control access to it

Use sharing to support large numbers of fine-grained objects efficiently

Provide a unified interface to a set of interfaces in a subsystem; facade defines a higher-level interface that makes the subsystem easier to use

Attach additional responsibilities to an object dynamically; and provide a flexible alternative to subclassing for extending functionality

Create an object tree which represents part-whole hierarchies, so that the client would treat objects and compositions of objects uniformly.

A native implementation of neural networks in pure MQL, bundled with an easy to use interface, with easy support of saving and loading of the network configurations after training.

Decouple an abstraction from its implementation so that the two can vary independently

Convert the interface of a class into another expected interface; classes with incompatible interfaces can work together

A collection of classic creational GoF design patterns

Ensure one instance of a class with a global point of access

Create objects by copying a prototype

An interface for creating an object that defers instantiation to subclasses. They decide which class to instantiate.

For a complex object separate its construction from representation. Same construction process can create different representations

Provide an interface for creating families of related or dependent objects without specifying their concrete classes.

Modeling multiple inheritance with the Twin pattern.

Provide a unified interface to a set of interfaces in a subsystem.

Compose objects into tree structures to represent part-whole hierarchies.

A basic container for storing an ordered list of basic data type objects.

A basic container for storing an ordered list of objects.

Frequent array operation methods.

Class for comparing two floating point variables.

Sets of latin, russian characters, digits, punctuation, etc.

How to minimize bool parameters in a function signature?

This a library for a quick and easy encryption and decryption using base64. The usage is very simple and can be done in a few lines of code. <<< The return value of a method is the required output. <<< Feel free to use this library at your convenience.If it is helpful, please reward me by rating this item on mql5 site. >>From a developer, for developers.<<

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

Class to provide simple reading mechanism from MetaTrader set files.

A class for easy access to the closed position properties.

Header with iRSIOnArray function for use with MQL 4 or 5 code.

converted stdlib library for MQL5 from the MQL4

Custom Price Chart using a simple Artificial Neural Network that tries to project price movements into the future. Not very useful for trading, but fun to watch and learn ;)

Monster Trend indicator that uses data from several time periods.

Trend indicator similar to Ichimoku Kinko Hyo, with a number of drawing options and calculation parameters.

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.

Random number generation using the 32-bit PCG generator.

A fast library for combinations and permutations in MQL.

A class to reconstruct closed trades (paired in/out deals) from history sorted by close time.

A cross platform library/framework

A base class to simplify analyzing trade transactions in MQL5.

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.

123456789