Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Self_Adjusting_RSI

In pscillator Self-Adjusting RSI, we have implemented the methods of automated adjusting the RSI oscillator overbought/oversold levels, described in David Sepiashvili's article The Self-Adjusting RSI.

The indicator has five configurable parameters:

  • Period - RSI calculation period;
  • Applied price - RSI calculation price;
  • Calculation mode - adjusting mode:
    • Standard deviation - by standard deviation;
    • Moving average - by moving average.
  • Deviation for StdDev mode - deviation for the Standard deviation mode;
  • Deviation for MA mode - deviation for the Moving average mode.

Calculations:

SARSI = RSI(Period, Applied price)
  • If Calculation mode = Standard deviation:

    Overbought = 50.0 + Deviation * AvgDev  Oversold = 50.0 - Deviation * AvgDev  AvgDev = StdDev(SARSI, Period, MODE_SMA)  
  • If Calculation mode = Moving average:

    Overbought = 50.0 + Deviation * AvgRAW  Oversold = 50.0 - Deviation * AvgRAW  AvgRAW = SMA(RAW, Period)  RAW = Abs(SARSI - AvgDev)  AvgDev = SMA(SARSI, Period)  

MetaTrader Experts, Indicators, Scripts and Libraries

Fig 1. Calculation mode = Standard deviation

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Calculation mode = Moving average

21266

Best MetaTrader Indicators + Profitable Expert Advisors