Idea by: Scriptor.
MQL5 code by: Vladimir Karputov.
This strategy is based on analyzing the values of indicator iBands (Bollinger Bands, BB) at bar #0 relative to the close price of bar #0. Where the Close price of bar #0 is within indicator Bollinger Bands and there are no pending orders, place three Buy Stop and three Sell Stop orders with a step of Step between pending orders.
At the same time you can set for each pair of orders your own Take Profit level (First Take Profit, Second Take Profit, and Third Take Profit). Stop Loss can be placed either by indicator Bollinger Bands or by indicator Moving Average - this will be the responsibility of parameter Stop loss trailing.
The orders may be placed within the time interval from Hour start to Hour end. Each order is assigned with a life time equal to parameter Hour end: If, for instance, Hour end is 23, it means that all pending orders will be automatically deleted at 11 p.m. All pending orders will also be removed at each new bar - thus, at each new bar, orders Buy Stop and Sell Stop will be placed at the changed prices of indicator Bollinger Bands.
You can enable trailing in the EA - for this purpose, parameter Trailing Stop must be greater than zero. You can also use the trailing feature to place a Stop Loss order to a breakeven. For this, you should select the StopLoss NONE value for parameter Stop loss type. At the same time, you should keep in mind that there will be hanging positions with losses. Therefore, you will have to close such positions manually.
Moving Average indicator parameters
Bollinger Bands indicator parameters:
MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/20752
Exp_AverageChangeCandle
A trading system based on the signals of indicator AverageChangeCandle.
XStdDevSpeed_direction
Indicator XStdDevSpeed_direction shows the information on the market volatility, using the values of indicator XStdDevSpeed with a fixed timeframe.
2XMA_Ichimoku_Signal
A semaphore signal indicator using the algorithm of indicator 2XMA_Ichimoku_Oscillator.
Martingale
Dynamic managing the lot size depending on the balance.