Larry Williams' the Percent Range indicator drawn in the zigzag form. The indicator can be calculated and set in a fixed timeframe.
Fig.1 The iWPR_HTF indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1112
It defines the boundaries of a flat channel based on bars closings.High Low Flat Channel
Defines the boundaries of flat channel based on bars extremums