IncMAOnArray - MetaTrader 5 Library | Forex Indicator Download - MT4/MT5 Resources

The CMAOnArray class is designed for calculation of moving average indicator buffer data.
The OnInit() indicator function is called in Initialization() with the following parameters:
The method OnCalculate() indicator function is called in Solve() with the following parameters:
Test_MAOnArray.mq5 is a sample indicator showing CMAOnArray class application. The IncMAOnArray file must be located in the terminal data folder in MQL5\Include\IncOnArray (the IncOnArray folder must be created).
This Moving Average technical indicator shows the average price value of an instrument over a specific time period. When calculating a moving average, we calculate the average of the price of the instrument over that time period. As the price changes, its moving average either increases or decreases.

Attachment download
📎 incmaonarray.mqh (5.07 KB)
📎 test_maonarray.mq5 (2.24 KB)
Source: MQL5 #623
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •