The idea is rather simple. If high of the current bar is higher than high of the previous bar, and close of the current bar is lower than high of the previous bar, it is considered as a false breakthrough up. Correspondingly, if low of the current bar is lower than low of the previous bar and close of the current bar is higher than low of the previous bar, we have a false breakthrough down.
There are situations when in one bar will be two false breakthroughs - if the bar is an external in relation to the previous bar, and its close is in the previous bar's range. The indicator displays:
The essence is that if, for example, on the last five bars were 3 (or more) false breakthroughs, then, most probably, the next breakthrough high or low (the previous bar) will be true.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1562
The indicator that calculates the volume per second (or over period) and the corresponding Moving Average.Narrowest Range Signal
The narrowest range indicator defines the moments when the market is in the "compressed" state that says of the future breakthrough in this or that side