Idea by: Vladimir Khlystov.
MQL5 code by: Vladimir Karputov.
The EA waits for breaking down any timframe from 1 minute through 1 month. Bar #1 is checked for breakdown at a specified timeframe Breakdown previous candle. It is also possible to enable two filters - Moving Average.
In the EA, trailing is implemented that (at the first modification of the Stop Loss level) moves Stop Loss to breakeven.
Position size can be both permanent (Lots above zero and Risk is equal to zero) and dynamically calculated in the risk percents per trade (Risk above zero and Lots is equal to zero).
WARNING! No situations may be allowed, where:
Upon reaching the target profit Close all positions when profit is achieved, all positions will be closed. The EA ensures that no more than one position in each direction is opened at the specified timeframe Previous Candle Breakdown.

Fig. 1. Current timeframe: M15, breakdown is set to H4
MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/20879
Trend_Component
Indicator John Ehlers Trend Component
Deep Drawdown MA
The EA opens positions at crossing fast iMA and slow iMA (Moving Average, MA). It has the function of outstaying the losses. It catches the type of the position in OnTradeTransaction.
Close by Equity Percent
The EA closes all positions if the equity reaches a certain ratio as related to the balance.
EA Stochastic
Trading based on indicator iStochastic (Stochastic Oscillator, Stochastic). Stop Loss, Take Profit, and Trailing of a position can be enabled/disabled.