Current location - Loan Platform Complete Network - Foreign exchange account opening - How does mt4 ea report the zigzag index?
How does mt4 ea report the zigzag index?
It is important to understand the parameters of the iCustom () function.

The penultimate "0" refers to the array number in the zigzag indicator, and there are two arrays: "1" and "2". These three values correspond to three arrays in the indicator, specifically, 0 corresponds to sawtooth values, 1 corresponds to high values, and 2 corresponds to low values.

The penultimate 1 "0 "refers to the current. The current column is 0, the previous column is 1, and so on.

Only when there is an inflection point, the ZigZag value is not 0, and so are the other two arrays, but it should be noted that the ZigZag value is not 0, and there must be a value corresponding to high or low, which is not 0. On the contrary, it is not. That is, when the high or low value is not 0, the ZigZag value is not 0 at that time, but when a newer high or low value appears later, ZigZag may not be 0 because of recalculation, and now it may not be 0, that is, it is no longer an inflection point.

This is the mystery of ZigZag, or ZigZag looks beautiful, because it corrects its value, but it actually contains the so-called future function, so pay attention to it in practical application, and don't be confused by its superficial performance.

In fact, I'm also trying to figure out how to get the zigzag value and the number of columns. I hope it will help you and learn from you.