XRSI_Candle_Vol – indicator MetaTrader 5

Fig. 1. XRSI_Candle_Vol
RSI_Candle_Vol indicator with additional averaging of the resulting candles. A similar averaging is applied to dynamic overbought/oversold levels as well. //+—————————————–+ //|  INDICATOR INPUT PARAMETERS           | //+—————————————–+ input uint                RSIPeriod=14;             // indicator period input ENUM_APPLIED_VOLUME VolumeType=VOLUME_TICK;   // volume input int                 HighLevel=+7;             // overbought level input int                 LowLevel=-7;              // oversold level input uint                Gap=10;                   // unconsidered gap in points input