Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

XMA_Ichimoku - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

XMA_Ichimoku - indicator for MetaTrader 5

The moving average calculation algorithm is equivalent to one of the following Ichimoku Kaneko Takashi .

Indicator input parameters:

 //+------------------------------------------------+
//|Indicator input parameters |
//+------------------------------------------------+
Input unit last period = 3 ; // Highest price calculation period
Input unit Dn_period = 3 ; // Low price calculation period
//----
Enter MODE_PRICE Up_mode=High; //Search for high price points
Enter MODE_PRICE Dn_mode=Low; // lowest search price
//----
Enter Smooth_Method XMA_Method= mode_SMA ; // Smoothing method
Input integer X length = 8 ; // smoothing depth
Input integer X phase = 15 ; // Smoothing parameter
Enter integer shift = 0 ; // horizontal movement of the indicator in bars
Input integer price movement = 0 ; // vertical movement of the indicator in points

The smoothing algorithm can be chosen from ten possible versions:

It should be noted that the Phase parameters of different smoothing algorithms have completely different meanings. For JMA, it is an external phase variable that varies from -100 to +100. For T3, it is the smoothed ratio multiplied by 100 for better visualization; for VIDYA, it is the CMO oscillation period; for AMA, it is the slow EMA period. In other algorithms, these parameters do not affect smoothing. For AMA the fast EMA period is a fixed value, equal to 2 by default. For AMA, the ratio of raised powers is also equal to 2.

The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

The indicator was first implemented in MQL4 and published in the code base on September 19, 2010.

XMA_Ichimoku - indicator for MetaTrader 5


Attachment download

📎 smoothalgorithms.mqh (133.8 KB)

📎 xma_ichimoku.mq5 (9.32 KB)

Source: MQL5 #734

Verification code Refresh