Flat determining indicator. If the price is within the dotted channel, the market is flat.
Originally this indicator has been written in MQL4 and was first published in the Code Base at mql4.com on 30.10.2007.
Figure 1. Indicator MaksiGen_Range_Move
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/2074
The indicator changes the color of the bar to the color corresponding to the current trend, which is determined using the RVI indicator.ADX BARS
The indicator changes the bar color to the color of the current trend calculated based on the ADX technical indicator.