Ultimate Range Breakout - User Guide

Ultimate Range Breakout - User Guide

23 November 2026, 15:53
Logan Mcclain
0
8

Expert Advisor for MetaTrader 5 · version 16.00 · User manual
Actual Algos · seller AnActualBanana on MQL5

Contents
The idea behind the strategy
1. What the EA does
2. Installation
3. Quick start
4. Server time and ranges
5. The seven trade types
6. Chains, limits and re-arming
7. Filters and indicator signals
8. Exit profiles
9. Positions, sizing and risk
10. News filter (rebuilt in version 15)
11. Chart and dashboard
12. Backtesting and optimisation
13. Troubleshooting
14. Lot sizes and cent accounts (new in version 16)
15. Support
16. Risk notice
Example settings (not optimised, for testing only)

The idea behind the strategy

The opening range breakout is one of the best-known day-trading methods. The first minutes of a session, when overnight news and waiting orders reach the market, set a high and a low; a decisive break of that range often shows which way the market wants to go for the rest of the day. Toby Crabel's 1990 book on short-term price patterns and the opening range breakout made the method popular with futures traders. Academic tests followed. Holmberg, Lönnbark and Lundström (2013) found that opening range breakout trades earned returns significantly above zero in their test, and Zarattini, Barbon and Aziz (2024) found the method worked best on US stocks that were unusually active that day, and far less well on ordinary ones.

That last finding is the main caveat: a breakout edge depends on the market and the day, and it is easy to find a range that worked in the past by chance. Ultimate Range Breakout is built to test the idea properly. It can mark up to four time ranges (an exchange open, a session start) and a consolidation box it finds by itself, and trade each one seven ways, from the classic breakout to fading a false break or trading back into the range, each with its own exit profile and filters. Use it to find out which version holds up on your markets, with real ticks and realistic costs, rather than assuming the classic breakout still works.

Further reading: T. Crabel, Day Trading with Short Term Price Patterns and Opening Range Breakout (1990); A. Holmberg, C. Lönnbark and C. Lundström, "Assessing the profitability of intraday opening range breakout strategies", Finance Research Letters 10 (2013) 27-33; C. Zarattini, A. Barbon and A. Aziz, "A profitable day trading strategy for the U.S. equity market", Swiss Finance Institute research paper 24-98 (2024).

1. What the EA does

Ultimate Range Breakout marks one or more price ranges each day and trades what price does around them. A range is either a fixed time window (for example the first 15 minutes after an exchange opens) or a consolidation box the EA finds by itself. Around each range it can run seven trade types, from the classic breakout to fading an over-extension, and every trade is managed by one of three exit profiles.

Ranges 1-4 (time) + range C (consolidation box)
        │
        ▼
Trade types: Breakout · Opposite breakout · Reversal · Range trade ·
             Mean reversion · Retest + break of structure · Indicator signal
        │ each: Off / Always / Chain (only after another type lost)
        │ optional filters: 17 filter modes (group 4)
        ▼
Exit profiles A / B / C: stop loss · 3 targets · break-even · trailing · time exits

It works on CFDs (indices, metals, energies), forex and crypto, on any chart timeframe. The EA's own signal timeframe is set separately, so the chart you attach it to does not change its trading.

2. Installation

  1. Buy or download the product on the MQL5 Market, or from the Market tab inside MetaTrader 5 (you must be logged in to your MQL5 account there). It installs itself into Navigator → Expert Advisors → Market.
  2. Open a chart of the symbol and timeframe you want, drag the EA onto it, set the inputs and tick Allow Algo Trading.
  3. Switch on the Algo Trading button in the terminal toolbar. The Experts tab shows the EA's start-up messages, including its version.
  4. The free demo runs in the Strategy Tester only. Test there, then on a demo account, before any real account.

The Market version has no licence key. Each purchase includes a fixed number of activations (installations on different computers); reinstalling on the same computer does not use a new one.

3. Quick start

  1. Open a chart of the symbol (any timeframe) and attach the EA.
  2. Set the range times and exits for your market (see Server time and ranges), or keep the defaults.
  3. Check the range times against your broker's server clock (the time shown in Market Watch) – see Server time.
  4. Set your risk in 8. Positions & sizing (default: 1% of balance per trade).
  5. Run it in the Strategy Tester first, in visual mode, to see the ranges, trades and dashboard.

The defaults trade one daily range (09:30 server time, 15 minutes, 5-minute bars): a breakout in either direction on a bar close beyond the range, stop at the other side of the range, targets at 1R, 2R and 3R (a third of the position each), break-even at 1R, trailing from 2R at one ATR, at most one open position, and no more trades that day after a winner.

Every symbol, timeframe and broker behaves differently. Defaults are starting points to test, not optimised or recommended settings.

4. Server time and ranges

All times in the inputs are broker server time – the clock shown in Market Watch, not your computer's. Many brokers run at GMT+2 in winter and GMT+3 in summer so that the New York close is midnight; on those servers the New York stock open (09:30 ET) is 16:30, Frankfurt's open (09:00 CET) is 10:00 and London's (08:00 UK) is 10:00. If your broker's clock differs, move the times by the difference.

Time ranges 1–4 (group 2)

Input Meaning
Range N: on / start / length Up to four daily ranges. A range's high and low are the high and low of the signal-timeframe bars inside the window; it becomes tradable when the window ends.
Daylight saving shift / minutes For servers whose clock does not follow the market's summer time: while summer time is active in the chosen region (US or EU), every time input (ranges, cutoffs, close-at times) moves by the given minutes (use a negative number to move earlier).
Range size filter basis, min / max Skip a day's range that is too small or too large, in points or in % of price (% of price suits every symbol; 0 = no bound). A skipped range is logged as REJECTED.

Range C – consolidation box (group 2b)

Between a search start and end time the EA looks for the first box of N signal bars whose total height is at most a limit (points, ATR multiple or % of price). That box's high and low then work exactly like a time range, as range C. With Re-arm on, once the box breaks the EA searches for the next one, so range C can produce several boxes a day.

Each trade type chooses its ranges with a list such as 1,2,3,4,C.

5. The seven trade types

Groups 3a–3g hold one block per trade type, next to each other. The shared inputs are:

Input Meaning
Mode Off, Always, or Chain – only after the type chosen in Chain after lost in the same range today.
Ranges traded Which ranges this type trades: 1–4 and C, comma-separated.
Max trades per range per day The type re-arms after each trade until this count (0 = no limit).
Directions Long and short, long only or short only (also see Allow long / short in group 1).
Exit profile A, B or C (groups 5–7).
Sizing / sizing value Use the shared sizing of group 8, or this type's own risk %, fixed risk or fixed lots.
Order type Market on the signal; a stop order at the level (breakouts place both sides as a one-cancels-other bracket when the range is final); or a limit order at the level, filled on a pullback.
Stop new entries N bars after the range Entry window, counted in signal bars from the range end (0 = rest of the day).
Apply the filters Whether the filters of group 4 must agree before this type trades.
Confirm Also require an indicator entry event (group 4) in the trade's direction within the last N bars (0 = off).
Late entry If the filters block the signal, keep it valid for N more bars and enter as soon as they agree (0 = no limit while the signal holds).

3a. Breakout

Long when price breaks above the range high plus a buffer, short below the low minus the buffer. With Require a bar close beyond the level the bar must close there; without it the first tick through the level triggers.

3b. Opposite breakout

A breakout of the other edge – typically chained after a losing breakout, to catch the move that trapped it. Has its own buffer and close requirement.

3c. Reversal

If an open breakout fails quickly – price moves beyond the other edge plus the flip buffer within N bars of the breakout – the EA closes it and opens the opposite trade.

If the breakout's stop sits at the other edge of the range, the stop is hit before a flip can happen unless the flip buffer is smaller than the stop buffer. Give the stop more room (a larger buffer or a distance stop) when you use reversals.

3d. Range trade

Fades from inside the range: buys near the low and sells near the high (within X% of the range from an edge), aiming back across it. Profile B's defaults suit it: a stop 25% of the range away and a broker target at the other edge.

3e. Mean reversion

Fades a move that has stretched far beyond the range, back toward a mean (the range open, close, midpoint, the other edge or VWAP).

  1. Extension: price must first go at least the minimum extension beyond the range.
  2. Bias (3e-1): exhaustion signals – volume climax then dry-up, a tight consolidation, RSI overbought/oversold, SuperTrend against the move, Force index, stretch from VWAP – are combined by weighted score, all or any, and set the fade direction. It locks once per session, or is re-checked after each new consolidation.
  3. Entry (3e-2): while the bias holds, an RSI trigger, a SuperTrend flip toward the mean or a consolidation breaking toward the mean opens a fade. Optional add-on entries (every N points, ATR or bars, or whenever no fade is open) can share one stop/target or have their own.

Profile C's defaults suit it: stop beyond the session extreme plus a buffer, target at the mean.

3f. Retest + break of structure

  1. Breakout of the range (own buffer and close requirement).
  2. Retest: price comes back to the broken edge (within a tolerance), re-enters the range by a depth, or retraces X% of the breakout move – measured on the wick, the close or the candle median. One touch is enough.
  3. Break of structure: price then breaks beyond the breakout's extreme (a new high/low), beyond the last swing inside the pullback, or beyond the retest candle – with its own buffer and close requirement. The trade opens here (market), or a stop order waits at the level, or a limit order waits at the edge.

Each setup can be cancelled by a close past the range midpoint, a close through the other edge, too many bars before the retest or before the break, or a cutoff time. With the Swing point stop (exit profile) the stop goes beyond the retest low/high.

Switch direction when the other side breaks (new in 12): with this on, a breakout of the other edge (same breakout rules – close or tick, buffer) no longer cancels the setup: it turns around and waits for the retest and break of structure in the new direction. It can switch back and forth as often as the other side breaks. The break of structure uses each direction's own extreme for the day (highest high since the first up breakout, lowest low since the first down breakout). A pending retry follows the switch. The midpoint and other edge cancellations are replaced by the switch (they still apply when that direction is not allowed). The daily maximum and the direction settings still apply.

3g. Indicator signal

After a range ends, a signal window opens (until N bars later and/or a cutoff time). Inside it, an entry event from any indicator set to an entry mode in group 4 – a SuperTrend flip, an MA cross, RSI crossing its level, and so on – opens a trade. Events pointing in opposite directions on the same bar cancel out.

6. Chains, limits and re-arming

With Chain a trade type only arms in a range after the chosen type lost there today. Break-even and winning trades do not count as losses. A typical chain:

Breakout (Always) ──lost──► Opposite breakout (Chain after Breakout)
                    └──lost──► Retest + BOS (Chain after Breakout)

Once a chained type has traded in a range, it can re-arm later that day (up to its daily maximum) without its predecessor losing again. Stop for the day after a winning trade (group 9) ends the day for all types after any winner.

Retries after a failed trade (new in 11)

Breakout, Opposite breakout and Retest + BOS each have Retries after a failed trade (0 = none) and Retry only after a loss (on by default; off = retry after any close, including break-even and wins).

  • Breakout / opposite breakout: after the trade fails, the same direction re-arms. Price must first come back inside the level (the breakout condition stops being true), then break it again under exactly the same rules — close or tick, buffer, filters. It does not need to pass the previous breakout's extreme. With stop orders, the order is placed again once price is back inside.
  • Retest + BOS: after the trade fails, the setup restarts from the move's new extreme (the highest high / lowest low since the original breakout). Price must retest the original range edge again (same retest rules) and then break that new extreme (with Switch direction on, a break of the other side turns the retry around). The setup's cancellations still apply — a close past the midpoint or through the other edge, the bar limits and the cutoff end the retries.
  • Max trades per range per day counts retries and stays a hard cap: with 3 retries, set it to at least 4 (0 = no limit). The Experts tab notes it when the maximum blocks the retries.
  • Chains are unaffected: a type chained after Breakout arms on Breakout's first loss, whether or not Breakout still has retries left.

7. Filters and indicator signals

Group 4 gives every indicator a mode:

Mode Effect
Off Not used (no indicator is loaded).
Filter only Must agree with a trade's direction.
Filter + conditional entry Filter, and its entry event can open indicator-signal trades when the active filters agree.
Filter + unconditional entry Filter, and its entry event opens indicator-signal trades whatever the other filters say.
Conditional entry Not a filter; its event opens trades when the active filters agree.
Unconditional entry Not a filter; its event opens trades regardless.
Indicator Filter (long / short) Entry event
SuperTrend trend up / down flip
MA cloud (MA 1 fast vs MA 2 slow) fast above / below slow cross
Price vs MA close above / below the chosen MAs price crosses them
MA stack MA1 > MA2 > MA3 / reverse stack forms
MA slope chosen MAs rising / falling over N bars (optional minimum) –
ADX ADX at or above its level (optionally +DI/−DI agree) ADX rises through the level
Efficiency ratio trend efficiency at or above a minimum –
RSI RSI at/above the long level, at/below the short level crosses the level
Force index positive / negative zero cross
Choppiness trending (at or below the maximum) –
VWAP (day or range anchored) price above / below price crosses it
Range size vs ATR range between min and max × daily ATR –
Gap trade only with today's opening gap: longs after a gap up, shorts after a gap down –
Prior day longs above the prior-day high, shorts below its low –
Time since range minutes since the range ended within limits –
Signal candle strength (new in 10) the signal candle (high to low, or body) is at least and/or at most a size in points, ATR or % of price — the closed breakout bar, or the forming bar when the entry triggers on a tick –
MA cloud width (new in 10) the distance between MA 1 and MA 2 is at least and/or at most a size in points, ATR or % of price, for both directions –

Signal candle direction (new in 11, group 4d): optionally, the signal candle must close in the trade's direction — bullish (close above open) for longs, bearish for shorts. The candle is the closed breakout bar, the forming bar for tick entries (price above / below its open), the break-of-structure bar for Retest + BOS, and the signal bar for range trades, mean reversion and indicator-signal trades. Like the filters it follows each trade type's Apply the filters switch.

Candle strength and candle direction do not apply to the range-end check or to stop-order brackets (placed when the range ends, before any breakout candle).

Which MAs: Price vs MA and MA slope each choose MA 1, 2 or 3, any pair, all three, at least 1 of the 3 or at least 2 of the 3. Each MA has its own period, method, price and timeframe.

How filters combine: all must pass, any may pass, or a weighted score (group 4a) must reach a threshold. When: on the trade's signal bar, once at the range end (fixing the day's allowed directions), or both. Each trade type decides with Apply the filters whether it listens. The SuperTrend uses the same engine as our SuperTrend EA, on its own timeframe.

8. Exit profiles

Groups 5, 6 and 7 are three complete, identical sets of exit rules. Each trade type picks one. Defaults: A for breakouts, B for range trades, C for mean reversion.

Part Options
Stop loss Range edge (the other side of the range) · distance from entry (points, ATR, % of range, % of price) · session high/low · multiple of the extension · swing point (retest low, or the N-bar low) · SuperTrend line · MA line. Optional buffer beyond the level and a minimum distance.
Targets 1–3 Each: R multiple · ATR · % of range · % of price · points · % of the way to the other edge · the mean · multiple of the extension – with the % of the position to close there. Scale multiplies every target distance. Single target as a broker TP sends one target to the broker instead of the EA closing it.
Break-even Trigger: points, ATR, R, % of range, % of price in profit, or when target 1 fills. Lock at entry ± points or ± R. Optionally move to break-even when the next range starts.
Trailing Start once in profit by a set amount; trail at a distance, along the SuperTrend line, along an MA, or behind the swing low/high of the last N bars (with a buffer).
Time exits Maximum hold (signal bars or minutes); close at a set time, optionally blocking new entries after it.

Targets and break-even are measured from the entry price (the order price for stop and limit orders); R is the initial stop distance.

Exit signals (new in 11, groups 4e and 4f)

Indicators can also close an open trade when they turn against it — the inverse of their filter test, with the same settings, checked on every closed signal bar. Each has an exit mode: Off, Conditional exit (counts toward a combined decision) or Unconditional exit (closes the trade on its own).

Exit signal Against a long (mirror for shorts)
SuperTrend the trend is down
MA cloud MA 1 below MA 2
Price vs MA the close is below the chosen MAs (same MA choice as the filter)
MA stack MA1 < MA2 < MA3
MA slope the chosen MAs slope down
ADX the ADX filter no longer passes (trend faded, or +DI/−DI against)
Efficiency ratio below its minimum
RSI below the long level (shorts: above the short level)
Force index negative
Choppiness above its maximum
VWAP the close is below VWAP
MA cloud width outside its limits

Conditional exits combine by Exit logic: any one is enough, all must agree, or the weights (group 4f) of those against the trade must reach the exit threshold. Minimum bars in the trade gives new trades room first; with Ignore a signal already against the trade at entry (on by default) a signal only counts after it has been in the trade's favour once. Range size, gap, prior day, time since range and candle strength have no clear opposite and are not exit signals.

Each exit profile switches them on or off (Exit signals close trades of this profile): on for profile A, off for B and C by default, so range trades and mean-reversion fades — which trade against the move on purpose — are not closed by trend indicators.

9. Positions, sizing and risk

Input Meaning
Max open positions for this EA Counts this EA's positions on this symbol (0 = no limit).
Opposite-direction positions When a new trade points the other way: close the open ones first, keep both (hedging accounts), or skip the new trade.
Max positions on the symbol / count other EAs A cap across the whole symbol, optionally including manual trades and other EAs.
Sizing Risk % of balance, fixed risk in account currency, or fixed lots. Risk sizing uses MetaTrader's own profit calculation for the symbol, so it is correct for indices and crosses whose tick value is misreported.
Skip a trade whose risk is below the min lot On: a trade that would need less than the minimum lot is skipped rather than rounded up (which would risk more than asked).
Max lots per order (new in 13) A ceiling on the size of any single order, whatever the sizing mode works out (0 = no cap). Risk sizing on a very tight range can ask for a very large position; the cap keeps leverage and margin use in check at the cost of a smaller risk on those trades. A cap below the symbol's minimum lot skips the trade.
Stop for the day after a winning trade No further entries that day once any trade wins.
Daily stop Stop entering after an equity drawdown % for the day or a number of losing trades; optionally close open positions too.
Days Trade on each weekday; Saturday and Sunday are off by default (turn on for crypto).

Automatic safeguards: lots are reduced to what free margin allows and to the symbol's volume limit; no orders are sent while the symbol's session is closed (cancels wait for the reopen); stops too close to the market for the broker are skipped rather than rejected; pending orders left from an earlier day are withdrawn.

With the news filter off (the default) the EA trades around releases (rate decisions, inflation and jobs data and so on) like any other time; see News filter. The weekday switches (group 10) cover recurring days.

Netting accounts hold one position per symbol. On them the EA always runs one trade at a time, and an opposite trade closes the open one first, whatever group 8 says. Run a single chart per symbol.

Each chart needs its own magic number (group 1) if you run the EA more than once on the same symbol.

10. News filter (rebuilt in version 15)

The news filter keeps the EA from trading around scheduled economic releases (interest-rate decisions, inflation and jobs reports and similar). It is off by default (News filter: on): with it off nothing is read and the EA trades as if the filter did not exist. The same filter, with the same inputs and the same wording, is built into every Actual Algos EA.

Switching the filter on is not enough on its own: all three impact levels start on Ignore, so you also choose an action for the levels you care about.

What each action does

Action What happens while a news window is active
Ignore (default) Nothing. Events of this impact level are not used.
Manage only No new trades. Trades that are already open are managed as usual.
Skip No new trades, and when the window starts the EA closes its open trades and deletes its pending orders.

A window runs from the chosen number of minutes before an event until the chosen number of minutes after it. Skip only closes this EA's own trades on the chart symbol (matched by its magic number), never other EAs' or manual trades. Closing a trade costs the spread and books whatever result it has at that moment.

In this EA:

Manage only

  • No new entry is placed: no market order and no pending (stop or limit) order, on any of the trade types, chains or retries. Pending orders that are already resting are left as they are.
  • Open trades are managed as usual (targets, break-even, trailing, time exit).

Skip

  • Everything Manage only does, and at the start of the window the EA closes its open trades on this symbol and deletes its pending orders. It writes one line to the Experts tab for the window and keeps trying every tick if a close fails.
  • A trade closed this way still counts as that range's attempt for the per-range trade limits, and stop-order brackets that were deleted can be placed again after the window.

One extra input belongs to this EA: News: treat the whole server day of a high-impact event as manage-only (off by default). Switched on, a day that holds a high-impact event for the symbol allows no new entries at all, whatever the time of the event and whatever the high-impact action is set to.

The three impact levels

Level Settings Default when you switch it on
High impact (importance 3) Action, minutes before, minutes after 30 before, 30 after
Medium impact (importance 2) Action, minutes before, minutes after 15 before, 15 after
Low impact (importance 1) Action, minutes before, minutes after 5 before, 5 after

The level of an event is the importance given to it in the news file or by the MetaTrader calendar. Each level has its own action, so you can, for example, skip high-impact events and ignore the rest. All three actions are Ignore until you change them. If windows of several levels overlap, the strongest action wins (Skip over Manage only over Ignore).

Which events affect which symbol

An event only affects the symbols it should. The EA works out the currencies that move the chart symbol from its name:

Symbol Events that count
Forex pairs (for example EURUSD, GBPJPY) Both currencies of the pair, every impact level.
US indices (S&P 500, Nasdaq 100, Dow Jones, Russell: names starting SP500, US500, SPX, NDX, NAS, US100, USTEC, WS30, US30, DJ, US2000) USD, every impact level.
Gold, silver, oil and the main crypto CFDs (XAU, XAG, GOLD, SILVER, OIL, WTI, BRENT, BTC, ETH) USD, every impact level.
DAX and other euro-area indices (GDAXI, DAX, GER, DE40, STOXX, EU50, FRA40, CAC) EUR at every impact level, plus USD high impact only.
UK 100 (UK100, FTSE) GBP at every impact level, plus USD high impact only.
Japan 225 (JP225, JPN225, NIKKEI) JPY at every impact level, plus USD high impact only.
Anything else The base and profit currency MetaTrader reports for the symbol.

Names are matched by their start, and anything after an underscore (for example _Darwinex) is ignored. If your broker names a symbol differently, or you want other currencies, fill in News currencies with a comma-separated list such as USD,EUR: the EA then uses exactly those currencies, at every impact level, instead of the automatic list. News categories narrows the events further (empty means all categories; categories exist only in the news file).

Getting news into the EA

News source What the EA uses
Auto (default) The news file AA_News.csv if it can be opened; otherwise the live MetaTrader economic calendar. Note that a file, once found, is used instead of the calendar, also on a live chart.
CSV file only Only the news file. If it cannot be opened the EA does not start.
Live MT5 calendar only Only the economic calendar built into MetaTrader. Works on live and demo charts only.
  • Live and demo charts: with Auto and no news file, nothing needs to be installed; the EA uses the MetaTrader economic calendar and the Experts tab says [News] using the live MT5 economic calendar. Whether the calendar has data depends on your broker.
  • Strategy Tester: MetaTrader gives the tester no economic calendar, so without a news file no news window is applied in the test and the Experts tab says so ([News] no news CSV and the MT5 calendar is empty in the Strategy Tester ...). To test the news filter, put AA_News.csv in the shared Common\Files folder before you start the test.

The news file AA_News.csv

Events are read from a plain CSV file (AA_News.csv unless you change News CSV: file name) in the terminal's shared Common\Files folder (in MetaTrader: File → Open Common Data Folder, then the Files folder). All Actual Algos EAs on that terminal read the same file. The first line is a header; every other line is one event:

time,currency,importance,category,event
1796398200,USD,3,employment,Example event (2026.12.04 15:30 on the server clock)

time is the number of seconds since 1 January 1970 counted on the broker's server clock, the clock of the chart and of the Strategy Tester, not UTC. currency is the currency code the event belongs to (USD, EUR, GBP …). importance is 1 (low), 2 (medium) or 3 (high). category is only used when you list categories in News categories (for example employment,inflation,rate_decision; empty means every event). event is a name that appears in the Experts tab. The lines must be in time order, oldest first: the EA does not sort them, and a file that is out of order can make events be missed.

  • The file is not part of the product. A Market product is a single program file, so no data file comes with it, and a file is not promised with the purchase. Build one in this format from a calendar source you trust, or ask support whether a ready-made file is available. A file made by Actual Algos uses the Darwinex server clock (GMT+2, GMT+3 during US summer time); it only fits brokers on that same clock.
  • The Strategy Tester and live charts use the same file, so a news test and live trading see the same events. MetaTrader gives the tester no economic calendar of its own.
  • The file is read once, when the EA starts. After you replace it, remove the EA from the chart and attach it again (or restart MetaTrader). Events that are not in the file are not blocked, and a file that ends in the past gives no protection after its last line.
  • Only events that matter to the chart symbol and belong to an impact level whose action is not Ignore are kept. The Experts tab shows how many when the EA starts: [News] AA_News.csv: N events kept for SYMBOL. If N is 0, check the symbol's currencies, the actions, the categories and the file's time range.
  • With News source set to CSV file only, the EA does not start when the file cannot be opened and the Experts tab says so, so a test is never run with a filter you believed was on.

A recommended starting point

This is a place to start experimenting, not an optimised or recommended setting, and it carries no promise about results:

  1. Switch News filter: on to true.
  2. Set News, high impact: action to Manage only, and leave its 30 minutes before and after. Leave medium and low impact on Ignore.
  3. Leave News source on Auto and the currencies empty.
  4. On a demo chart, check the Experts tab for the [News] line at start. To see what the filter changes, run the same test twice (filter off, filter on) over the same dates.
  5. Try Skip only if you want open trades closed before events, and keep in mind that closing has a cost.
A filter is not a guarantee. Staying out of the minutes around scheduled events does not protect a trade from unscheduled news, wide spreads or gaps, and it does not make a strategy profitable. Check what the filter does to your own results in a test before you rely on it.

Version 14 had its own, simpler news filter (one importance threshold, one pair of minutes). Version 15 replaces it with this shared filter. Settings saved with version 14 that used the old news inputs do not carry over: switch the new filter on and choose an action per impact level. With the filter off, version 15 trades like version 13 and 14.

11. Chart and dashboard

On a live chart and in visual backtests the EA draws each range (shaded box, label, its entry window and breakout levels, and the mean line for mean reversion), retest setups (breakout, retest and break level), the entry, stop and targets of open trades, and the indicators it uses (when they are on the chart's timeframe). When MA 1 and MA 2 are both in use, they are drawn as a filled cloud — green while MA 1 (fast) is above MA 2 (slow), red while it is below — like the SuperTrend EA's EMA cloud. The dashboard in the top-left corner shows:

  • each range with its time and size, or its state (waiting, forming, searching, rejected);
  • each trade type per range: armed, orders, open, won, lost, BE, done, wait chain, closed, and the retest stage;
  • the active filters for longs (L+/L−) and shorts (S+/S−);
  • open trades, floating profit, today's result and wins/losses; DAILY STOP when it is active.

Everything can be switched off in group 11; its position, font size and colours are adjustable. Non-visual backtests skip all drawing, which keeps them fast.

12. Backtesting and optimisation

  • Model: 1 minute OHLC is accurate for close-based entries and fast. Use Every tick based on real ticks when entries trigger on ticks (require close off) or with stop/limit orders and tight stops.
  • The signal timeframe (group 1) drives the EA; the tester's chart timeframe does not matter.
  • Visual mode shows the ranges, trades and dashboard; normal mode draws nothing and runs quickly.
  • Optimisation: group 12 offers custom criteria (profit / drawdown ratios, Sharpe, Sortino, SQN, K-ratio and more); choose Custom max as the tester's optimisation criterion.
  • Test on the same broker and server time you will trade, and keep a period out of the optimisation to check the result.

Sets from version 8 and earlier (V8 compatibility, new in 13)

Version 9 rebuilt the trade engine and fixed several version 8 behaviours. Two of them change ordinary breakout sets: a position carried overnight no longer uses up the next day's breakout, and a trade closed at break-even no longer counts as a loss for chained trade types. A version 8 set therefore takes more trades on version 9 and later than it did when it was tested.

V8 compatibility (group 12) brings version 8's rules back, so a set tested on version 8 or earlier trades exactly as it was tested. Leave it off for sets made on version 9 or later. In compatibility mode the features that did not exist in version 8 (stop-order brackets, retries, exit signals, broker targets) stay off, and mean reversion uses the shared SuperTrend.

13. Troubleshooting

You see What to do
No trades at all Compare the range times with the server clock; check the Experts log for REJECTED ranges (size filter) and the dashboard's trade-type states; check that the trade types you want are not Off or waiting for a chain.
"Input error: …" and the EA does not start The message names the problem, for example a broker TP with more than one target, a chain after a trade type that is off, or confirmation/indicator-signal trades without any indicator in an entry mode.
"Range N: NO BARS in window" The market was closed during the range or the history is missing; check the times and the signal timeframe.
"Sizing: … below the minimum -- trade skipped" The risk amount is too small for the symbol's minimum lot: raise the risk, use fixed lots, or turn off Skip a trade whose risk is below the min lot.
"lots reduced … (free margin / volume limit)" The trade was made smaller to fit the account or the broker's limit.
"max lots … below the minimum lot -- trade skipped" Max lots per order is smaller than the symbol's minimum lot; raise it or set it to 0.
A set from version 8 or earlier trades more often than in its old backtest Turn on V8 compatibility (group 12).
"Netting account: one position at a time" Expected on netting accounts (see section 9).
"[News] ... cannot be opened ... the EA will not start" The news filter is on and News source is CSV file only, but the file is missing or unreadable. Put AA_News.csv in the shared Common\Files folder (see News filter), set the source to Auto, or switch the filter off.
"[News] no news CSV and the MT5 calendar is empty in the Strategy Tester ..." Expected in a test without the news file: no news window is applied. Add AA_News.csv to test the news filter.
Want more detail Turn on Detailed log (group 12) and read the Experts tab.

14. Lot sizes and cent accounts (new in version 16)

The EA sizes every trade to what your broker allows, so the same settings work on accounts with different lot rules.

  • Minimum lot and lot step. The EA follows the symbol's own minimum lot, maximum lot and lot step: 0.01 on most forex symbols, 0.001 on nano-lot accounts, 1 on some CFDs. It never sends a size the broker would reject, and a trade whose size would be below the broker's minimum is skipped (or, where the EA has the input, raised to the minimum).
  • Cent accounts. If the account currency is a cent currency (USC, USX, EUC, GBC), money amounts are in cents. By default (Cent accounts: money inputs are in USD = off) the EA reads every money input in the account currency, that is in cents: the fixed risk per trade (Fixed risk per trade (account currency)) and the sizing value of each trade type when its sizing is set to a money amount. A value of 100 then means 100 cents, or 1 USD. Balance-based percentages are not affected.
  • Money inputs in USD. Switch Cent accounts: money inputs are in USD on if you would rather type the amounts in US dollars. On a cent account the EA then multiplies them by 100 to get cents. On an ordinary account the switch changes nothing.
  • Other cent codes. Cent accounts: account currency codes treated as cent lists the currency codes the EA treats as cent accounts (default USC,USX,EUC,GBC, separated by commas). If your broker uses a different code, add it to the list.
Check the size before you trade. Cent and nano accounts differ between brokers. Look at the lots in the Experts tab or in a demo trade first, and test in the Strategy Tester on a symbol with the same lot rules as your account.

Changes in this version (16). Lot rounding now follows the broker's lot step exactly. Earlier versions rounded down through a small tolerance, so a fixed lot that is not a clean multiple in floating-point arithmetic (for example 0.29) could trade one step smaller than you set (0.28). It is now traded as set. For the same reason a trade sized from risk can come out one step larger than before in rare cases. Settings that use clean lot sizes behave as before. The two new inputs default to off and to the list above, so existing settings keep working.

15. Support

Use the product comments or a private message on MQL5 to the seller (AnActualBanana). Please include the product version, broker, symbol, timeframe, your settings (a screenshot of the Inputs tab helps) and the Experts-tab lines around the problem. No custom coding and no individual trading advice.

16. Risk notice

Trading leveraged products such as CFDs, forex and crypto carries a high risk of loss and is not suitable for everyone. You can lose all of the money you trade with. Nothing in this manual or in the EA's defaults is a promise, forecast or guarantee of profit. Past or backtested results do not guarantee future results, and results will differ between brokers, symbols, periods and account types. Stops, filters and safeguards can fail to limit a loss, for example in fast markets, on gaps or when the broker's spread or execution changes. The EA and its defaults are tools, not financial advice; test them on a demo account and only trade money you can afford to lose.

Example settings (not optimised, for testing only)

These are examples for testing, not recommendations. They are not optimised and are not advice. Test them on a demo account and in the Strategy Tester (“Every tick based on real ticks”) before anything else. Convert the times if your broker's server clock is different: the server times below assume New York time + 7 hours all year (GMT+2 in winter, GMT+3 in summer).

Both examples use breakout trades only (the default: the other trade types are off), range 1 only, exit profile A, risk 1 % of balance per trade (consider 0.5 %), one trade per range per day. Everything not listed keeps its default. Daylight-saving shift: off, so all times are broker server time.

Example A: gold (XAUUSD), M1 chart

  • Range starts at 03:05 server time (20:05 New York time the evening before) and lasts 3 hours.
  • Breakout trades only. Open positions are closed at 18:55 server time (11:55 New York time).
  • Risk 1 % per trade (consider 0.5 %).
Input Example value EA default
Range 1 start (InpRange1StartHour / InpRange1StartMinute) 03:05 09:30
Range 1 length (InpRange1DurationHours / InpRange1DurationMinutes) 3 h 0 min 0 h 15 min
Range size filters (InpMinRangePoints, InpMaxRangePoints, InpMinRangePricePct, InpMaxRangePricePct) all off (0, 99999, 0, 100) 50, 3000, 0.05, 2.00
Stop loss distance (InpA_SLValue) 1.0 (% of price) 20
Break-even (InpA_BEUse) off on
Close hour (InpA_CloseAtHour / InpA_CloseAtMinute) 18:55 16:55
Signal timeframe (InpSignalTF) Current chart (attach to an M1 chart) M5
Require a bar close beyond the level (InpUseCloseBreakout) off (a touch of the level triggers) on
Breakout buffer (InpBreakoutBufferMode / InpBreakoutBufferValue) ATR multiple, 0.0 (no buffer) Points, 10
Stop loss placement (InpA_SLMode) Distance from entry Range edge
Stop loss basis (InpA_SLDistMode) % of price Points
Targets 1 to 3 (InpA_TP1Mode, InpA_TP2Mode, InpA_TP3Mode) Off (no take profit) R multiple
Trailing stop (InpA_TrailUse) off on
Time exit: close at a set time (InpA_CloseAtEnable, InpA_CloseAtNoEntries) on; no-new-entries-after-it off off; on
V8 compatibility (InpV8Compat) on (the set was converted from an older version) off

Example B: DAX (GER40 / GDAXI), M1 chart

  • Range starts at 10:35 server time (03:35 New York time) and lasts 2 hours 30 minutes.
  • Breakout trades only. Open positions are closed at 20:55 server time (13:55 New York time).
  • Range size filter: trade only if the range is 0.25 % to 0.45 % of the price. Risk 1 % per trade.
Input Example value EA default
Range 1 start (InpRange1StartHour / InpRange1StartMinute) 10:35 09:30
Range 1 length (InpRange1DurationHours / InpRange1DurationMinutes) 2 h 30 min 0 h 15 min
Range size filters (InpMinRangePricePct / InpMaxRangePricePct; the points filters are off) 0.25 to 0.45 (% of price) 0.05 to 2.00
Stop loss distance (InpA_SLValue) 1.5 (% of price) 20
Break-even (InpA_BEUse, InpA_BETrigMode, InpA_BETrigValue, InpA_BELockValue) on, trigger at 0.2% of price in profit, lock 0.01 points on, trigger at 1 R, lock 0
Close hour (InpA_CloseAtHour / InpA_CloseAtMinute) 20:55 16:55
Signal timeframe (InpSignalTF) Current chart (attach to an M1 chart) M5
Require a bar close beyond the level (InpUseCloseBreakout) off (a touch of the level triggers) on
Breakout buffer (InpBreakoutBufferMode / InpBreakoutBufferValue) ATR multiple, 0.0 (no buffer) Points, 10
Stop loss placement (InpA_SLMode) Distance from entry Range edge
Stop loss basis (InpA_SLDistMode) % of price Points
Targets 1 to 3 (InpA_TP1Mode, InpA_TP2Mode, InpA_TP3Mode) Off (no take profit) R multiple
Trailing stop (InpA_TrailUse) off on
Time exit: close at a set time (InpA_CloseAtEnable, InpA_CloseAtNoEntries) on; no-new-entries-after-it off off; on
V8 compatibility (InpV8Compat) on (the set was converted from an older version) off

The stop is a fixed percentage of the price from the entry, with no take profit; the trade ends at the stop or at the time exit. Check the stop and the lot size on your own symbol and broker before you test.

Ultimate Range Breakout 16.00 · © 2026 Logan McClain / Actual Algos