This is a helper Expert Advisor. A trader determines a trend on a currency pair and then runs the Expert Advisor to open a Sell trade (if SELL = TRUE) or a buy trade (if SELL = FALSE). The EA opens a trade once run. If it becomes profitable, it turns on Trailing. If the trade is closed by Take Profit, it opens another one in the same direction. If the trade becomes unprofitable, it can be closed by a Stop Loss located near. Or the EA can open a series of trades using Martingale (if Martingale = True) with step specified in StepOrders. The number of orders is specified in Quantity_Orders and the lot multiplier is Multiplicftion_Lots. All the open trades can be closed when reaching the total profit value specified in TakeFulls parameter.
The screenshots demonstrate two modes of operation. First of all a trader determines a trend on its currency pair and timeframe H1 or higher. Then the trader attaches the EA to the chart choosing one of two modes of operation. In the example, the trend is determined using Stochastic oscillator with parameters: К=40, D=40, s=40.