Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7360
Have you perhaps heard about the caterpillar? Here it is.... I do not remember where I got the code, I simply translated it from С++ to MQL4.PeriodBarsHIGH PeriodBarsLOW
Library functions, get the HIGH LOW for the specified time interval
The indicator of the first price change derivative or simply trend speed and sign.Demark Lines
My version of plotting the DeMark lines, also draws channels in addition to the trend lines and targets. Added one more target (the third one defined as 1.62 of the inner extremum), added the signal cancellation when closing within the channel.