Indicators: Ideal ZigZag - page 3

 
gpwr:

There are so many algorithms for constructing zigzags. Question to all: how to correctly determine the zigzag fracture?

For example, in an ideal zigzag I would remove half of the breaks (circled in green):

I identify zigzag fractures by the fractures of the mashka. Quite simple and beautiful:

Very clever idea, the zigzag builds the vertices post facto anyway, so the mashka delay doesn't affect the half period.

And the code is simple, we look for a vertex strictly along the direction of the wave from the current bar to half a period of the wave back.

There is only one variable "wave period" in the parameters.

 
Go ahead and sing along. When you realise that the simpler a zigzag is described, the more difficult it is to implement, welcome back here.
 
TheXpert:
Go ahead and sing along. When you realise that the simpler a zigzag is described, the more difficult it is to implement, welcome back here.
My zigzag has already been implemented and used by me in EAs for the last several years. I have never complained about its speed, although I do not deny that it can be slower than a perfect zigzag because it calculates the fly. I am not criticising the perfect zigzag or other zigzags. There are as many of them as people have ideas how to build them correctly. In my opinion, of all indicators, the zigzag has the most different realisations.
 
gpwr:
My zigzag has already been implemented and used by me in EAs for the last few years.

I believe you. I have nothing against your zigzag. It just has a different principle. Not worse, not better, just different.

I have been torturing this option for a long time. You could call it the equivalent of a kagi in the form of a zigzag.

And I've been struggling with this zigzag for a long time.

 
papaklass:

I think the title of the thread is a diagnosis!

Why? - the theme of zigzags is not revealed?
 
papaklass:

I think the title of the topic is a diagnosis!

Write better )
 
Can someone please help me with an example of using it in an Expert Advisor? I want to print the indicator value in OnTick().
 
beginner:
Can someone please help me with an example of using it in an Expert Advisor? I want to print the indicator value in OnTick().
iCustom
 
kinglion7:
iCustom
I don't understand how to use GetValue.
 

Where have you seen such indicators, the use of which would oblige the user to such a perversion to get its values!? (I mean GetValue). Maybe the efficiency and speed of this implementation are high, but usability is zero. To use your indicator you need to copy GetValue from your article!?!!? This is not correct from the point of view of architecture.