ID Lite Info MA - MetaTrader 5 Script | Forex Indicators Download - MT4/MT5 Resources



By default, the indicator displays nine values of the current time frame of two different moving averages (МА), the difference between previous consecutive МА values and the difference between MAs in points. You can set the data display to be positively or negatively offset and/or rounded to the desired number of decimal places. Displaying the value of the zero (current) bar is not supported.
This indicator, like the version for MetaTrader 4 , can be used to display not only the difference between consecutive values, but also the distance in points without extending the source code:
As shown in the screenshot below, the table is displayed on a 3-digit chart with values rounded to 2 decimal places and also "extended" to 4 decimal places.
Apart from this, the indicator is identical to its MetaTrader 4 version :
In the indicator table, the color of the moving average (or bar) markers and the difference between adjacent consecutive values changes automatically. Different colors are applied when the value changes to larger, smaller, and/or equal. Changing the color of the difference between two moving averages (and/or bars or offsets) displayed in the fifth table row is not supported.
Calculating and changing table values occurs in the following situations:
If the X-axis nine values in each table row are too many or too low, then to change the number of cells and the amount of data calculated and displayed, you need to change the 9 in this line of code to convert it to a positive number >= 2:
#define ARRAY_SIZE_X 9
Additional Information:

Figure 1. Difference between indicator lines, marks and points for high and low prices on 3-digit chart, rounded to 2 decimal places

Figure 2. Markers and spreads between 2 moving averages on a 3-digit chart, "expanded" to 4 decimal places
Note: If you have added this indicator to the chart along with the Standard Moving Average and have not set the offset and/or rounding in the ID Lite Info MA input parameters, but the indicator's lines do not match the Standard MA ( with the same parameters ), then please do not jump to conclusions about the accuracy of the calculation.
Open the data window and check how many decimal places the standard moving average is displayed (for example, on a 3-digit chart it might use 4 decimal places).
In my opinion, this is normal and convenient since moving averages are calculated from average values. Example: (1.2052 + 1.2057 + 1.2073)/3 = 1.2060667 . Therefore, calculating values with rounded or extended numbers increases the number of possible usage scenarios.
If the lines should match exactly (other parameters are the same) , you can select more decimal places from the drop-down list in the ID Lite Info MA input parameter.

Figure 3. Built-in Moving Averages and ID Lite Info MA (with decimal places = current chart) on 3 digit charts
Version 1.11 from September 25, 2015:
Attachment download
📎 id_lite_info_ma.mq5 (80.9 KB)
Source: MQL5 #13356
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •