The Boomerang MT5 EA
- Эксперты
-
Lungile Mbanjwa
Привет, я Lungile Mbanjwa
27-летний надёжный и преданный продавец EA.
Я программист ИИ, специализируюсь на стратегиях скользящих средних (пересечения SMA/EMA, тренды, наклоны и динамические фильтры) для создания умных и адаптивных советников (Expert Advisors).
Мои обещания: - Версия: 2.0
- Обновлено: 29 ноября 2026
- Активации: 10
Author: Lungile Mbanjwa
Platform: MetaTrader 5 (MQL5) | Type: Expert Advisor – Two Breakout Strategies
Overview
The Boomerang EA v2.00 introduces two independent breakout strategies that can run together on one chart. It combines a Previous Day High/Low breakout with an M1 Time Range Breakout, giving traders the option to enable either strategy or use both.
Each strategy has its own trading settings, magic number, trade limit and closing time. The EA places pending stop orders around the selected breakout levels and manages the resulting positions according to the configured stop loss, take profit and risk settings.
Version 2.00 also includes an updated dashboard, range chart display and restart-safe state restoration.
Trading Strategy Overview
Strategy 1: Previous Day High/Low Breakout
This strategy uses the previous candle's High and Low from your selected timeframe (D1 by default).
-
Level calculation: The EA identifies the previous candle's High and Low and displays them on the chart.
-
Pending orders: During the configured placement window (02:00–09:00 by default, broker server time), it places a Buy Stop at the previous High and a Sell Stop at the previous Low.
-
Order activation: When one pending order becomes a position, the opposite pending order is deleted.
-
Stop loss: The default method uses the High or Low of the 00:00 candle from your selected SL timeframe (H4 by default). Alternatively, you can use a fixed stop loss distance in points.
-
Take profit: Set a take profit distance in points or use 0 to disable it.
-
Daily closing: Open positions and remaining pending orders are closed or removed at the configured closing hour (22:00 by default).
The 00:00 candle levels can refresh while the candle is forming. Once the candle closes, the levels are frozen.
Strategy 2: M1 Time Range Breakout
The second strategy identifies a price range using one-minute chart data.
-
Range calculation: The EA records the highest and lowest prices during the configured time window (03:00–06:00 by default).
-
Range completion: Once the time window ends, the range is calculated and displayed on the chart.
-
Pending orders: A Buy Stop is placed above the range High and a Sell Stop below the range Low. An optional entry buffer can be added.
-
Order activation: When one pending order becomes a position, the opposite pending order is deleted.
-
Stop loss: The stop loss is placed beyond the opposite side of the range, with an optional additional buffer.
-
Take profit: Choose between no take profit, a Risk-to-Reward target or a fixed distance in points.
-
Range filters: Set minimum and maximum range sizes to skip trading days when the calculated range does not meet your requirements.
-
Daily closing: Range positions and pending orders are managed until the configured closing time (19:00 by default).
Both strategies have separate maximum trades-per-day settings and can be enabled or disabled independently.
Risk Management
The EA includes several controls to help manage trading exposure:
-
Fixed lot size: Trade using a manually selected lot size.
-
Percentage risk: Calculate lot size using a percentage of account balance and the stop loss distance.
-
Margin protection: Automatically reduce the lot size to fit available free margin. An order is skipped if the minimum lot cannot be supported.
-
Maximum trades per day: Set a separate daily trade limit for each strategy.
-
Spread filter: Prevent new orders when the spread exceeds your selected maximum.
-
Daily loss limit: Set a maximum daily loss percentage. When reached, the EA closes positions, removes pending orders and stops both strategies for the remainder of the day.
-
Trading day filter: Enable or disable individual days, including weekends for symbols that trade on Saturday or Sunday.
The daily loss protection applies to both strategies together.
Trade Management
Both strategies support optional trade management:
-
Break-even: Move the stop loss towards entry after the selected profit trigger, with an optional offset.
-
Trailing stop: Start trailing after a selected profit level, using a configurable distance and step.
-
Protective stop movement: The EA only moves the stop loss in the protective direction. It does not intentionally loosen an existing stop loss.
Stop and freeze levels are checked when modifying orders.
Restart-Safe State Restoration
The Boomerang EA is designed to retain its trading state after terminal restarts, chart re-attachments and parameter changes.
-
Saves daily trade counts and closing status using terminal global variables.
-
Restores the saved state when the EA starts again on the same trading day.
-
Rebuilds daily trading statistics from deal history.
-
Adopts existing positions and pending orders instead of automatically deleting and recreating them.
-
Removes outdated pending orders from previous trading days.
-
Waits for the terminal connection and required chart data before starting its trading logic.
This helps prevent duplicate pending orders and unnecessary interference with trades already managed by the EA.
Working Alongside Other EAs
Each strategy uses its own magic number, and the EA filters its positions and pending orders using both the magic number and trading symbol.
Chart objects are also identified using the EA's own naming prefix, helping prevent it from deleting objects belonging to other EAs.
A hedging account is recommended. On netting or exchange accounts, positions on the same symbol can be merged, which may cause the two strategies or other EAs trading that symbol to interfere with one another.
Dashboard and Chart Display
The updated dashboard provides information about both strategies, including:
-
Current EA status and account balance.
-
Previous Day High and Low levels.
-
00:00 candle High and Low levels.
-
M1 range High, Low, size and number of M1 bars.
-
Pending order and open position information.
-
Trades taken and daily profit or loss.
-
Current spread and important trading settings.
-
Strategy and magic number information.
-
State restoration status.
The chart can display previous High/Low levels, optional 00:00 candle levels, the current M1 range and historical range boxes. You can customise the display colours and choose how many previous range days to show.
The dashboard updates on a timer and is automatically hidden during non-visual backtesting.
Notifications
Optional pop-up alerts and mobile push notifications are available for important events, including EA restoration, position activity and the daily loss limit being reached.
Main Inputs
| Group | Settings |
|---|---|
| Dashboard | Show or hide the panel, display name and panel position |
| General Trading | Enable trading, lot size, slippage and close on new day |
| Strategy 1 – Previous Day High/Low | Enable strategy, magic number, level timeframe, SL timeframe, placement hours, take profit, stop loss, order expiration, daily trade limit and closing time |
| Strategy 2 – M1 Range Breakout | Enable strategy, magic number, range start and end times, entry buffer, stop loss buffer, take profit mode, range filters, daily trade limit and closing time |
| Chart Drawing | Previous High/Low lines, 00:00 levels, range box, historical ranges and colours |
| Risk Management | Percentage risk, maximum spread, daily loss limit and automatic margin adjustment |
| Trade Management | Break-even trigger and offset, trailing start, distance and step |
| Trading Days | Individual weekday and weekend settings |
| Notifications | Pop-up alerts and mobile push notifications |
Recommended Setup
-
Account type: A hedging account is recommended, especially when running both strategies or other EAs on the same symbol.
-
Magic numbers: Keep the two strategy magic numbers different. Use unique magic numbers when running separate EA instances.
-
Trading time: All strategy schedules use broker server time. Adjust the settings to match your broker's time.
-
Risk settings: Start with a small lot size or carefully configured percentage risk. Remember that breakout ranges and stop loss distances can vary.
-
Testing: Test each strategy separately before enabling both together. Use the MT5 Strategy Tester and a broker demo account to understand the EA's behaviour and settings.
-
Connection: A stable internet connection or VPS is recommended while the EA is managing pending orders and open positions.
Summary
The Boomerang EA v2.00 brings two breakout approaches into one MT5 Expert Advisor: Previous Day High/Low Breakout and M1 Time Range Breakout. Each strategy has independent settings and trade management, supported by shared risk controls, a live dashboard and restart-safe state restoration.
You can run either strategy individually or enable both, depending on your trading preferences and testing results.
Risk Disclaimer
Trading forex, gold, cryptocurrencies and other leveraged instruments involves significant risk and may result in the loss of your trading capital. The EA does not guarantee profits. Results depend on market conditions, broker execution, spread, account type and the settings used. Always test the EA on a demo account before using it on a live account, and only trade with money you can afford to lose.
