I was interested in the title "...sliding..." and expected to see a non-linear channel at the end of the article. But ... alas.
I am sure that the channels should be non-linear. A moving average is not drawn by segments on each bar, but by a smooth line.
However, this is my private opinion and it may even be wrong.
I was interested in the title "...sliding..." and expected to see a non-linear channel at the end of the article. But ... alas.
I am sure that the channels should be non-linear. A moving average is not drawn by segments on each bar, but by a smooth line.
However, this is my private opinion and it may even be wrong.
Connect the points of the newly appeared channel with the extreme points of the previous channel and you will get a moving average.
But this is a matter of visualisation. First, I would deal with the question of the value of such constructions.
I was interested in the title "...sliding..." and expected to see a non-linear channel at the end of the article. But ... alas.
I am sure that the channels should be non-linear. A moving average is not drawn by segments on each bar, but by a smooth line.
However, this is my private opinion and perhaps it is even wrong.
From the description of Barishpolz's strategy:
From Barishpolz's description of the strategy:
...that is why they are called sliding channels.....
I wonder if there are non-slip channels? Or did Barishpolz just get clever with the terminology?
I wonder if there are non-slip channels? Or did Barishpolz just get clever with the terminology?
It is more interesting how a sliding channel should look like. If by analogy with the average, the average is a point. So a moving average is many points. A channel is two lines, so a moving channel is many pairs of lines. Although, again by analogy with the average, a channel is two points, so a moving channel is two lines (like Bolinger). On the third side, a sliding channel can be called a channel of two lines, which automatically moves and redraws as new bars appear. I don't know who likes it, but I prefer the third option. It is not quite clear what is the sliding nature of moving averages.
It is more interesting how a sliding channel should look like. If by analogy with the average, the average is a point. So a moving average is many points. A channel is two lines, so a moving channel is many pairs of lines. Although, again by analogy with the average, a channel is two points, so a moving channel is two lines (like Bolinger). On the third side, a sliding channel can be called a channel of two lines, which automatically moves and redraws as new bars appear. I don't know who likes it, but I prefer the third option. It is not quite clear what is the sliding nature of moving averages.
I would not like to go away from the topic of the article by talking about "sliding", but you can slide on a smooth surface (line, channel), but not on steps "against the wool".
===
Thanks to the author for the article.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article MQL5 Cookbook - Programming moving channels has been published:
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 implementation.
It is known that the channel is constructed on three points, and each of them has price and time coordinates. To start with, we will pay attention to the time coordinates, as their sequence affects the channel type. We will use the channel with a main line built on two local minimums as an example. A third point will be in charge of the local maximum. The position of points can be used as criteria for channel typification.
The first type refers to a case when minimum appears first, followed by maximum, and then minimum again. A schematic view of this situation is presented in Fig.1.
Fig.1 First type of set of points, a scheme
Points that are used for drawing channel's trend lines are usually fractals. This way, a point is simultaneously a fractal and a base for drawing a straight line.
We will now attempt to summarize and code the fractal points with OOP.
2.1 Class of the fractal point
The feature of this class involves being in charge of the point that is among the points used for building the equidistant channel. We will name the indicated class as CFractalPoint, and, in the best traditions of the MQL5 language, we will link it to the CObject interface class with a relation of inheritance.
The class has 4 members for transferring data:
Author: Dennis Kirichenko