Version 2.0 2017.12.28
Added the averaging parameters:
Averaging = true - enable auto averaging.
AveragingPoint = 5000 - difference between order Open prices in points (for example, 5000).
AveragingTP = 500 - number of points from the reference line where a take profit is placed (for example, 500). The EA opens an order grid, defines the averaging price (at which the total profit of orders is zero) and uses it to set a take profit for all orders for the distance specified by AveragingTP in points.