MQL Articels

468 bookmarks
Custom sorting
Creating Documentation Based on MQL5 Source Code - MQL5 Articles
Creating Documentation Based on MQL5 Source Code - MQL5 Articles
This article considers creation of documentation for MQL5 code starting with the automated markup of required tags. It also provides the description of how to use the Doxygen software, how to properly configure it and how to receive results in different formats, including html, HtmlHelp and PDF.
·mql5.com·
Creating Documentation Based on MQL5 Source Code - MQL5 Articles
Universal Expert Advisor: Accessing Symbol Properties (Part 8) - MQL5 Articles
Universal Expert Advisor: Accessing Symbol Properties (Part 8) - MQL5 Articles
The eighth part of the article features the description of the CSymbol class, which is a special object that provides access to any trading instrument. When used inside an Expert Advisor, the class provides a wide set of symbol properties, while allowing to simplify Expert Advisor programming and to expand its functionality.
·mql5.com·
Universal Expert Advisor: Accessing Symbol Properties (Part 8) - MQL5 Articles
Cross-Platform Expert Advisor: Stops - MQL5 Articles
Cross-Platform Expert Advisor: Stops - MQL5 Articles
This article discusses an implementation of stop levels in an expert advisor in order to make it compatible with the two platforms MetaTrader 4 and MetaTrader 5.
·mql5.com·
Cross-Platform Expert Advisor: Stops - MQL5 Articles
Cross-Platform Expert Advisor: Time Filters - MQL5 Articles
Cross-Platform Expert Advisor: Time Filters - MQL5 Articles
This article discusses the implementation of various methods of time filtering a cross-platform expert advisor. The time filter classes are responsible for checking whether or not a given time falls under a certain time configuration setting.
·mql5.com·
Cross-Platform Expert Advisor: Time Filters - MQL5 Articles
Cross-Platform Expert Advisor: Money Management - MQL5 Articles
Cross-Platform Expert Advisor: Money Management - MQL5 Articles
This article discusses the implementation of money management method for a cross-platform expert advisor. The money management classes are responsible for the calculation of the lot size to be used for the next trade to be entered by the expert advisor.
·mql5.com·
Cross-Platform Expert Advisor: Money Management - MQL5 Articles
Cross-Platform Expert Advisor: Signals - MQL5 Articles
Cross-Platform Expert Advisor: Signals - MQL5 Articles
This article discusses the CSignal and CSignals classes which will be used in cross-platform expert advisors. It examines the differences between MQL4 and MQL5 on how particular data needed for evaluation of trade signals are accessed to ensure that the code written will be compatible with both compilers.
·mql5.com·
Cross-Platform Expert Advisor: Signals - MQL5 Articles
Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4 - MQL5 Articles
Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4 - MQL5 Articles
The article offers a simple emulator of the MetaTrader 5 trading environment for MetaTrader 4. The emulator implements migration and adjustment of trade classes of the Standard Library. As a result, Expert Advisors generated in the MetaTrader 5 Wizard can be compiled and executed in MetaTrader 4 without changes.
·mql5.com·
Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4 - MQL5 Articles
Cross-Platform Expert Advisor: Order Manager - MQL5 Articles
Cross-Platform Expert Advisor: Order Manager - MQL5 Articles
This article discusses the creation of an order manager for a cross-platform expert advisor. The order manager is responsible for the entry and exit of orders or positions entered by the expert, as well as for keeping an independent record of such trades that is usable for both versions.
·mql5.com·
Cross-Platform Expert Advisor: Order Manager - MQL5 Articles
Visualize this! MQL5 graphics library similar to 'plot' of R language - MQL5 Articles
Visualize this! MQL5 graphics library similar to 'plot' of R language - MQL5 Articles
When studying trading logic, visual representation in the form of graphs is of great importance. A number of programming languages popular among the scientific community (such as R and Python) feature the special 'plot' function used for visualization. It allows drawing lines, point distributions and histograms to visualize patterns. In MQL5, you can do the same using the CGraphics class.
·mql5.com·
Visualize this! MQL5 graphics library similar to 'plot' of R language - MQL5 Articles
Embed MetaTrader 4/5 WebTerminal on your website for free and make a profit - MQL5 Articles
Embed MetaTrader 4/5 WebTerminal on your website for free and make a profit - MQL5 Articles
Traders are well familiar with the WebTerminal, which allows trading on financial markets straight from the browser. Add the WebTerminal widget to your website — you can do it absolutely free. If you have a website, you can start selling leads to brokers — we have prepared a ready-to-use web-based solution for you. All you need to do is embed one iframe into your website.
·mql5.com·
Embed MetaTrader 4/5 WebTerminal on your website for free and make a profit - MQL5 Articles
Cross-Platform Expert Advisor: Orders - MQL5 Articles
Cross-Platform Expert Advisor: Orders - MQL5 Articles
MetaTrader 4 and MetaTrader 5 uses different conventions in processing trade requests. This article discusses the possibility of using a class object that can be used to represent the trades processed by the server, in order for a cross-platform expert advisor to further work on them, regardless of the version of the trading platform and mode being used.
·mql5.com·
Cross-Platform Expert Advisor: Orders - MQL5 Articles
Working with sockets in MQL, or How to become a signal provider - MQL5 Articles
Working with sockets in MQL, or How to become a signal provider - MQL5 Articles
Sockets… What in our IT world could possibly exist without them? Dating back to 1982, and hardly changed up to the present time, they smoothly work for us every second. This is the foundation of network, the nerve endings of the Matrix we all live in.
·mql5.com·
Working with sockets in MQL, or How to become a signal provider - MQL5 Articles
Cross-Platform Expert Advisor: Introduction - MQL5 Articles
Cross-Platform Expert Advisor: Introduction - MQL5 Articles
This article details a method by which cross-platform expert advisors can be developed faster and easier. The proposed method consolidates the features shared by both versions into a single class, and splits the implementation on derived classes for incompatible features.
·mql5.com·
Cross-Platform Expert Advisor: Introduction - MQL5 Articles
Regular expressions for traders - MQL5 Articles
Regular expressions for traders - MQL5 Articles
A regular expression is a special language for handling texts by applying a specified rule, also called a regex or regexp for short. In this article, we are going to show how to handle a trade report with the RegularExpressions library for MQL5, and will also demonstrate the optimization results after using it.
·mql5.com·
Regular expressions for traders - MQL5 Articles
How to create bots for Telegram in MQL5 - MQL5 Articles
How to create bots for Telegram in MQL5 - MQL5 Articles
This article contains step-by-step instructions for creating bots for Telegram in MQL5. This information may prove useful for users who wish to synchronize their trading robot with a mobile device. There are samples of bots in the article that provide trading signals, search for information on websites, send information about the account balance, quotes and screenshots of charts to you smart phone.
·mql5.com·
How to create bots for Telegram in MQL5 - MQL5 Articles
Universal Expert Advisor: A Custom Trailing Stop (Part 6) - MQL5 Articles
Universal Expert Advisor: A Custom Trailing Stop (Part 6) - MQL5 Articles
The sixth part of the article about the universal Expert Advisor describes the use of the trailing stop feature. The article will guide you through how to create a custom trailing stop module using unified rules, as well as how to add it to the trading engine so that it would automatically manage positions.
·mql5.com·
Universal Expert Advisor: A Custom Trailing Stop (Part 6) - MQL5 Articles
Universal Expert Advisor: Pending Orders and Hedging Support (Part 5) - MQL5 Articles
Universal Expert Advisor: Pending Orders and Hedging Support (Part 5) - MQL5 Articles
This article provides further description of the CStrategy trading engine. By popular demand of users, we have added pending order support functions to the trading engine. Also, the latest version of the MetaTrader 5 now supports accounts with the hedging option. The same support has been added to CStrategy. The article provides a detailed description of algorithms for the use of pending orders, as well as of CStrategy operation principles on accounts with the hedging option enabled.
·mql5.com·
Universal Expert Advisor: Pending Orders and Hedging Support (Part 5) - MQL5 Articles
Calculator of signals - MQL5 Articles
Calculator of signals - MQL5 Articles
The calculator of signals operates directly from the MetaTrader 5 terminal, which is a serious advantage, since the terminal provides a preliminary selection and sorts out signals. This way, users can see in the terminal only the signals that ensure a maximum compatibility with their trading accounts.
·mql5.com·
Calculator of signals - MQL5 Articles
Evaluation and selection of variables for machine learning models - MQL5 Articles
Evaluation and selection of variables for machine learning models - MQL5 Articles
This article focuses on specifics of choice, preconditioning and evaluation of the input variables (predictors) for use in machine learning models. New approaches and opportunities of deep predictor analysis and their influence on possible overfitting of models will be considered. The overall result of using models largely depends on the result of this stage. We will analyze two packages offering new and original approaches to the selection of predictors.
·mql5.com·
Evaluation and selection of variables for machine learning models - MQL5 Articles
Adding a control panel to an indicator or an Expert Advisor in no time - MQL5 Articles
Adding a control panel to an indicator or an Expert Advisor in no time - MQL5 Articles
Have you ever felt the need to add a graphical panel to your indicator or Expert Advisor for greater speed and convenience? In this article, you will find out how to implement the dialog panel with the input parameters into your MQL4/MQL5 program step by step.
·mql5.com·
Adding a control panel to an indicator or an Expert Advisor in no time - MQL5 Articles
Handling ZIP Archives in Pure MQL5 - MQL5 Articles
Handling ZIP Archives in Pure MQL5 - MQL5 Articles
The MQL5 language keeps evolving, and its new features for working with data are constantly being added. Due to innovation it has recently become possible to operate with ZIP archives using regular MQL5 tools without getting third party DLL libraries involved. This article focuses on how this is done and provides the CZip class, which is a universal tool for reading, creating and modifying ZIP archives, as an example.
·mql5.com·
Handling ZIP Archives in Pure MQL5 - MQL5 Articles
MQL5 Cookbook: Implementing Your Own Depth of Market - MQL5 Articles
MQL5 Cookbook: Implementing Your Own Depth of Market - MQL5 Articles
This article demonstrates how to utilize Depth of Market (DOM) programmatically and describes the operation principle of CMarketBook class, that can expand the Standard Library of MQL5 classes and offer convenient methods of using DOM.
·mql5.com·
MQL5 Cookbook: Implementing Your Own Depth of Market - MQL5 Articles
Using Layouts and Containers for GUI Controls: The CGrid Class - MQL5 Articles
Using Layouts and Containers for GUI Controls: The CGrid Class - MQL5 Articles
This article presents an alternative method of GUI creation based on layouts and containers, using one layout manager — the CGrid class. The CGrid class is an auxiliary control that acts as a container for other containers and controls using a grid layout.
·mql5.com·
Using Layouts and Containers for GUI Controls: The CGrid Class - MQL5 Articles
Using Layouts and Containers for GUI Controls: The CBox Class - MQL5 Articles
Using Layouts and Containers for GUI Controls: The CBox Class - MQL5 Articles
This article presents an alternative method of GUI creation based on layouts and containers, using one layout manager — the CBox class. The CBox class is an auxiliary control that acts as a container for essential controls in a GUI panel. It can make designing graphical panels easier, and in some cases, reduce coding time.
·mql5.com·
Using Layouts and Containers for GUI Controls: The CBox Class - MQL5 Articles
Drawing Dial Gauges Using the CCanvas Class - MQL5 Articles
Drawing Dial Gauges Using the CCanvas Class - MQL5 Articles
We can find dial gauges in cars and airplanes, in industrial production and everyday life. They are used in all spheres which require quick response to behavior of a controlled value. This article describes the library of dial gauges for MetaTrader 5.
·mql5.com·
Drawing Dial Gauges Using the CCanvas Class - MQL5 Articles
Bi-Directional Trading and Hedging of Positions in MetaTrader 5 Using the HedgeTerminal Panel, Part 1 - MQL5 Articles
Bi-Directional Trading and Hedging of Positions in MetaTrader 5 Using the HedgeTerminal Panel, Part 1 - MQL5 Articles
This article describes a new approach to hedging of positions and draws the line in the debates between users of MetaTrader 4 and MetaTrader 5 about this matter. The algorithms making such hedging reliable are described in layman's terms and illustrated with simple charts and diagrams. This article is dedicated to the new panel HedgeTerminal, which is essentially a fully featured trading terminal within MetaTrader 5. Using HedgeTerminal and the virtualization of the trade it offers, positions can be managed in the way similar to MetaTrader 4.
·mql5.com·
Bi-Directional Trading and Hedging of Positions in MetaTrader 5 Using the HedgeTerminal Panel, Part 1 - MQL5 Articles
MQL5 Wizard: Placing Orders, Stop-Losses and Take Profits on Calculated Prices. Standard Library Extension - MQL5 Articles
MQL5 Wizard: Placing Orders, Stop-Losses and Take Profits on Calculated Prices. Standard Library Extension - MQL5 Articles
This article describes the MQL5 Standard Library extension, which allows to create Expert Advisors, place orders, Stop Losses and Take Profits using the MQL5 Wizard by the prices received from included modules. This approach does not apply any additional restrictions on the number of modules and does not cause conflicts in their joint work.
·mql5.com·
MQL5 Wizard: Placing Orders, Stop-Losses and Take Profits on Calculated Prices. Standard Library Extension - MQL5 Articles
MQL5 Wizard techniques you should know (Part 03): Shannon's Entropy - MQL5 Articles
MQL5 Wizard techniques you should know (Part 03): Shannon's Entropy - MQL5 Articles
Todays trader is a philomath who is almost always looking up new ideas, trying them out, choosing to modify them or discard them; an exploratory process that should cost a fair amount of diligence. These series of articles will proposition that the MQL5 wizard should be a mainstay for traders.
·mql5.com·
MQL5 Wizard techniques you should know (Part 03): Shannon's Entropy - MQL5 Articles