XMA JJRSX System – indicator MetaTrader 5

This indicator provides alerts and signals for making deals using large colored dots and arrows on a chart.

The indicator is based on comparing the signals of JJRSX oscillator and XMA moving average working on different timeframes – the current (chart timeframe) and the higher ones respectively.

For the colored arrows XMA indicator trading signals from the higher timeframe are transferred, while trend reversal signals of JJRSX oscillator are transferred from the current timeframe. For colored dots trend reversal signals from XMA indicator are analyzed. Colored arrows are signals for the market entry, while colored dots are signals for the market exit.

For example, if the lime colored up arrow appears, then a long position must be opened. As soon as the red dot appears, this position must be closed. The same procedure is used for short positions, though the magenta arrow and the green dot are applied. It is possible to open and close positions by the signals from colored dots, while using colored arrows for adding to already existing positions.

Smoothing algorithm can be changed for XMA moving average:

  1. SMA – simple moving average;
  2. EMA – exponential moving average;
  3. SMMA – smoothed moving average;
  4. LWMA – linear weighted moving average;
  5. JJMA – JMA adaptive average;
  6. JurX – ultralinear smoothing;
  7. ParMA – parabolic smoothing;
  8. T3 – Tillson’s multiple exponential smoothing;
  9. VIDYA – smoothing with the use of Tushar Chande’s algorithm;
  10. AMA – smoothing with the use of Perry Kaufman’s algorithm.

It should be noted that Phase parameter has completely different meaning for different smoothing algorithms. For JMA it is an external Phase variable changing from -100 to +100. For T3 it is a smoothing ratio multiplied by 100 for better visualization, for VIDYA it is a CMO oscillator period and for AMA it is a slow EMA period. In other algorithms these parameters do not affect smoothing. For AMA fast EMA period is a fixed value and is equal to 2 by default. The ratio of raising to the power is also equal to 2 for AMA.

Alternative:  REMA - indicator MetaTrader 5

Compiled files of XMA and JJRSX indicators must be placed to the terminal_data_folder\MQL5\Indicators\. The indicators use SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article “Averaging Price Series for Intermediate Calculations Without Using Additional Buffers”.

XMA JJRSX System

Indicator input parameters:

Indicator input parameters are divided into three groups. Display parameters of the indicator itself, XMA and JJRSX indicators parameters:

//+-------------------------------------+
//|  Indicator input parameters         |
//+-------------------------------------+ 
input uint SignalLableShift=100;              // Entries vertical shift
input uint StopLableShift=300;                // Stops vertical shift
input uint AlertCount=0;                      // Number of submitted alerts
input uint SignalBar=1;                       // Signal bar index, 0 is a current bar
//+-------------------------------------+
//|  XMA indicator input parameters     |
//+-------------------------------------+
input ENUM_TIMEFRAMES TimeFrame_XMA=PERIOD_H4;// XMA chart period
input Smooth_Method MA_Method_XMA=MODE_T3;    // XMA averaging method
input int Length_XMA=12;                      // XMA smoothing depth                 
input int Phase_XMA=15;                       // XMA smoothing parameter [-100...+100]
input Applied_price_ IPC_XMA=PRICE_CLOSE;     // XMA applied price
//+-------------------------------------+
//|  JJRSX indicator input parameters   |
//+-------------------------------------+
input int Length_JJRSX=8;                     // JJRSX smoothing depth
input int Smooth_JJRSX = 8;                   // JJRSX averaging JJMA depth
input int Phase_JJRSX = 100;                  // JJRSX averaging JJMA parameter [-100..+100]
input Applied_price_ IPC_JJRSX=PRICE_CLOSE_;  // JJRSX applied price


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks