Candle Amplitude oscillator displays the amplitude of candles in two modes:
If the current candle's selected amplitude exceeds the previous candle's one, the oscillator line is green.
If the current candle's selected amplitude is lower than the previous candle's one, the oscillator line is red.
There is also a signal line - the average value of the candles amplitude for a selected period.
The indicator has two input parameters:

Fig. 1. Candle Amplitude, High/Low mode

Fig. 2. Candle Amplitude, Open/Close mode
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/21431