MQL Articels

468 bookmarks
Custom sorting
Neural networks made easy (Part 19): Association rules using MQL5 - MQL5 Articles
Neural networks made easy (Part 19): Association rules using MQL5 - MQL5 Articles
We continue considering association rules. In the previous article, we have discussed theoretical aspect of this type of problem. In this article, I will show the implementation of the FP Growth method using MQL5. We will also test the implemented solution using real data.
·mql5.com·
Neural networks made easy (Part 19): Association rules using MQL5 - MQL5 Articles
Data Science and Machine Learning — Neural Network (Part 02): Feed forward NN Architectures Design - MQL5 Articles
Data Science and Machine Learning — Neural Network (Part 02): Feed forward NN Architectures Design - MQL5 Articles
There are minor things to cover on the feed-forward neural network before we are through, the design being one of them. Let's see how we can build and design a flexible neural network to our inputs, the number of hidden layers, and the nodes for each of the network.
·mql5.com·
Data Science and Machine Learning — Neural Network (Part 02): Feed forward NN Architectures Design - MQL5 Articles
Neural networks made easy (Part 18): Association rules - MQL5 Articles
Neural networks made easy (Part 18): Association rules - MQL5 Articles
As a continuation of this series of articles, let's consider another type of problems within unsupervised learning methods: mining association rules. This problem type was first used in retail, namely supermarkets, to analyze market baskets. In this article, we will talk about the applicability of such algorithms in trading.
·mql5.com·
Neural networks made easy (Part 18): Association rules - MQL5 Articles
Neural networks made easy (Part 14): Data clustering - MQL5 Articles
Neural networks made easy (Part 14): Data clustering - MQL5 Articles
It has been more than a year since I published my last article. This is quite a lot time to revise ideas and to develop new approaches. In the new article, I would like to divert from the previously used supervised learning method. This time we will dip into unsupervised learning algorithms. In particular, we will consider one of the clustering algorithms—k-means.
·mql5.com·
Neural networks made easy (Part 14): Data clustering - MQL5 Articles
Matrices and vectors in MQL5 - MQL5 Articles
Matrices and vectors in MQL5 - MQL5 Articles
By using special data types 'matrix' and 'vector', it is possible to create code which is very close to mathematical notation. With these methods, you can avoid the need to create nested loops or to mind correct indexing of arrays in calculations. Therefore, the use of matrix and vector methods increases the reliability and speed in developing complex programs.
·mql5.com·
Matrices and vectors in MQL5 - MQL5 Articles
Multilayer perceptron and backpropagation algorithm - MQL5 Articles
Multilayer perceptron and backpropagation algorithm - MQL5 Articles
The popularity of these two methods grows, so a lot of libraries have been developed in Matlab, R, Python, C++ and others, which receive a training set as input and automatically create an appropriate network for the problem. Let us try to understand how the basic neural network type works (including single-neuron perceptron and multilayer perceptron). We will consider an exciting algorithm which is responsible for network training - gradient descent and backpropagation. Existing complex models are often based on such simple network models.
·mql5.com·
Multilayer perceptron and backpropagation algorithm - MQL5 Articles
Neural networks made easy (Part 8): Attention mechanisms - MQL5 Articles
Neural networks made easy (Part 8): Attention mechanisms - MQL5 Articles
In previous articles, we have already tested various options for organizing neural networks. We also considered convolutional networks borrowed from image processing algorithms. In this article, I suggest considering Attention Mechanisms, the appearance of which gave impetus to the development of language models.
·mql5.com·
Neural networks made easy (Part 8): Attention mechanisms - MQL5 Articles
Neural networks made easy (Part 6): Experimenting with the neural network learning rate - MQL5 Articles
Neural networks made easy (Part 6): Experimenting with the neural network learning rate - MQL5 Articles
We have previously considered various types of neural networks along with their implementations. In all cases, the neural networks were trained using the gradient decent method, for which we need to choose a learning rate. In this article, I want to show the importance of a correctly selected rate and its impact on the neural network training, using examples.
·mql5.com·
Neural networks made easy (Part 6): Experimenting with the neural network learning rate - MQL5 Articles
The price movement model and its main provisions (Part 2): Probabilistic price field evolution equation and the occurrence of the observed random walk - MQL5 Articles
The price movement model and its main provisions (Part 2): Probabilistic price field evolution equation and the occurrence of the observed random walk - MQL5 Articles
The article considers the probabilistic price field evolution equation and the upcoming price spike criterion. It also reveals the essence of price values on charts and the mechanism for the occurrence of a random walk of these values.
·mql5.com·
The price movement model and its main provisions (Part 2): Probabilistic price field evolution equation and the occurrence of the observed random walk - MQL5 Articles
The price movement model and its main provisions (Part 1): The simplest model version and its applications - MQL5 Articles
The price movement model and its main provisions (Part 1): The simplest model version and its applications - MQL5 Articles
The article provides the foundations of a mathematically rigorous price movement and market functioning theory. Up to the present, we have not had any mathematically rigorous price movement theory. Instead, we have had to deal with experience-based assumptions stating that the price moves in a certain way after a certain pattern. Of course, these assumptions have been supported neither by statistics, nor by theory.
·mql5.com·
The price movement model and its main provisions (Part 1): The simplest model version and its applications - MQL5 Articles
Combinatorics and probability for trading (Part V): Curve analysis - MQL5 Articles
Combinatorics and probability for trading (Part V): Curve analysis - MQL5 Articles
In this article, I decided to conduct a study related to the possibility of reducing multiple states to double-state systems. The main purpose of the article is to analyze and to come to useful conclusions that may help in the further development of scalable trading algorithms based on the probability theory. Of course, this topic involves mathematics. However, given the experience of previous articles, I see that generalized information is more useful than details.
·mql5.com·
Combinatorics and probability for trading (Part V): Curve analysis - MQL5 Articles
An Analysis of Why Expert Advisors Fail - MQL5 Articles
An Analysis of Why Expert Advisors Fail - MQL5 Articles
This article presents an analysis of currency data to better understand why expert advisors can have good performance in some regions of time and poor performance in other regions of time.
·mql5.com·
An Analysis of Why Expert Advisors Fail - MQL5 Articles
Visual evaluation of optimization results - MQL5 Articles
Visual evaluation of optimization results - MQL5 Articles
In this article, we will consider how to build graphs of all optimization passes and to select the optimal custom criterion. We will also see how to create a desired solution with little MQL5 knowledge, using the articles published on the website and forum comments.
·mql5.com·
Visual evaluation of optimization results - MQL5 Articles
Combinatorics and probability for trading (Part IV): Bernoulli Logic - MQL5 Articles
Combinatorics and probability for trading (Part IV): Bernoulli Logic - MQL5 Articles
In this article, I decided to highlight the well-known Bernoulli scheme and to show how it can be used to describe trading-related data arrays. All this will then be used to create a self-adapting trading system. We will also look for a more generic algorithm, a special case of which is the Bernoulli formula, and will find an application for it.
·mql5.com·
Combinatorics and probability for trading (Part IV): Bernoulli Logic - MQL5 Articles
Bid/Ask spread analysis in MetaTrader 5 - MQL5 Articles
Bid/Ask spread analysis in MetaTrader 5 - MQL5 Articles
An indicator to report your brokers Bid/Ask spread levels. Now we can use MT5s tick data to analyze what the historic true average Bid/Ask spread actually have recently been. You shouldn't need to look at the current spread because that is available if you show both bid and ask price lines.
·mql5.com·
Bid/Ask spread analysis in MetaTrader 5 - MQL5 Articles
Combinatorics and probability theory for trading (Part II): Universal fractal - MQL5 Articles
Combinatorics and probability theory for trading (Part II): Universal fractal - MQL5 Articles
In this article, we will continue to study fractals and will pay special attention to summarizing all the material. To do this, I will try to bring all earlier developments into a compact form which would be convenient and understandable for practical application in trading.
·mql5.com·
Combinatorics and probability theory for trading (Part II): Universal fractal - MQL5 Articles
Combinatorics and probability theory for trading (Part III): The first mathematical model - MQL5 Articles
Combinatorics and probability theory for trading (Part III): The first mathematical model - MQL5 Articles
A logical continuation of the earlier discussed topic would be the development of multifunctional mathematical models for trading tasks. In this article, I will describe the entire process related to the development of the first mathematical model describing fractals, from scratch. This model should become an important building block and be multifunctional and universal. It will build up our theoretical basis for further development of this idea.
·mql5.com·
Combinatorics and probability theory for trading (Part III): The first mathematical model - MQL5 Articles
Developing Pivot Mean Oscillator: a novel Indicator for the Cumulative Moving Average - MQL5 Articles
Developing Pivot Mean Oscillator: a novel Indicator for the Cumulative Moving Average - MQL5 Articles
This article presents Pivot Mean Oscillator (PMO), an implementation of the cumulative moving average (CMA) as a trading indicator for the MetaTrader platforms. In particular, we first introduce Pivot Mean (PM) as a normalization index for timeseries that computes the fraction between any data point and the CMA. We then build PMO as the difference between the moving averages applied to two PM signals. Some preliminary experiments carried out on the EURUSD symbol to test the efficacy of the proposed indicator are also reported, leaving ample space for further considerations and improvements.
·mql5.com·
Developing Pivot Mean Oscillator: a novel Indicator for the Cumulative Moving Average - MQL5 Articles
Applying OLAP in trading (part 1): Online analysis of multidimensional data - MQL5 Articles
Applying OLAP in trading (part 1): Online analysis of multidimensional data - MQL5 Articles
The article describes how to create a framework for the online analysis of multidimensional data (OLAP), as well as how to implement this in MQL and to apply such analysis in the MetaTrader environment using the example of trading account history processing.
·mql5.com·
Applying OLAP in trading (part 1): Online analysis of multidimensional data - MQL5 Articles
How to visualize multicurrency trading history based on HTML and CSV reports - MQL5 Articles
How to visualize multicurrency trading history based on HTML and CSV reports - MQL5 Articles
Since its introduction, MetaTrader 5 provides multicurrency testing options. This possibility is often used by traders. However the function is not universal. The article presents several programs for drawing graphical objects on charts based on HTML and CSV trading history reports. Multicurrency trading can be analyzed in parallel, in several sub-windows, as well as in one window using the dynamic switching command.
·mql5.com·
How to visualize multicurrency trading history based on HTML and CSV reports - MQL5 Articles
MTF indicators as the technical analysis tool - MQL5 Articles
MTF indicators as the technical analysis tool - MQL5 Articles
Most of traders agree that the current market state analysis starts with the evaluation of higher chart timeframes. The analysis is performed downwards to lower timeframes until the one, at which deals are performed. This analysis method seems to be a mandatory part of professional approach for successful trading. In this article, we will discuss multi-timeframe indicators and their creation ways, as well as we will provide MQL5 code examples. In addition to the general evaluation of advantages and disadvantages, we will propose a new indicator approach using the MTF mode.
·mql5.com·
MTF indicators as the technical analysis tool - MQL5 Articles
The power of ZigZag (part I). Developing the base class of the indicator - MQL5 Articles
The power of ZigZag (part I). Developing the base class of the indicator - MQL5 Articles
Many researchers do not pay enough attention to determining the price behavior. At the same time, complex methods are used, which very often are simply “black boxes”, such as machine learning or neural networks. The most important question arising in that case is what data to submit for training a particular model.
·mql5.com·
The power of ZigZag (part I). Developing the base class of the indicator - MQL5 Articles
Practical application of correlations in trading - MQL5 Articles
Practical application of correlations in trading - MQL5 Articles
In this article, we will analyze the concept of correlation between variables, as well as methods for the calculation of correlation coefficients and their practical use in trading. Correlation is a statistical relationship between two or more random variables (or quantities which can be considered random with some acceptable degree of accuracy). Changes in one ore more variables lead to systematic changes of other related variables.
·mql5.com·
Practical application of correlations in trading - MQL5 Articles
Analyzing trading results using HTML reports - MQL5 Articles
Analyzing trading results using HTML reports - MQL5 Articles
The MetaTrader 5 platform features functionality for saving trading reports, as well as Expert Advisor testing and optimization reports. Trading and testing reports can be saved in two formats: XLSX and HTML, while the optimization report can be saved in XML. In this article we consider the HTML testing report, the XML optimization report and the HTML trading history report.
·mql5.com·
Analyzing trading results using HTML reports - MQL5 Articles
Selection and navigation utility in MQL5 and MQL4: Adding auto search for patterns and displaying detected symbols - MQL5 Articles
Selection and navigation utility in MQL5 and MQL4: Adding auto search for patterns and displaying detected symbols - MQL5 Articles
In this article, we continue expanding the features of the utility for collecting and navigating through symbols. This time, we will create new tabs displaying only the symbols that satisfy some of the necessary parameters and find out how to easily add custom tabs with the necessary sorting rules.
·mql5.com·
Selection and navigation utility in MQL5 and MQL4: Adding auto search for patterns and displaying detected symbols - MQL5 Articles
Applying the probability theory to trading gaps - MQL5 Articles
Applying the probability theory to trading gaps - MQL5 Articles
In this article, we will apply the probability theory and mathematical statistics methods to creating and testing trading strategies. We will also look for optimal trading risk using the differences between the price and the random walk. It is proved that if prices behave like a zero-drift random walk (with no directional trend), then profitable trading is impossible.
·mql5.com·
Applying the probability theory to trading gaps - MQL5 Articles