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

Real author:
Crossing moving averages and zigzags. More precisely, MA draws on the Zigzag principle. In the input data, this parameter is present in addition to the moving average itself.
Input unit horse circle = 50 ; //rounding factor
This parameter determines the number of points on the opposite side of the previous movement that МА does not respond to.
The indicator was first implemented in MQL4 and published in the code base on February 11, 2010.
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.

Figure 1 MA rounding indicator.
Attachment download
📎 ma_rounding.mq5 (7.75 KB)
📎 smoothalgorithms.mqh (133.8 KB)
Source: MQL5 #1211
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •