OPEN-SOURCE SCRIPT

Relative Momentum Index

Atualizado
The RMI indicator is intended as a general upgrade to the RSI indicator based on logical improvements to the underlying mathematics of the RSI function.

The first change is that the RMI indicator uses the maximal change in price in both directions rather than simply the change in the closing price to better capture the relative momentum in each direction. The second change is that the the ratio between bullishness and bearishness is passed through a log function rather than the 1/(1+x) function to remove the processing artefacts caused by the EMAs and the compression within the restricted range. As a result, the RMI is an unbounded centred oscillator, although it is usually at a similar value to the RSI indicator doubled and centred at zero. The bands are intended to make differences between values more visible at a glance and for interface familiarity with the RSI indicator, though their levels are arbitrary and not intended as overbought/oversold signals.

The practical effect of these changes are that divergences are easier to see since the indicator is not compressed at extreme values and divergence strategies based on the RMI indicator are slightly more accurate. The list of occasions on the included DJI Weekly chart where the RMI divergence strategy correctly predicted a reversal while the RSI did not are as follows: July 1932, June 1962, May 1970, November 1987, May 2021
Notas de Lançamento
Algorithm is more similar to the ATR algorithm it was inspired by and has an improvement in the way gaps are interpreted.
Centered OscillatorsRelative Strength Index (RSI)

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal