What is input variable period in zigzag indicator using for?

 

I have read this article: https://www.mql5.com/en/articles/2774

I don't understand what variable period in zigzag indicator using for? Anyone help me explain it. Thanks a lot.

Universal ZigZag
Universal ZigZag
  • www.mql5.com
The class will be located in the "CZZDirection.mqh" file, name of the base class — "CZZDirection". The class will contain a virtual Calculate() method. It will be passed the parameters that allow to determine the bars for calculation (rates_total, prev_calculated variables), buffers with the source data and buffer for direction. As mentioned...