3XMA_Iсhimoku - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources




This indicator consists of three moving averages and its calculation principle is taken from Takashi Ichimoku Kaneko .
Several slow moving averages with different periods form a cloud, the color of which corresponds to the direction of the trend. The use of this indicator is almost identical to the Ichimoku indicator.
Indicator input parameters<:
//+------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------+ Input unit last period 1= 3 ; // Period 1 for calculation of the highest price Input unit DN_Period 1 = 3 ; // Period 1 for lowest price calculation Input unit last period 2= 6 ; // Period 2 for calculation of the highest price Input unit DN_Period 2 = 6 ; // Period 2 for minimum price calculation Input unit last period 3= 9 ; // Period 3 for calculation of highest price Input unit DN_period3= 9 ; // Period 3 for minimum price calculation //---- Enter MODE_PRICE Up_mode1=High; // Price type 1 is used to find high points Enter MODE_PRICE Dn_mode1=Low; // Price type 1 is used to find lows Enter MODE_PRICE Up_mode2=High; // Price type 2 is used to find highs Enter MODE_PRICE Dn_mode2=Low; // Price type 2 is used to find lows Enter MODE_PRICE Up_mode3=High; // Price type 3 is used to find highs Enter MODE_PRICE Dn_mode3=Low; // Price type 3 is used to find the lowest point //---- Enter Smooth_Method XMA1_Method= mode_SMA ; // Smoothing method 1 Enter Smooth_Method XMA2_Method= mode_SMA ; // Smoothing method 2 Enter Smooth_Method XMA3_Method= mode_SMA ; // Smoothing method 3 //---- Input integer X length 1 = 8 ; // Smoothing depth 1 Input integer X length 2 = 25 ; // smoothing depth 2 Input integer X length 3 = 80 ; // Smoothing depth 3 Input integer X phase = 15 ; // Smoothing parameter Enter integer shift 1 = 0 ; // horizontal movement of indicator 1 (in bars) Enter integer Shift2= 0 ; // Horizontal movement of indicator 2 (in bars) Enter integer Shift3= 0 ; // Horizontal movement of indicator 3 (in bars)
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.
Place the XMA_Ichimoku.mq5 indicator compiled file into MQL5\Indicators\.
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.

Attachment download
📎 3xma_ichimoku.mq5 (11.1 KB)
📎xma_ichimoku.mq5 (9.33 KB)
📎 smoothalgorithms.mqh (134.03 KB)
Source: MQL5 #735
3XMA_Iсhimoku - MetaTrader 5 script | Forex indicator download - MT4/MT5 resource usage and screening suggestions
3XMA_Iсhimoku - MetaTrader 5 script | Foreign exchange indicator download - MT4/MT5 resources are foreign exchange indicator related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.
Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based only on titles or short-term profit descriptions.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •