The idea of the InverseReaction indicator is based on the assumption that an unusual price changes (going beyond the volatility range) is accompanied by a reverse movement.
There are many examples of this behavior: the case of Lehman Bros, Flash Crash, etc.
The signal appears when price goes beyond the boundaries of the gray volatility cloud. In this case, the reverse reaction can be expected. In this situation, the histogram bar is painted in the appropriate color.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".
The original indicator was developed in the MQL4 language and published in the CodeBase on 10.10.2013.
Figure 1. The InverseReaction indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/11290
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.