This Expert Advisor closes all positions if the total loss/profit exceeds a predefined limit. In fact, this is a global stop loss and take profit for all positions simultaneously. The EA leaves appropriate comments on its actions in the log file.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/16782
The Expert Advisor is based on a standard trend strategy and the two-layer neural network that is trained to enter the market against a trend.MFI_Histogram_Round_HTF
The MFI_Histogram_Round indicator with the timeframe selection option available in the input parameters.