This indicator is designed to draw a Fibonacci retracement, using as a basis the ZigZag indicator. I converted from this Metatrader 4 code https://www.mql5.com/en/code/18078