This indicator is made of a recent highest and lowest (10 periods default) passed into a filter. Then a is set other this value to generate signals like a . Another smooth the whole value to act like an overall trend.
Of course because of average smoothing, signals maybe too late. You can play with period of highest/lowest looback, as well of the 2 moving average.