The indicator shows the position of the current price in a channel.
First it determines the channel boundaries. The upper boundary is defined as the maximal value of High, the lower boundary is determined from the minimal values of Low. If the current value of Close is located in the middle of the channel, its value is equal to 0. The price position is determined relative to the upper (from 0 to 10) and lower (from 0 to -10) channel boundaries.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/194