Indicators: Fast ZigZag - page 7

 

This is probably even more correct. But I don't know how to make sure that the values A,B and C take the correct values in all possible situations.

Files:
 
victorg:

The proposed code does not always work correctly. As a result, I decided on the following variant. Although I am not completely sure about it.


Exactly, the vertices were moved twice under certain conditions. Fixed it.

 
Yurich:

Exactly, under certain conditions the vertices were moved twice. Fixed it.

Thanks !
 

Can you please give me a code to take extremum by its number, for example, at some time I need to take the 5th extremum.

Thanks in advance

 
not many replies((((
 

Yury,

The first line in your onCalculate is

for(int i=calculated>0?calculated-1:0; i<total-1; i++)

 On my backtest, calculated starts at 262.  Total is also 262.  This means that the indicator does not descend into the for loop as 261 !< 261.

But the indicator still paints zigzag red lines on the backtester.  How is this the case?

Thanks 

 

Is there a MT4 version?

Thanks

 
Angel Del Olmo:

Is there a MT4 version?

Thanks

https://www.mql5.com/ru/forum/7674/page4#comment_306300

Индикаторы: Быстрый ЗигЗаг
Индикаторы: Быстрый ЗигЗаг
  • 2012.09.03
  • www.mql5.com
Статьи и техническая библиотека по автоматическому трейдингу: Индикаторы: Быстрый ЗигЗаг
 
s'il vous plaît quelqu'un m'explique comment l'indicateur Fontinne?
 
please can someone explain to me how the Fontinne indicator?