MQL Articels

468 bookmarks
Custom sorting
Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies - MQL5 Articles
Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies - MQL5 Articles
In this article we are going to show how to explore the Standard Library of Trading Strategy Classes and how to add Custom Strategies and Filters/Signals using the Patterns-and-Models logic of the MQL5 Wizard. In the end you will be able easily add your own strategies using MetaTrader 5 standard indicators, and MQL5 Wizard will create a clean and powerful code and fully functional Expert Advisor.
·mql5.com·
Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies - MQL5 Articles
How to Make a Trading Robot in No Time - MQL5 Articles
How to Make a Trading Robot in No Time - MQL5 Articles
Trading on financial markets involves many risks including the most critical one - the risk of making a wrong trading decision. The dream of every trader is to find a trading robot, which is always in good shape and not subject to human weaknesses - fear, greed and impatience.
·mql5.com·
How to Make a Trading Robot in No Time - MQL5 Articles
How to purchase a trading robot from the MetaTrader Market and to install it?
How to purchase a trading robot from the MetaTrader Market and to install it?
A product from the MetaTrader Market can be purchased on the MQL5.com website or straight from the MetaTrader 4 and MetaTrader 5 trading platforms. Choose a desired product that suits your trading style, pay for it using your preferred payment method, and activate the product.
·mql5.com·
How to purchase a trading robot from the MetaTrader Market and to install it?
Money-Making Algorithms Employing Trailing Stop
Money-Making Algorithms Employing Trailing Stop
This article's objective is to study profitability of algorithms with different entries into trades and exits using trailing stop. Entry types to be used are random entry and reverse entry. Stop orders to be used are trailing stop and trailing take. The article demonstrates money-making algorithms with a profitability of about 30% per annum.
·mql5.com·
Money-Making Algorithms Employing Trailing Stop
Visualize a Strategy in the MetaTrader 5 Tester
Visualize a Strategy in the MetaTrader 5 Tester
We all know the saying "Better to see once than hear a hundred times". You can read various books about Paris or Venice, but based on the mental images you wouldn't have the same feelings as on the evening walk in these fabulous cities. The advantage of visualization can easily be projected on any aspect of our lives, including work in the market, for example, the analysis of price on charts using indicators, and of course, the visualization of strategy testing. This article contains descriptions of all the visualization features of the MetaTrader 5 Strategy Tester.
·mql5.com·
Visualize a Strategy in the MetaTrader 5 Tester
The Last Crusade
The Last Crusade
Take a look at your trading terminal. What means of price presentation can you see? Bars, candlesticks, lines. We are chasing time and prices whereas we only profit from prices. Shall we only give attention to prices when analyzing the market? This article proposes an algorithm and a script for point and figure charting ("naughts and crosses") Consideration is given to various price patterns whose practical use is outlined in recommendations provided.
·mql5.com·
The Last Crusade
The Simple Example of Creating an Indicator Using Fuzzy Logic
The Simple Example of Creating an Indicator Using Fuzzy Logic
The article is devoted to the practical application of the fuzzy logic concept for financial markets analysis. We propose the example of the indicator generating signals based on two fuzzy rules based on Envelopes indicator. The developed indicator uses several indicator buffers: 7 buffers for calculations, 5 buffers for the charts display and 2 color buffers.
·mql5.com·
The Simple Example of Creating an Indicator Using Fuzzy Logic
A Few Tips for First-Time Customers
A Few Tips for First-Time Customers
A proverbial wisdom often attributed to various famous people says: "He who makes no mistakes never makes anything." Unless you consider idleness itself a mistake, this statement is hard to argue with. But you can always analyze the past mistakes (your own and of others) to minimize the number of your future mistakes. We are going to attempt to review possible situations arising when executing jobs in the same-name service.
·mql5.com·
A Few Tips for First-Time Customers
Create Your Own Trading Robot in 6 Steps!
Create Your Own Trading Robot in 6 Steps!
If you don't know how trade classes are constructed, and are scared of the words "Object Oriented Programming", then this article is for you. In fact, you do not need to know the details to write your own module of trading signals. Just follow some simple rules. All the rest will be done by the MQL5 Wizard, and you will get a ready-to-use trading robot!
·mql5.com·
Create Your Own Trading Robot in 6 Steps!
Simple Trading Systems Using Semaphore Indicators
Simple Trading Systems Using Semaphore Indicators
If we thoroughly examine any complex trading system, we will see that it is based on a set of simple trading signals. Therefore, there is no need for novice developers to start writing complex algorithms immediately. This article provides an example of a trading system that uses semaphore indicators to perform deals.
·mql5.com·
Simple Trading Systems Using Semaphore Indicators
Multiple Regression Analysis. Strategy Generator and Tester in One
Multiple Regression Analysis. Strategy Generator and Tester in One
The article gives a description of ways of use of the multiple regression analysis for development of trading systems. It demonstrates the use of the regression analysis for strategy search automation. A regression equation generated and integrated in an EA without requiring high proficiency in programming is given as an example.
·mql5.com·
Multiple Regression Analysis. Strategy Generator and Tester in One
DirectX Tutorial (Part I): Drawing the first triangle - MQL5 Articles
DirectX Tutorial (Part I): Drawing the first triangle - MQL5 Articles
It is an introductory article on DirectX, which describes specifics of operation with the API. It should help to understand the order in which its components are initialized. The article contains an example of how to write an MQL5 script which renders a triangle using DirectX.
·mql5.com·
DirectX Tutorial (Part I): Drawing the first triangle - MQL5 Articles
WebSockets for MetaTrader 5 — Using the Windows API - MQL5 Articles
WebSockets for MetaTrader 5 — Using the Windows API - MQL5 Articles
In this article, we will use the WinHttp.dll to create a WebSocket client for MetaTrader 5 programs. The client will ultimately be implemented as a class and also tested against the Binary.com WebSocket API.
·mql5.com·
WebSockets for MetaTrader 5 — Using the Windows API - MQL5 Articles
Multilayer perceptron and backpropagation algorithm (Part II): Implementation in Python and integration with MQL5 - MQL5 Articles
Multilayer perceptron and backpropagation algorithm (Part II): Implementation in Python and integration with MQL5 - MQL5 Articles
There is a Python package available for developing integrations with MQL, which enables a plethora of opportunities such as data exploration, creation and use of machine learning models. The built in Python integration in MQL5 enables the creation of various solutions, from simple linear regression to deep learning models. Let's take a look at how to set up and prepare a development environment and how to use use some of the machine learning libraries.
·mql5.com·
Multilayer perceptron and backpropagation algorithm (Part II): Implementation in Python and integration with MQL5 - MQL5 Articles
Neural networks made easy (Part 9): Documenting the work - MQL5 Articles
Neural networks made easy (Part 9): Documenting the work - MQL5 Articles
We have already passed a long way and the code in our library is becoming bigger and bigger. This makes it difficult to keep track of all connections and dependencies. Therefore, I suggest creating documentation for the earlier created code and to keep it updating with each new step. Properly prepared documentation will help us see the integrity of our work.
·mql5.com·
Neural networks made easy (Part 9): Documenting the work - MQL5 Articles
CatBoost machine learning algorithm from Yandex with no Python or R knowledge required - MQL5 Articles
CatBoost machine learning algorithm from Yandex with no Python or R knowledge required - MQL5 Articles
The article provides the code and the description of the main stages of the machine learning process using a specific example. To obtain the model, you do not need Python or R knowledge. Furthermore, basic MQL5 knowledge is enough — this is exactly my level. Therefore, I hope that the article will serve as a good tutorial for a broad audience, assisting those interested in evaluating machine learning capabilities and in implementing them in their programs.
·mql5.com·
CatBoost machine learning algorithm from Yandex with no Python or R knowledge required - MQL5 Articles
Websockets for MetaTrader 5 - MQL5 Articles
Websockets for MetaTrader 5 - MQL5 Articles
Before the introduction of the network functionality provided with the updated MQL5 API, MetaTrader programs have been limited in their ability to connect and interface with websocket based services. But of course this has all changed, in this article we will explore the implementation of a websocket library in pure MQL5. A brief description of the websocket protocol will be given along with a step by step guide on how to use the resulting library.
·mql5.com·
Websockets for MetaTrader 5 - MQL5 Articles
Calculating mathematical expressions (Part 2). Pratt and shunting yard parsers - MQL5 Articles
Calculating mathematical expressions (Part 2). Pratt and shunting yard parsers - MQL5 Articles
In this article, we consider the principles of mathematical expression parsing and evaluation using parsers based on operator precedence. We will implement Pratt and shunting-yard parser, byte-code generation and calculations by this code, as well as view how to use indicators as functions in expressions and how to set up trading signals in Expert Advisors based on these indicators.
·mql5.com·
Calculating mathematical expressions (Part 2). Pratt and shunting yard parsers - MQL5 Articles
MQL as a Markup Tool for the Graphical Interface of MQL Programs (Part 3). Form Designer
MQL as a Markup Tool for the Graphical Interface of MQL Programs (Part 3). Form Designer
In this paper, we are completing the description of our concept of building the window interface of MQL programs, using the structures of MQL. Specialized graphical editor will allow to interactively set up the layout that consists of the basic classes of the GUI elements and then export it into the MQL description to use it in your MQL project. The paper presents the internal design of the editor and a user guide. Source codes are attached.
·mql5.com·
MQL as a Markup Tool for the Graphical Interface of MQL Programs (Part 3). Form Designer
Native Twitter Client: Part 2
Native Twitter Client: Part 2
A Twitter client implemented as MQL class to allow you to send tweets with photos. All you need is to include a single self contained include file and off you go to tweet all your wonderful charts and signals.
·mql5.com·
Native Twitter Client: Part 2
Native Twitter Client for MT4 and MT5 without DLL
Native Twitter Client for MT4 and MT5 without DLL
Ever wanted to access tweets and/or post your trade signals on Twitter ? Search no more, these on-going article series will show you how to do it without using any DLL. Enjoy the journey of implementing Twitter API using MQL. In this first part, we will follow the glory path of authentication and authorization in accessing Twitter API.
·mql5.com·
Native Twitter Client for MT4 and MT5 without DLL
MQL as a Markup Tool for the Graphical Interface of MQL Programs. Part 1
MQL as a Markup Tool for the Graphical Interface of MQL Programs. Part 1
This paper proposes a new conception to describe the window interface of MQL programs, using the structures of MQL. Special classes transform the viewable MQL markup into the GUI elements and allow manage them, set up their properties, and process the events in a unified manner. It also provides some examples of using the markup for the dialogs and elements of a standard library.
·mql5.com·
MQL as a Markup Tool for the Graphical Interface of MQL Programs. Part 1
MQL as a Markup Tool for the Graphical Interface of MQL Programs. Part 2
MQL as a Markup Tool for the Graphical Interface of MQL Programs. Part 2
This paper continues checking the new conception to describe the window interface of MQL programs, using the structures of MQL. Automatically creating GUI based on the MQL markup provides additional functionality for caching and dynamically generating the elements and controlling the styles and new schemes for processing the events. Attached is an enhanced version of the standard library of controls.
·mql5.com·
MQL as a Markup Tool for the Graphical Interface of MQL Programs. Part 2
Applying network functions, or MySQL without DLL: Part II - Program for monitoring changes in signal properties
Applying network functions, or MySQL without DLL: Part II - Program for monitoring changes in signal properties
In the previous part, we considered the implementation of the MySQL connector. In this article, we will consider its application by implementing the service for collecting signal properties and the program for viewing their changes over time. The implemented example has practical sense if users need to observe changes in properties that are not displayed on the signal's web page.
·mql5.com·
Applying network functions, or MySQL without DLL: Part II - Program for monitoring changes in signal properties