Codes

Combinatorics for MetaTrader 5

Initial library of combinatorics functions

Articles

MQL5 Cookbook — Macroeconomic events database for MetaTrader 5

The article discusses the possibilities of handling databases based on the SQLite engine. The CDatabase class has been formed for convenience and efficient use of OOP principles. It is subsequently involved in the creation and management of the database of macroeconomic events. The article provides

MQL5 Cookbook — Services for MetaTrader 5

The article describes the versatile capabilities of services — MQL5 programs that do not require binding graphs. I will also highlight the differences of services from other MQL5 programs and emphasize the nuances of the developer's work with services. As examples, the reader is offered various

MQL5 Cookbook – Economic Calendar for MetaTrader 5

The article highlights the programming features of the Economic Calendar and considers creating a class for a simplified access to the calendar properties and receiving event values. Developing an indicator using CFTC non-commercial net positions serves as a practical example

MQL5 Cookbook: Trading strategy stress testing using custom symbols for MetaTrader 5

The article considers an approach to stress testing of a trading strategy using custom symbols. A custom symbol class is created for this purpose. This class is used to receive tick data from third-party sources, as well as to change symbol properties. Based on the results of the work done, we will

MQL5 Cookbook: Getting properties of an open hedge position for MetaTrader 5

MetaTrader 5 is a multi-asset platform. Moreover, it supports different position management systems. Such opportunities provide significantly expanded options for the implementation and formalization of trading ideas. In this article, we discuss methods of handling and accounting of position

MQL5 Cookbook - Pivot trading signals for MetaTrader 5

The article describes the development and implementation of a class for sending signals based on pivots — reversal levels. This class is used to form a strategy applying the Standard Library. Improving the pivot strategy by adding filters is considered

MQL5 Cookbook - Trading signals of moving channels for MetaTrader 5

The article describes the process of developing and implementing a class for sending signals based on the moving channels. Each of the signal version is followed by a trading strategy with testing results. Classes of the Standard Library are used for creating derived classes

MQL5 Cookbook - Programming moving channels for MetaTrader 5

This article presents a method of programming the equidistant channel system. Certain details of building such channels are being considered here. Channel typification is provided, and a universal type of moving channels' method is suggested. Object-oriented programming (OOP) is used for code

MQL5 Cookbook: ОСО Orders for MetaTrader 5

Any trader's trading activity involves various mechanisms and interrelationships including relations among orders. This article suggests a solution of OCO orders processing. Standard library classes are extensively involved, as well as new data types are created herein

Programming EA's Modes Using Object-Oriented Approach for MetaTrader 5

This article explains the idea of multi-mode trading robot programming in MQL5. Every mode is implemented with the object-oriented approach. Instances of both mode classes hierarchy and classes for testing are provided. Multi-mode programming of trading robots is supposed to take into account all

Forum

MQL5 training

There is the following proposal for beginners to study the programming language of trading strategies MQL5 . I have created a course for beginners consisting of 8-10 lectures. I can deliver them online. I have already tested this method. Anyone interested is welcome to apply. The fee will be small