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 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...
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...
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 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...
set of statistical functions which allows you to calculate some values describing timeseries like correlation between two time series, linear regression, standard deviation etc. it...
the attached *.mqhfile contains functions for creating objects and changing object properties. it is particularly useful for me when i need to quickly write some test code which cr...
original by metaquotes software corp. modifications by doerk.this file replaces the wndcontainer.mqh original file. one new function and two small modifications prevent the chart f...
dmitry kalyuzhny. fuzzynet project website -unzip the archive into the. the library codes are located in the <terminal_data_folder>\mql5\include\math\fuzzynet\ sample test sc...
metaquotes software, bugfixes & enhancements by doerk.when you start to work on a pixel basis with the standard library, you'll soon figure out, that sometimes a pixel here and...
serialization and deserialization of json protocol. the code is ported from a high-speed С++ library.you can show your gratitude by sending examples of implementing mql for working...
the ССomment class was designed to extend the capabilities of the standard function. its purpose is to display a multi-line comment on a panel. methods of this class allow you to s...
i decided to publish this class after reading . this topic looks interesting. my approach does not solve every problem as well. therefore, suggest what can be improved.the class us...
have you ever restricted the operation of your ea depending on time? for example, how does one make the ea not perform any trading activities during the night session? or, if you t...
csalchartpoints is a class for expanding the capabilities of .advantages of the class:it provides a simpler interface for working with mqlrates. it extends the parameter set of the...
signal based on the indicator developed by the brazilian analyst odir aguiar (didi), consists of 3 moving averages (3,8,20), aka didi's needles, which allows the visualization of r...
the "" articles describes how you can create a user-friendly interface for your programs. implementation of interactive windows is based on the use of the masterwindows class libra...
simpler filter based on the intraday time filter offered by the standard library. instead of binary numbers, you can use strings (10:00 - 16:00) to set your intraday start and end ...
signal based on the indicator gann hilo. there are three operating modes: trigger, continuous and both.in trigger mode, the signal will be generated only when the price crosses the...
microsoft corporation. source code taken from .note: the library works on the metatrader 5 build 1285 and higher.unzip the archive into the . the library codes are located in the: ...
instance of the class returns such values as bid, ask, high, low, close and open prices of the current candle or any other specified in the parameters, as well as the candle openin...
this small cross-platform library allows to the 'double' values of the "price" conveniently and quickly.for example, before placing a selllimit, it is sometimes useful to check if ...
this cross-platform library allows to conveniently perform byte-wise operation with structures and standard data types.features:byte-wise comparison (== and !=) of the structures a...
the advanced encryption standard or aes is a symmetric block cipher used by the u.s. government to protect classified information and is implemented in software and hardware throug...
this library allows to work with the orders in mql5 (mt5-hedge) in the same way as in mql4.that is, the order language system (ols) becomes identical to mql4. at the same time, it ...
after the "account disabled" error occurs (this error on the weekends, when trade servers of exchanges are offline), it is necessary to manually log in to the trading account. to d...