P.S. The version Right differs from the version in the ArtificialIntelligence in that it fixes a small bug which caused the ATS to "increase" the position in the same direction instead of reversing by the double, in cases when the covered orders were not closed in the opposite direction. In this version such mess does not happen. But it is still necessary to manually close the positions on the instruments, so they do not accumulate swaps (can be done once a day).
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7650
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.