The indicator paints bars in different colors depending on the direction of the price movement (red - up, blue - down).
The direction is determined according to the price movement by the amount of points specified in the 'Points' variable. During a movement in the opposite direction the saturation of the color is reduced according to the rollback value. Apart from the main color, there are three additional color gradations: at a rollback of 1/4 of the 'Points' value, 1/2 and 3/4. A rollback to a 'Points' value means a change in the price movement direction, in this case the indicator is painted to th main color of the opposite direction.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7099
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.