the provided code is an mql include file and an expert advisor demonstrating how the classes work.it implements a trading strategy based on various technical indicators and trend a...
the marketopenhours.mqh file checks the market open hours against the server time at the broker. its input is only the symbol name as string type. as a result you get a bool, true ...
in this example, you will see complete and operational project, labeled "example ea". this project uses a template obtained from the codebase, which is freely available. i made sev...
function to calculate the cosine distance and the cosine similarity.the cosine distance between 2 vectors a and b is :so 1-cosinesimilarityand the cosine similarity is :in simple t...
timegmt() function returns the gmt, which is calculated taking into account the dst switch by the local time on the computer where the client terminal is running. there are 2 varia...
this series of articles is in the process of being written. as we move forward, source codes from new articles will be added to this library.it is recommended to review the code in...
having desired to work with sqlite database for the purpose of storing my statistical generated from simulations, i noticed very early that it seems very challenging and time consu...
hello, traders.this library has all the functions to get the current local time in a specific or all forex markets. you can convert the local times between time zones or to your br...
the library contains basic public methods to manage grids:in above code:maxdd stands for "maximum allowed drawdown". this value is disabled by default but using the set method will...
this library provides a few simple public methods to create and plot volume profiles:gethvprice returns the price that is related to highest volume in the range._resolution_points ...
input parameters:orderdistancepoints : determines the distance in points from the current ask price for placing buy orders and from the bid price for placing sell orders. tppoints ...
cdebuglogger class: a comprehensive logging utility for mql4/5 the cdebugloggerclass is a powerful and flexible logging utility specifically designed for mql4/5 environments. it is...
update: all the changes and additions to this library are outlined at the end of the code. this framework is flexible and can be adapted to your specific needs, whether it’s adding...
cdebuglogger class v2: a comprehensive logging utility for mql4/5 the cdebugloggerclass is a powerful and flexible logging utility specifically designed for mql4/5 environments. it...
every programmer has their own logger. i wrote my own for mql5, inspired by the python logging module.this class is simplest. no hierarchy, rotators or formatters. it's simple and ...
features sends notifications for trade opens and closes shows trade type (buy/sell) and lot size for new trades displays profit/loss for closed trades works in both live trading a...
a simple replacement for a comment. works in the tester 50 times faster than the standard function.it is known that the standard "comment" function slows down the tester very much....
📢 mt5compat a comprehensive mt4 to mt5 conversion library🚀 a new interface libraryhas been developed to simplify the process of converting mt4 indicators and expert advisors (eas) ...
this library contains more than 80 different functions to deal with time variables. the primary aim is to provide high-performance time functions. the performance mode (which can b...
the code is full of comments for better understanding. this description explains the main idea, and the ways to use/reuse the code. this framework consists of three key components:...
printxyz() library a small collection of functions to print massive information from the terminal to the experts tab.this is most useful for printing (and debugging) the trade acco...
introspective sortintro or introspective sort is a hybrid sorting algorithm that provide fast performance. it is a comparison based sorting algorithm based on three phases. it uses...
this library allows you to read/write tst files - mt5-tester single pass format.some variants of use, 2019.10.04 07:18 pm.if they open the format of tst-files and place the cache f...
metatrader5 has an updated volumetric history of fundamental calendar events, any data of which can .this library allows you to conveniently work with this data. in particular, to ...
there are times when you need to run the expert advisor on multiple symbols. for this purpose there is a mode "all symbols selected in the market watch window" in the mt5-tester. t...
the library contains two types of displays. the first, labelsdisplay, is based on cchartobjectlabel. the second, canvasdisplay, is based on ccanvas. the displays are optimised for ...
works up to 10 times faster than report, ntml file size is smaller, can upload and display up to 5.4 million report lines (screenshot below).functionality: (the same as report) sh...
ctsloggeris a simple and flexible logging system specifically designed for creating and debugging trading systems in mql5. the main advantage of ctsloggeris the ability to temporar...
ctsloggeris a simple and flexible logging system specially designed for creating and debugging trading systems in mql5. the main advantage of ctsloggeris the ability to temporarily...
the entire documentation about the files and methods inside can be found in this article >>ignore the mql5 based files. all the files can be found in a folder trade classes p...
the library allows you to decrypt gzip archives from *.gz files or responses from sites compressed with this format. tested on files with up to 0.5 gb of text packed in them.the li...
cbitbuffer class - bit-level data serialization in mql5 the cbitbuffer class provides a robust foundation for bit-level data serialization in mql5, offering fine-grained control ov...
this library implements work with the tick storage format, which has a good performance (read/write) to size ratio.format. only the following fields ofare stored:examples. you can ...
this library adds the ability to test trading expert advisors in the mt5 tester mathematical mode.some explanations of the proposed implementation will be given below.connection. t...
an interface for implementing asynchronous execution of algorithms, similar to promise in javascript. timer.mqh - , just to demonstrate asynchronous execution you can also promise ...
1. overview the mql5 json library is a powerful,feature-rich library designed specifically for parsing, manipulating, and serializing json data within the mql5 environment. it prov...
logify is a logging library for mql designed to simplify debugging, tracking, and monitoring of eas and indicators. it provides structured, customizable, and organized logs directl...
main features 📨 real-time trade notifications- instant alerts on opening/closing/modifying positions 📸 chart screenshots- automatically capture charts with annotations 📊 a ccount ...
universal class library for implementing various stoploss trailing strategies in trading robots. the library allows you to flexibly manage stoploss of open positions by a fixed dis...
here is a simplified function to convert server times (also stored times of bars, ticks, or economic calendar events) from one broker's time zone to another.to be able to identify ...
example:several examples are provided inside the comm.mqh fileupdate 24.01.2025 v1.08update 03.02.2025 v1.09it became necessary to output information from the service. i decided to...
this library uses short descriptive texts for each of the errors present in the mql5 reference. it will be updated frequently as new errors are constantly added to the official doc...