Expert Advisor for MetaTrader 5 · version 8.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. News filter (rebuilt in version 7)
5. Max lots per order (new in version 5)
6. Built-in safeguards
7. Lot sizes and cent accounts (new in version 8)
8. Input reference
9. Backtesting and optimisation
10. Support
11. Risk notice
Example settings (not optimised, for testing only)
The idea behind the strategy
Ultimate Volatility Breakout follows the volatility breakout tradition. J. Welles Wilder introduced the Average True Range (ATR) in his 1978 book New Concepts in Technical Trading Systems as a way to measure how far a market normally moves in one bar, and Larry Williams popularised trading range expansions in the early 1980s: when price suddenly moves much further than usual, the move often carries on for a while. Wider research on trend following supports the general idea that strong moves tend to persist; Moskowitz, Ooi and Pedersen (2012) found this "time-series momentum" across dozens of futures markets.
This EA applies the idea one candle at a time. It waits for a candle of at least a set multiple of ATR (measured against the ATR before that candle, so the big move cannot inflate its own benchmark) and trades in its direction. Expect a low win rate: most trades are small losses and a few winners pay for them, so the target and the cost of each trade matter more than usual. A big candle can also mark exhaustion rather than the start of a move, which is why there are filters for oversized candles, where the candle closes, volume, trend and time of day. Test which of them hold up on your market rather than taking the idea on trust.
Further reading: J. W. Wilder, New Concepts in Technical Trading Systems (1978); T. Moskowitz, Y. H. Ooi and L. H. Pedersen, "Time series momentum", Journal of Financial Economics 104 (2012) 228-250.
1. What the EA does
Ultimate Volatility Breakout waits for an unusually large candle — at least a multiple of ATR — and trades in its direction: a big bullish candle buys, a big bearish candle sells. It is a low win-rate, high reward-to-risk system: most trades are small losses and a few winners run several R, so the target (R multiple by default) matters most.
- The signal candle is the last closed bar of the candle timeframe, measured by body or full range.
- ATR is read from the bar before the signal candle, so the big candle does not inflate its own benchmark.
- Optional: a maximum size (skip blow-off candles), a close in the top / bottom part of the candle, a volume surge, an MA trend or fade filter, a time window, and a cooldown between entries.
- Entry at market on the close, or a stop order beyond the candle that only fills if the move continues.
- Optional news filter (off by default; see News filter).
2. Installation
- 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.
- Open a chart of the symbol and timeframe you want, drag the EA onto it, set the inputs and tick Allow Algo Trading.
- Switch on the Algo Trading button in the terminal toolbar. The Experts tab shows the EA's start-up messages, including its version.
- 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
- Attach to a volatile symbol (gold, indices) on H1.
- Keep 2 x ATR as the trigger and 3R as the target; set your risk.
- Try the stop-order entry and the MA trend filter and compare.
- Expect long losing streaks by design; judge it over many trades.
4. News filter (rebuilt in version 7)
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 trade and no new stop order. The check is made once, when the signal candle closes.
- Open trades are managed as usual (stop, target, break-even, trailing). Stop orders that are already resting stay in the book and can still fill inside the window; only Skip removes them.
Skip
- Everything Manage only does, and while the window lasts the EA closes its open trades on the symbol and deletes its pending orders. One line is written to the Experts tab per window; anything left is tried again on every tick.
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.
Manual times
This EA also has News: manual times: dates and times you type in, separated by semicolons, for example 2026.11.04 15:30;2026.12.16 21:00 (server clock). Each time counts as a high-impact event: it uses the high-impact action and the high-impact minutes before and after. Manual times work in live trading and in the Strategy Tester, need no news file, and do nothing while the filter is off or while the high-impact action is Ignore.
A recommended starting point
This is a place to start experimenting, not an optimised or recommended setting, and it carries no promise about results:
- Switch News filter: on to true.
- Set News, high impact: action to Manage only, and leave its 30 minutes before and after. Leave medium and low impact on Ignore.
- Leave News source on Auto and the currencies empty.
- 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.
- Try Skip only if you want open trades closed before events, and keep in mind that closing has a cost.
Versions 5 and 6 had their own filters (the MT5 calendar, manual times and, from version 6, the news file, with one importance threshold and one pair of minutes). Version 7 replaces them with this shared filter. Settings saved with version 5 or 6 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 7 trades like version 5 and 6.
5. Max lots per order (new in version 5)
Risk sizing divides the risk amount by the stop distance, so an unusually tight stop asks for an unusually large position. Max lots per order (group 8) puts a ceiling on any single order (0 = no cap): such trades then risk less than the set amount, and the account's leverage and margin use stay bounded, which matters most when several entries stack up. A cap below the symbol's minimum lot skips the trade.
6. Built-in safeguards
- If the free margin cannot carry a trade's size, the lots are reduced to what it can carry (the trade is skipped when not even the minimum lot fits), so the broker never rejects an order for lack of money.
7. Lot sizes and cent accounts (new in version 8)
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 Managed sizing: balance per lot. 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.
Changes in this version (8). 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.
8. Input reference
Every input with its default, in the order of the Inputs tab.
1. General
| Input | Default |
|---|---|
| Magic number | 31071001 |
| Order comment | Ultimate Volatility Breakout |
| Allow long trades | true |
| Allow short trades | true |
| One position at a time (false = allow several) | true |
| Max open positions for this EA (0 = no limit) | 0 |
| Max spread to enter (points, 0 = no limit) | 50 |
| Max slippage (points) | 20 |
2. Signal: candle
| Input | Default |
|---|---|
| Signal candle timeframe | PERIOD_CURRENT |
| Candle size measured by | Body (open to close) |
| Minimum candle size (points, 0 = off) | 0 |
| Close within the top N% of the candle (longs) / bottom N% (shorts); 0 or 100 = off | 0.0 |
| Cooldown: candles between entries (0 = off) | 0 |
3. Signal: ATR
| Input | Default |
|---|---|
| ATR period (the volatility baseline) | 14 |
| ATR timeframe | PERIOD_CURRENT |
| ATR read from this bar (2 = the bar before the signal candle) | 2 |
| Candle qualifies at this many x ATR | 2.0 |
| Reject candles bigger than this x ATR (0 = no cap) | 0.0 |
4. Filter: volume
| Input | Default |
|---|---|
| Volume filter: on (volume surge on the signal candle) | false |
| Volume: average over N candles | 20 |
| Volume: at least this x the average | 1.5 |
| Volume: real volume (false = tick volume) | false |
5. Filter: moving average
| Input | Default |
|---|---|
| MA filter: on | false |
| MA filter: with the trend or fade | With the trend: long above the MA, short below |
| MA: timeframe | PERIOD_CURRENT |
| MA: period | 200 |
| MA: method | MODE_EMA |
| MA: price | PRICE_CLOSE |
6. Time window
| Input | Default |
|---|---|
| Trade only inside a daily time window | false |
| Window: start hour | 0 |
| Window: start minute | 0 |
| Window: end hour | 23 |
| Window: end minute | 59 |
| Close open trades outside the window | false |
7. Entry
| Input | Default |
|---|---|
| Entry order | Market order at the candle close |
| Stop order: extra points beyond the candle | 0 |
| Stop order: cancel after N minutes (0 = never) | 0 |
| Close and reverse on an opposite qualifying candle | false |
8. Position sizing
| Input | Default |
|---|---|
| Position sizing | Risk % of balance (needs a stop) |
| Fixed lots (fixed and managed sizing) | 0.10 |
| Managed sizing: lots = fixed lots x balance / this | 1000.0 |
| Risk % of balance per trade | 0.5 |
| Fixed risk per trade (account currency) | 100.0 |
| Reference account size (non-compounding sizing) | 10000.0 |
| Risk % of the reference account size | 1.0 |
| Skip a trade whose risk is below the minimum lot | true |
| Cent accounts: money inputs are in USD (x100 on a cent account) | false |
| Cent accounts: account currency codes treated as cent | USC,USX,EUC,GBC |
| Max lots per order (0 = no cap) | 0.0 |
9. Stop loss
| Input | Default |
|---|---|
| Stop loss: basis | ATR multiple from entry |
| Stop loss: value | 1.5 |
10. Take profit
| Input | Default |
|---|---|
| Take profit: basis | Multiple of the stop distance (R) |
| Take profit: value | 3.0 |
11. Break-even
| Input | Default |
|---|---|
| Break-even: on | false |
| Break-even: trigger basis | Multiple of the initial risk (R) |
| Break-even: profit needed to trigger | 1.0 |
| Break-even: lock beyond entry (points) | 0.0 |
12. Trailing stop
| Input | Default |
|---|---|
| Trailing stop: on | false |
| Trailing: start basis | Multiple of the initial risk (R) |
| Trailing: start when in profit by | 1.0 |
| Trailing: distance basis | ATR multiple |
| Trailing: distance behind price | 1.5 |
| Trailing: step basis | Points |
| Trailing: minimum improvement before the stop moves | 50.0 |
13. Max hold
| Input | Default |
|---|---|
| Max hold: unit | Off |
| Max hold: value (0 = off) | 0 |
14. Daily stop
| Input | Default |
|---|---|
| Daily stop: on | false |
| Daily stop: equity drawdown % (0 = off) | 3.0 |
| Daily stop: losing trades (0 = off) | 0 |
| Daily stop: also close open positions | false |
15. Days
| Input | Default |
|---|---|
| Trade Monday | true |
| Trade Tuesday | true |
| Trade Wednesday | true |
| Trade Thursday | true |
| Trade Friday | true |
16. News filter
| Input | Default |
|---|---|
| News filter: on | false |
| News, high impact: action | Ignore (trade as normal) |
| News, high impact: minutes before | 30 |
| News, high impact: minutes after | 30 |
| News, medium impact: action | Ignore (trade as normal) |
| News, medium impact: minutes before | 15 |
| News, medium impact: minutes after | 15 |
| News, low impact: action | Ignore (trade as normal) |
| News, low impact: minutes before | 5 |
| News, low impact: minutes after | 5 |
| News source | Auto: CSV if present, else live MT5 calendar |
| News CSV: file name in the terminals' Common\Files folder | AA_News.csv |
| News currencies (empty = automatic for the symbol) | |
| News categories, comma separated (empty = all) | |
| News: manual times, high-impact window and action (YYYY.MM.DD HH:MM or daily HH:MM, ; separated) |
17. Daylight saving
| Input | Default |
|---|---|
| Daylight saving shift | No DST adjustment |
| Daylight saving shift (minutes) | 60 |
18. Chart
| Input | Default |
|---|---|
| Status panel on the chart | true |
| Entry / stop / target lines | true |
| Mark qualifying candles | true |
| Bullish signal colour | clrLimeGreen |
| Bearish signal colour | clrOrangeRed |
| Entry line colour | clrYellow |
| Stop loss colour | clrCrimson |
| Take profit colour | clrDeepSkyBlue |
19. Misc
| Input | Default |
|---|---|
| Detailed log | false |
| Optimisation: custom criterion (OnTester) | Off (return 0; no extra computation) |
9. Backtesting and optimisation
- Model: 1 minute OHLC is fast and fine for bar-close logic; use Every tick based on real ticks for tick triggers, pending orders and tight stops.
- All times are broker server time; test on the broker and server clock you will trade.
- The custom optimisation criteria (Misc group) work with the tester's Custom max criterion.
- Keep part of the history out of the optimisation to check the result.
10. 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.
11. 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 default settings is a promise, forecast or guarantee of profit. Backtested and past 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 settings are tools, not financial advice. Test on a demo account first 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).
Example: gold (XAUUSD), H1 chart
- Signal candle: an H1 candle at least 2.5 × ATR(200) in size. The tester set also asks it to close within the top 25 % of the candle for longs (bottom 25 % for shorts), which is a candle-shape rule, not one of the optional filters.
- Stop loss 0.5 % of the entry price; take profit 2 % of the entry price, which is about 4 times the stop distance (4R).
- No trend, volume or time-window filters. Risk 0.5 % of balance per trade (the Strategy Tester set used 1 %).
- “One position at a time” is off, so several positions can be open together. That needs a hedging account; on a netting account new positions merge into one.
| Input | Example value | EA default |
|---|---|---|
| Signal candle timeframe (InpCandleTimeframe) | H1 | Current chart |
| ATR period (InpATRPeriod) | 200 | 14 |
| Candle qualifies at this many x ATR (InpMinCandleATR) | 2.5 | 2.0 |
| Close within the top N % of the candle (InpCloseInTopPercent) | 25 | 0 (off) |
| Stop loss basis / value (InpStopMode / InpStopValue) | % of the entry price, 0.5 | ATR multiple, 1.5 |
| Take profit basis / value (InpTargetMode / InpTargetValue) | % of the entry price, 2.0 | Multiple of the stop (R), 3.0 |
| Risk % of balance per trade (InpRiskPercent) | 0.5 (the tester set used 1.0) | 0.5 |
| One position at a time (InpOnePositionAtATime) | off (several positions may be open together) | on |
| Max spread to enter (InpMaxSpreadPoints) | 300 | 50 |
Everything not listed keeps its default. The stop and the target are fixed percentages of the entry price, so check the distances and the lot size on your own broker's gold symbol before you test.
Ultimate Volatility Breakout 8.00 · © 2026 Logan McClain / Actual Algos


