This library facilitates working with orders in MQL5 (MT5-hedge) using the same approach as in MQL4.By employing this library, the order language system (OLS) in MQL5 becomes ident...
After encountering the 'account disabled' error, which typically occurs on weekends when trade servers are offline, manually logging into the trading account can be cumbersome and ...
Why this is needed:This class facilitates data exchange between your programs, especially useful when creating products for the market or when system DLLs are not preferred.For oth...
This is a 5 library named 'I Bar Shift MT5'. It offers traders a reliable toolset within the MetaTrader platform. Adhering to the standard MT4/MT5 conventions, this library is easy...
A histogram is a bar chart of frequencies. One axis represents variable values, while the other axis represents the frequency of these values' occurrence. The height of each bar in...
GeneralThis is a set of classes designed for convenient use of indicators in MQL4/MQL5. It was originally written to facilitate working with multiple indicators simultaneously.Each...
The entire chain: indicator, expert advisor based on the signal module.The signalcandelshighopen module of trading signals assumes that the custom indicator has already been compil...
This function returns the number of positions opened by an expert advisor for the current day.The count is specific to the trading day and resets daily.This can be useful for track...
This class provides MQL5 programs with the ability to easily detect changes within the Market Watch window. It monitors symbol sorting, additions, deletions, and changes to symbol ...
This library requires a DLL file to be placed in the terminal's Libraries folder and the r.mqh file in the Include folder.Ensure the following directive is included in your Expert ...
This document details the application of smooth algorithms within the MetaTrader trading platforms.The Exponential Moving Average (EMA) indicator is a prime example of such an algo...
Automagic is a library designed to manage Magic Numbers for Expert Advisors (EAs) in MetaTrader 5. It ensures that EAs running on the same symbol and timeframe across different cha...
The CHistoryPositionInfo class is designed for retrieving the profit of a position in points, based on trading history.Class DescriptionThe CHistoryPositionInfo class allows for th...
This utility class allows you to go beyond the standard MQL5 sandbox to examine directory contents.You can check for the existence of files or directories, retrieve file attributes...
Signal Module: Moving Average Above/BelowSave the signal module file to "data folder"\mql5\include\expert\signal\.This module generates trading signals based on whether the price i...
One of the major issues with MQL5 was the removal of the built-in time-series functions. While doing so gave programmers a more finite level of development latitude, it also slowed...
A comprehensive library of original mathematical functions designed for cross-platform compatibility.mathcorrelationpearsonThis function calculates the Pearson correlation coeffici...
Synchronization of Indicator Initialization and Deinitialization in MT5In MetaTrader 5 (MT5), changing the chart symbol or timeframe causes all indicators to be reloaded. Unlike MT...
SHA512 Class ImplementationThis component provides an implementation of the SHA512 hashing algorithm.HMAC Functions ImplementationThis component includes implementations for HMAC f...
Public MethodsProvides public access to the parameters array, which is the primary method for setting parameters.Methods can be chained to add multiple parameters simultaneously. R...
This utility class simplifies the process of detecting new candle formations in MQL5 programs.Many MQL5 programs require executing specific code segments only when a new candlestic...
The getprofitinpoints function is still accessible, however, it is advisable to utilize the new getprofit function.The getprofit function provides the following details about a pos...
In both platforms (MetaTrader 4/5), you can run a script to save a report and view the generated HTML output.This is especially useful in MetaTrader 5, which does not provide visua...
MetaTrader 5 offers a valuable function for profiling Expert Advisors on historical data, but it comes with certain limitations.One issue is the slow speed in visual mode, and the ...
The library offers essential tools for working with custom symbols and provides ready-made solutions for various use cases.For instance, when running backtests on cross pairs, the ...
The Expert Advisor Library is a powerful tool for managing charts and expert advisors in MetaTrader 4/5.Connection and Usage:The library can be connected and utilized through the p...
The Subwindow Library is a powerful tool for managing subwindows in your MetaTrader 4/5 (MT4/MT5) platform.To connect the library, follow these steps:- Connect the library using th...
This library provides every MQL program with a separate icon in the notification area of the Windows taskbar.The library enables you to display text messages by sending them from y...
An implementation of the dictionary (associative array) data structure in MQL5, based on hash function FNV-1a. Usage:Primitives: It can store primitives like int, double, string, d...
a library for common rounding methods in MQL development, offering a primitive wrapper class for double type and a vector for cdouble objects. Compatible with MQL5 and MQL4.cdouble...
The clock library (clock.mqh) enables the creation of analog clocks as custom graphical objects in MetaTrader 4/5.Features:- Raster (non-vector) clock display.- Smooth movement of ...
The 'signalcci buyorsell.mqh' trading signal module is based on the CCI indicator and generates a specific type of signal: when the price is above a certain upper level or below a ...
Easyandfastgui v2.0This library provides a comprehensive set of elements for building graphical interfaces in MQL-applications.## What's New?- Integrated a new element, c3dbase, fr...
The MetaTrader 4/5 platform relies on the system timer call, which can lead to inaccuracies. To illustrate this, consider the following expert advisor:By observing the chart commen...
The code is based on the library, which contains the errordescription() function with two input parameters: error_code and the optional parameter txt_prefix.GetLastError() return c...
Renko 2.0 Offline is a non-trading utility that generates custom symbol information on a 1-minute chart, based on an indicator. It is an expert advisor that references the library ...
Renko 2.0 offline non-trading utility generates custom symbol information on 1-minute charts based on indicators.This utility references the library for MetaTrader 5 by FXSaber.It ...
This library is an advanced version of the original, with new features and improvements.Version 2 introduces the following enhancements:The 'Type of Trade' parameter offers three o...
This library is an advanced version of the previous one.What's new in version 3:The currentbarsizeparameter enables the setting of the current bar size, calculated as close-open.Th...
This library provides a set of handy functions for working with doubles in MetaTrader 4/5 (MT4/MT5).It includes:- Comparison of doubles: Functions for comparing doubles with a loos...
As of 2026, the integrated bars function used in this iBarShift function has a bug that causes significant program lags exceeding 10 seconds. This issue occurs when the bars functi...
i couldn't find mql5 code for the kelly criterion, so i decided to write it myself; but it turned out that the kelly criterion only works for bernoulli distributions. this means it...
the library allows receiving a magic number bound to three elements:symbol (financial instrument) name;timeframe;prefix index; all these three elements are to be encoded in 64 bits...
the function converts a number to a text. for example, if we call the function with the number 1234.56, the function returns the text "one thousand two hundred thirty four 56"...
asynchronous trading orders have a huge advantage - high speed when sent in bulk. however, the spreading of such orders is hampered by the inconvenience - order result data can onl...
the library and icanvas class simplify writing programs using canvas. here is an example of a simple indicator using this library.in this example, the indicator body features no fu...
the idea and the simplest algorithm are provided in the article ""the library has advanced functionality allowing you to create an unlimited number of "agents".in addition, variati...