It is a simple indicator that places semaphore points on the maximum and minimum of a higher, medium and lower period.
The basis of the zigzag calculation is the algorithm by klot.
Period1=5; Periods are set. If you want to remove a semaphore, set 0.
Dev_Step_1="1,3"; Deviation and step of each period are set. Two figures comma separated. Deviation and step are like in a simple Zigzag.
Symbol_1_Kod=140; The semaphore symbol on a chart can be changed. The figure is the current symbol code.
This indicator was written during the current work of creating an algorithm of an Expert Advisor according to the system "folding rule by Likhovidov".
You can read about the creation of the algorithm of "folding rule by Likhovidov" here: http://forum.profiforex.ru/showthread.php?p=15660#post15660
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7730
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.