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
A non-normalized indicator that uses MACD, CCI and ADX for calculations.RD-ForecastOsc
A non-normalized oscillator that uses Tilman's averaging, drawn in the form of a color cloud.