Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 3339
- Rating:
- Published:
- 2018.10.25 18:02
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
X MA Sum Average is an average of moving averages. In other words, it provides the average value of multiple moving averages with the period within the range from X to N
It has four inputs:
- Initial period - МА range initial period
- End period - МА range end period
- Method - МА calculation method
- Applied price - МА calculation price
Calculation:
XMA = (MA[Initial period] + MA[Initial period+1] + .... + MA[End period] ) / (End period-Initial period+1)
Fig. 1. X MA Sum Average with the default range of periods: 20 - 100
Fig. 2. X MA Sum Average with the range of periods: 1- 50
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22418

The Expert Advisor compares Close prices

The indicator paints candles going beyond the TimeZonePivots channel