The SMA is a lagging indicator, and as a result the signals are late thereby reducing profit opportunities. Similarly in sideways markets, the SMA generates whipsaws which can result in too many trades and losses. The RMA indicator attempts to remove the drawbacks of the SMA by reducing the lag period.
The RMA is calculated using three moving averages, namely long term, medium term and short term. The long term period is computed as three times the RMA_PERIOD. The medium term is computed as twice the RMA_PERIOD, and the short term is computed using the RMA_PERIOD.
We subtract the medium term SMA from the long term SMA and then add the short term SMA.
Thus, RMA = SMA(3 x PERIOD) - SMA(2 x PERIOD) + SMA(PERIOD)