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 | Reverse_Engineering_RSI

Based on Giorgos Siligardos's article "The Revenge Of The Indicators Reverse Engineering RSI" published in the Stocks & Commodities magazine in June, 2003.

the indicator performs an inverse mathematical transform of oscillator RSI into price and helps assume, at which approximate level the close price of the next day will be, if RSI reaches a certain value.

The indicator has four input parameters:

  • RSI period - period of RSI.
  • MA period - MA period;
  • Method - calculation method;
  • Applied price - price used for calculations.

Calculation:

If RMA != 0:

ReRSI = Applied price + X * (100.0 - RSI_MA) / RSI_MA)

Otherwise:

ReRSI = Applied price + X

where:

If RSI_MA= 100:

X = (RSI Period - 1.0) * (ADC_MA * RSI_MA / (100.0 - RSI_MA) - AUC_MA)

Otherwise:

RSI_MA = MA(RSI, MA Period, Method)  RSI = RSI(RSI Period)  ADC_MA = EMA(DN, 2*RSI Period-1)  AUC_MA = EMA(UP, 2*RSI Period-1)  

If Applied price > PrevPrice:

UP = Applied price - PrevPrice

If Applied price <= PrevPrice:

DN = PrevPrice - Applied price

MetaTrader Experts, Indicators, Scripts and Libraries

21046

Best MetaTrader Indicators + Profitable Expert Advisors