Function to check and load history:This is a modified version of the MetaQuotes checkloadhistory function.Title:Usage:The history of changes:2026.02.18:- Added a maximum time limit...
This class implements a neural network of radial basis functions (RBF network).The classic design of an RBF network consists of two layers of neurons: a hidden layer with radially ...
The cnetpnn class implements a Probabilistic Neural Network (PNN).The network is created using the class parametric constructor.Class numbers (classification targets) start from ze...
The cnetgrnn class implements a Generalized Regression Neural Network (GRNN).Network creation is defined in the class parametric constructor.The learn method facilitates network tr...
The ring buffer is a data structure designed for efficient storage and retrieval of data, particularly in scenarios where asynchronous reading and writing of stream data are involv...
An initial library of combinatorics functions for MetaTrader platforms (MT4/MT5).Combinatorics is a branch of mathematics that explores discrete structures, such as sets, sequences...
DescriptionThis simplification is based on the property of uchar-variable, which serves as the array index. For instance, in the code, the array index consistently assumes values b...
The 'day of week' function is designed to determine the required month based on the day of the week and its occurrence within that month. For instance, it can identify the third Fr...
The class is designed for localization of messages in MQL5 programs. In brief, all that outputs in the log with the help of the print() function and text messages displayed in aler...
This function measures trend strength as a percentage, aiding in determining the direction of a previously formed trend for indicator creation.The ideal trend illustration (downtre...
For an operating system x86 and x64:1. Sending Instant MessagesThe function includes several tests before sending an instant message:- The user name cannot be empty or start with a...
128-byte algorithm developed by a professor from MIT in 2026.Example of use:- As an array, we can pass data read from various sources like FileReadArray, file, etc.Benefits:- Check...
A class to control the MIDI device is located in the incmidi.mqh file. The example of its use is represented in the emidi.mq5 file.The order of using the cmidi class:Connect a file...
the detailed description is .added:the setcolorformat(enum_color_format acolorformat=color_format_argb_normalize) method;the parameter: acolorformat - the enum_color_format color f...
Trade functions library designed for use in the code of scripts and expert advisors, tailored to various broker offerings.This library is the foundation for numerous expert advisor...
DescriptionMetaTrader 4 enables the use of objects within the Expert Advisor during testing. Upon test completion, the chart featuring these objects will be displayed. Arrows facil...
This script utilizes the DDE library provided by Windows, simplifying the process for novice coders.DDE functions as follows:- Initialize DDE- Create a string handle for the Excel ...
This trailing stop module utilizes two stop levels: a short stop and a long stop. The long stop level functions similarly to a fixed trailing stop.The short stop level is activated...
This library allows you to run most scripts and indicators from MetaTrader 4 on MetaTrader 5. Most of the functions are covered already and only trading logic is not added, so for ...
The iBarShift function, commonly used in MQL4, is not directly available in MQL5.MQL5 includes fundamental, low-level functions within its libraries that allow for the implementati...
AlgLib: Numerical Analysis LibraryThis library provides functions for numerical analysis, including the calculation of distribution moments such as mean, variance, skewness, and ku...
EasyXML: A Powerful XML and XHTML Parser for MQL5Core Functionality and CapabilitiesEasyXML is a robust yet user-friendly XML parser designed to read and process XML data from mult...
A straightforward and cost-effective unit test include library designed for MQL4.Usage Instructions:Refer to the attached sample file: testexpert.mq4.The results of unittest#prints...
mt4r, originally developed by Bernd Kreuss and distributed elsewhere, does not function correctly with new MQL4 versions.This package provides modified DLLs and include files to en...
MQL4 MySQL Connector for Builds 600+This library enables MQL4 (MetaTrader 4) to connect to MySQL databases. It addresses the string format changes introduced in MetaTrader 4 build ...
This is a hash map implementation that allows string indexes, similar to arrays. It maps strings to objects, where the objects must be a subclass of the provided HashValue class.By...
This is a simple MQL4 wrapper that uses the native Windows WinINet.dll library. It allows you to send HTTP GET requests to a remote destination and read the response body. This too...
MQL4 JSON ParserThis tool parses MQL4 strings containing JSON code, creating a `jsonvalue` object that allows retrieval of fields within the JSON structure. It also includes a `jso...
This is a script calling library for MT4 build 600 and later.This library is for calling scripts from your indicator and expert advisors.On earlier builds of MT4, this can be achie...
G-Speak DLL Update for MT4 Build 600+
This update addresses an issue with the G-Speak DLL, which enables text-to-speech alerts using the Windows TTS engine, for MetaTrader 4 build...
An enhanced CTable class featuring a new cellRefresh method for individual cell updates. This method allows modification of cell properties including background color, text color, ...
This class implements classical smoothing techniques for double arrays, providing an alternative to standard indicator functions for smoothing data.Class Usage Requirements:- Provi...
This class implements the Donchian Channel indicator, optimized for speed.It uses a single while loop instead of two for loops for improved performance.Class Usage Requirements:- P...
This library allows for sending text messages with necessary information via Skype in automatic trading. It works with Skype through the skype4com library, an ActiveX component tha...
the function will filter the trade positon. if the current time in the time you set, the function will return true.usage:extern string timestart="12:00";
extern string ...
this code allows you to set a maximum percentage of equity risk.it checks if asked buy/sell lots are fitting the risk. if not, lots are automatically adjusted to fit the risk that ...
we’ve all been there (i think). you’re coding a complex indicator with 70+ buffers and 30+ plots. you decide to move a "filling" background behind a "candle" plot, and suddenly you...
this library is designed to send mail messages.function set expands possibilities of traditional sendmail. now you can send messages both in text and html formats. messaged...
checking a date for belonging to winter or summer time. the function determines time (summer or winter).shift to winter time is made at night of the last october sunday, and shift ...
library for calculation of a margin required for opening a position in metaТrader 5.the library has 3 functions:main function: getmarginforopening() - directly calculates a margin ...
why this is necessary global variables, disk or memory-mapped files, important operating procedure are not a problem anymore!if you use:calls to the same data from different expert...
library for working with files using winapi without location limitations.at present time the read-only mode is implemented. the library will be updated.fileunlimited.mqh, fileunlim...
klotlibrary of fast fourier transformation functions (fft).this library was first implemented in mql4 and published in on october 2, 2006.the library has seven fast fourier transfo...
an include file contains a set of classes demonstrating one of methods of organizing lines hash array with a string key.an example of usage: the result: performance test: an includ...
ctimecontrol class for include to your ea for easy setting and checking your own trading time.an example of usage: include:#include "timecontrol.mqh"default constructor:ctimecontro...
this class is designed for creating interactive buttons with various states on a price chart.it has been developed for a arranged by generous. thank you.a demonstration of the cbtn...
the class and examples were developed for a arranged by .this class allows to handle the cursor hover and pressing the free form button.the button is implemented using the standard...
the indicator and an expert advisor example are provided here.fig.1. module demonstration using generated barstips: the module is useful as a trend filter in expert advisors. to g...