Please don’t kick, it’s hard for me..

In the attachment picture.

We have a

candlestick chart of the EURUSD price change on m5.

The

following conditions must be checked:

- The presence of 2 vertices (4, 6)
- Segment 2-3 should be

more than the 3-4 segment by at least 1000 pips - Segment 5-6 is larger than 4-5

at least 4 times - Segment 7-8 is greater than 6-7 at

least 3 times

And we need

the price values at points 4, 5 and 6

Thanks.

## integer

Look at the article, it solves this problem in the best possible way. But maybe a pure zigzag will not suit you, maybe vertices 2 and 6 are of the same order, and 4 and 5 are smaller, then you will need to use two zigzags with different parameters.

There will be another article soon, there will be a similar vertex analysis, but without the zigzag.

In general, the task is not easy.

===

You can simply define a vertex with the functions arraymaximum() and arrayminimum(), but you still need to have data on several vertices at the same time, despite the fact that some of them may have different parameters.

If you do it directly in the Expert Advisor, there will be terrible brakes, you need to do it in the indicator.

## dmitr

Did no one ever described the two peaks on the chart?!

## slava_kornev55

you set the search range and search for max min on it

Or by fractals. Yes, download some indicator on the Internet and see.

## dmitr

Metatrader5. Points, like, I wrote – according to the price chart.

## genino

The most important thing was not written. What is the terminal? How are points constructed?