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

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

author EAcpu | 5 reads | 0 comments |

MA Rounding - indicator for MetaTrader 5

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.

MA Rounding - indicator for MetaTrader 5

Figure 1 MA rounding indicator.


Attachment download

📎 ma_rounding.mq5 (7.75 KB)

📎 smoothalgorithms.mqh (133.8 KB)

Source: MQL5 #1211

Verification code Refresh