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

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

author EAcpu | 2 reads | 0 comments |

ZMA - indicator for MetaTrader 5

The ZigZag Moving Average indicator uses ZigZag reference points to construct a moving average.

It has three input parameters:

The moving average is calculated as the sum of the closing prices in the range between the current bar and the reference point divided by the number of bars in the range.

Calculation example for three bars after the reference point (P):

ZMA[P] = close position[P]
ZMA[P+1] = (closing price[P]+closing price[P+1]) / 2
ZMA[P+2] = (closing price[P]+closing price[P+1]+closing price[P+2]) / 3

ZMA - indicator for MetaTrader 5


Attachment download

📎 zma.mq5 (12.4 KB)

Source: MQL5 #23117

ZMA - MetaTrader 5 script | Foreign exchange indicator download - MT4/MT5 resource usage and screening suggestions

ZMA - 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.

Verification code Refresh