Lesson 20: Average Price Function – Calculating Average Price in MT4
This function has one parameter, orderType, which represents the order type you want to calculate the average price for (OP_BUY or OP_SELL). The function uses a for loop to iterate...