You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You can calculate a linear regression on the tops, on the bottoms. Measure the distance between the bounds relative to the standard deviation.
You can estimate how flat the channel is by the ratio of the B coefficients of the upper and lower bounds. If such accuracy is required.
The slope of the channel can also be determined by the B coefficient.
...
Or, you can simply calculate the average of the difference between two neighboring fractals.
Regression is not needed, the average of the difference is easier. How to plot the breaking point. In the figure the task is easier. The price has jumped out and hasn't come back on the next bar. Usually the corridor changes the angle / speed. If you calculate cumulatively, the breakpoint is skipped. As if all the data is there. And extrema are not necessarily points of corridor speed changes.
Regression is unnecessary, the average of the difference is easier. How to plot the breaking point. In the figure, the task is simpler. Price jumped out and did not return on the next bar. Usually the corridor changes the angle / speed. If you calculate cumulatively, the breakpoint is skipped. As if all the data is there. And extrema are not necessarily the points of corridor speed changes.
If another difference between two neighboring fractals is higher than a certain permissible value, it means that the channel has ended.
If the next difference between two neighbouring fractals is higher than some acceptable value, the channel is over.
If it were that simple, I wouldn't ask any questions. This is a simple variant. In real life, the corridor changes the angle more often. We may calculate average speed and average speed at every upper and lower extremum separately, or may calculate between the near extremums. We have one average speed and corridor average first, then another. It's simple now (there's a first, second third level division by Williams) There are breaks for the first levels on the second level. But in life it is more complicated. There may be no second level extremum, if the corridor was declining fast and then slowly started to decline. The inflection point is visible. How to identify it, except for calculating the cumulative average speed and, if it changes, starting from the point of change, counting it cumulatively and if it differs, then there is a point, and if it has returned to the previous values, then keep looking for more.
But this is not an algorithm to my heart's content.
All angles in metatrader are 45 degrees. Because there is no other way.
Yes the challenge from the path of the drunk is to determine where he is going and where he is changing his decision-making goals)))
You can think of 1,000 ways to define a channel, but you have to approach it from your own perspective, from your own understanding of the task at hand.
It's complicated head-on. I want to keep it simple. We have a random row on one side, but according to some rules. In general, it is a horizontal problem. When going up and down along the third one's extrema that are from the second one and those from the first one, there is no problem. Reference levels, all is well, expectation is high, errors are few. But when it is horizontal, extrema of the third and the first are in one corridor. Reference levels are no longer levels. Simple algorithms do not work as we want them to. There are many simple ones, but their logic is complicated. Thank you.
.
.
speed is everything)
You can think of 1,000 ways to identify the channel, but you have to approach it from your own perspective, from your own understanding of the task at hand.
Let's simplify the problem. 2 one-dimensional arrays of the same length N. The first has speeds, the second has bar numbers. I don't like multidimensional arrays and writing them down. But let's write it as a two-dimensional array for clarity
index 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Values 5,4, 7,8 6,11 4,14 -2,17 3,19 6,24 5,27 9,29 12,32 15,36 13,39 16,43 12,45
You can see that the break occurred on index 9 and from index 10 the average price has changed. How to find/identify index 9 and 29 bar.