The basic trading principle of the Expert Advisor has remained the same as in the previous version: https://www.mql5.com/en/code/13809 .
Description of trading using the two Moving Averages. The EA has 3 trading modes using them:
Lot size as a percentage of the balance:
the name speaks for itself — the lot size will vary depending on changes in the value of your balance;
to enable this mode it is necessary to switch the Lot type to the Percent of balance mode, the required value is specified in the Lot size as a percentage of balance parameter, during that the Lot parameter value is not considered, if the lot size is calculated as lower than the minimum allowed, then the trade is not opened.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/14476
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.