Relative Momentum Index (RMI) With WMA.

The Relative Momentum Index (RMI) is a variation of the Relative Strength Index (RSI). While the RMI counts up and down days from today’s close relative to the close n-days ago while the RSI counts days up and down from close to previous close.

BUY{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(RM,MA) AND RM < 20;}

LONGEXIT{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(MA,RM) AND RM > 60;}

SELL{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(MA,RM) AND RM > 60;}

SHORTEXIT{
SET RM = RMI(CLOSE,50,9);
SET MA = WMA(RM,50);
CROSSOVER(RM,MA) AND RM < 20;}

This slideshow requires JavaScript.

Double (D-EMA) and Triple Exponential Moving Average (T-EMA)

D-EMA and T-EMA apply more weight to the most recent data in an attempt to smooth out noise while still remaining highly reactive to changes in the data.

D-EMA = 2*EMA – EMA(EMA)

Triple Exponential MA Formula:

T-EMA = (3*EMA – 3*EMA(EMA)) + EMA(EMA(EMA))

 

BUY{
SET MA = EMA(CLOSE,9);
SET MM = EMA(MA,5);
SET 2MA = 2 * MA;
SET DMA1 = 2MA - MM;
SET 3MA = 3 * MA;
SET 3MM = 3 * MM;
SET MMM = EMA(MM,21);
SET TMA1 = 3MA - 3MM - MMM;
SET RM = RMI(CLOSE,15,15);
CROSSOVER(TMA1,DMA1) AND RM < 25;}

SELL{
SET MA = EMA(CLOSE,9);
SET MM = EMA(MA,5);
SET 2MA = 2 * MA;
SET DMA1 = 2MA - MM;
SET 3MA = 3 * MA;
SET 3MM = 3 * MM;
SET MMM = EMA(MM,21);
SET TMA1 = 3MA - 3MM - MMM;
SET RM = RMI(CLOSE,15,15);
CROSSOVER(DMA1,TMA1) AND RM > 70;}

This slideshow requires JavaScript.