Harmonic Overtone Scanner (short name: Overtone) is an Expert Advisor for MetaTrader 5. It scans a list of symbols for seven XABCD harmonic patterns, draws each pattern and its potential reversal zone (PRZ) on the chart, and can trade the reaction at the PRZ with up to four take profit zones. Everything runs from one chart.
This manual explains how the EA works, what the dashboard and chart drawings show, and what every setting does.
Contents
- Installation and first start
- How it works
- The chart drawings
- The dashboard
- Entries
- Stop loss and take profit zones
- Risk and trade management
- Account protection
- Prop challenge simulator (Strategy Tester)
- Settings reference
- Testing in the Strategy Tester
- Questions and answers
- Support
1. Installation and first start
- Buy or rent the EA from the MQL5 Market. MetaTrader 5 installs it under Expert Advisors, in the Market folder of the Navigator.
- Open one chart. Any symbol works, but a symbol from your list is best, because the chart symbol's patterns are drawn on the chart. H1 is a good starting timeframe.
- Drag the EA onto the chart. On the Common tab, tick Allow Algo Trading.
- If your broker adds letters to symbol names (for example EURUSD.pro or m.EURUSD), fill in Broker symbol prefix or Broker symbol suffix on the Inputs tab.
- Press OK and make sure the Algo Trading button in the terminal toolbar is switched on.
On the first start the EA loads price history for every symbol in the list. Rows show loading until each symbol is ready. This can take a minute on a new terminal.
Run only one copy of the EA per account, or give each copy its own Magic number. The EA trades every symbol in its list from a single chart, so you do not need a chart per symbol.
2. How it works
For every symbol, once per new bar of the pattern timeframe, the EA:
- Finds the confirmed swing highs and lows (only closed bars are used, so confirmed swings do not repaint).
- Takes the last four swings as points X, A, B and C, and checks them against seven patterns: Gartley, Bat, Alternate Bat, Butterfly, Crab, Deep Crab and Cypher.
- For each pattern that fits, projects the zone where point D should form. This is the potential reversal zone (PRZ).
- Watches price as it travels from C towards the PRZ.
Each pattern then ends in one of these ways:
- Traded: price reached the PRZ and an entry was taken.
- Completed: price reached the PRZ but no trade was taken (for example, the daily limit was reached).
- Failed: price went through the PRZ to the stop level. The pattern is drawn in grey and kept on the chart.
- Expired: price did not reach the PRZ in time.
Several patterns can fit the same X-A-B-C at once (for example a Bat and a Crab). Each has its own PRZ. If a shallower zone fails, a deeper one can still be traded.
3. The chart drawings
Drawings appear for the chart's own symbol. Click a symbol on the dashboard to switch the chart and see its pattern.
- Pattern shape: two filled triangles (X-A-B and B-C-D) with the four legs and the X, A, B, C and D labels. Bullish patterns are green, bearish patterns are red.
- Point D: until price reaches the PRZ, D is a dashed projection into the middle of the zone. Once price is there, D moves to the real turning point and the leg becomes solid.
- Title: for example "Bullish Gartley (forming)", "(D in PRZ)" or "(traded)".
- PRZ box: a shaded box from point C to the end of the pattern's time window, labelled with the pattern name.
- Stop loss and TP zones: lines that run to the right edge of the chart, with small badges beside the price scale: SL, ENTRY, TP1, TP2 and so on. Before a trade the levels are faint and dashed (planned). Once a trade is open they turn solid. The final take profit badge is always solid, and a TP that has been reached shows a tick.
- Old patterns: completed patterns stay on the chart in faded colours, failed patterns in grey. Old patterns kept on chart sets how many.
4. The dashboard
The dashboard lists every symbol in your list on one panel. Use Dashboard size (%) to make it larger or smaller (50 to 300%). It also scales for high-resolution screens.
Title bar
- AUTO TRADING ON / OFF: click to pause or resume new entries on all symbols. Open trades are still managed while paused.
- Minimise button: folds the panel down to the title bar.
Pattern switches
A row of seven switches, one per pattern. Click a switch to stop or start trading that pattern. Patterns that are switched off are still scanned and drawn, and are shown in muted text in the table.
Columns
Click any column title to sort by it. Click again to reverse the order.
| Column | What it shows |
| SYMBOL | Click to switch the chart to this symbol (or open a new chart, see When a symbol is clicked). The chart's own symbol is highlighted. |
| BIAS | Up arrow for a bullish setup (buy), down arrow for a bearish setup (sell). |
| PATTERN | The pattern being watched. "+1" means another pattern fits the same swings. |
| STATUS | scanning, forming, near PRZ, limit set, IN PRZ or traded. |
| TO PRZ | Pips left to the zone, or "in zone". |
| PROGRESS | How far price has travelled from C to the PRZ. |
| QUALITY | How closely the swings fit the pattern (0 to 100). |
| R:R | Reward to risk from the PRZ edge to the final take profit. Red when below your minimum. |
| STOP | Stop loss distance in pips for an entry at the PRZ edge. |
| WIN % | The win rate of that pattern from your own closed trades, with the number of trades. Blank until a trade has closed. |
| SPREAD | Current spread in pips. Red when above your spread limit. |
| POSITION | Open trades on the symbol and their floating profit or loss. |
| AUTO | Click to switch automatic trading on or off for this symbol only. |
Footer
Counts of patterns forming, near the PRZ and in the PRZ, trades opened today, the current status message, and total open trades with floating profit or loss.
Your switches, sort order and minimised state are kept when you change the chart's symbol or timeframe.
5. Entries
Entry method decides how a trade is opened once price reaches the PRZ:
- Reversal candle after PRZ touch (default): after price touches the PRZ, the EA waits for a closed candle in the pattern's direction (a bullish candle for a buy, a bearish candle for a sell) within Bars allowed for the reversal candle. If no such candle closes in time, the pattern is skipped.
- Market order when price enters PRZ: buys or sells as soon as price is inside the zone.
- Limit order at the PRZ edge: places a limit order at the near edge of the zone in advance. The order is cancelled if the pattern fails, expires or is replaced by a new one, or when the session filter closes.
Before any entry the EA checks the following, and the status line shows the reason if one blocks the trade:
- auto trading is on (title bar and the symbol's AUTO switch) and the pattern's switch is on
- the symbol's market is open
- buys or sells are allowed, and the session filter allows entries
- the open trade limits: all symbols, per symbol, and per currency
- the daily trade limit and the time between entries
- the spread filter, the minimum reward to risk, and the win rate filter
- the losing streak pause and the account protection limits
Max trades per currency stops the EA from stacking the same bet. With the default of 2, it will not hold EURUSD, GBPUSD and AUDUSD at the same time, because all three are trades on USD.
6. Stop loss and take profit zones
Stop loss
The stop loss sits beyond the far edge of the PRZ. Stop beyond PRZ (% of XA leg) adds a buffer, so price can spike slightly past the zone without stopping the trade out. If price reaches the stop level before an entry, the pattern counts as failed.
TP zones
Up to four take profit zones are measured on a leg of the pattern, starting from the entry price:
- A-D leg (default): 1.0 means a full return to point A.
- C-D leg: 1.0 means a full return to point C.
The defaults are TP1 0.382, TP2 0.618, TP3 1.0 and TP4 1.272 of the leg. Set a level to 0 to switch that zone off. Zones must get further away in order.
- Final take profit is the zone the broker's take profit is set at. Whatever is still open closes there.
- Close at TP1 / TP2 / TP3 is the share of the starting lots closed when that zone is reached, for zones before the final one. For example, with the defaults: 50% closes at TP1 and the rest closes at TP2.
- Zones beyond the final take profit are drawn as potential targets only.
- Move stop to breakeven moves the stop to the entry price plus Points locked at breakeven after the chosen zone.
- Move stop to the previous TP moves the stop up behind the price: when TP3 is reached, the stop moves to TP2, and so on.
If a partial close would leave less than the broker's minimum lot, that close is skipped and the stop rules still apply. After a restart the EA rebuilds which zones each open trade has already passed from the trade history.
7. Risk and trade management
- Risk-based lots (default): the lot size is set so that the stop loss costs Risk per trade (%) of the balance, capped by Maximum risk per trade and Maximum lot size.
- Fixed lots: set Risk-based lots to false and use Fixed lot size.
- Skip if minimum lot is too risky: skips a trade if even the broker's smallest lot would risk more than your setting. When off, the smallest lot is used.
- Breakeven and trailing stop in points are optional extras on top of the TP zone rules.
Important: risk applies to each trade. With several trades open at once, the total risk can be a multiple of your setting. With the default of 6 open trades at 1% each, up to 6% can be at risk at the same time.
Loss recovery (martingale-style)
Raise lots after a losing trade multiplies the lot size after each loss, up to Recovery steps in a row, then returns to normal. This increases risk after losses. It is off by default.
8. Account protection
These limits cover all symbols together. All are off (0) by default.
| Setting | What happens |
| Daily loss limit (%) | Loss measured from the start-of-day balance. When reached, all trades close and trading stops until the next day. A warning shows at 80% of the limit. |
| Max drawdown limit (%) | Drawdown from the starting balance, or from the equity peak if Drawdown from equity peak is on. When reached, all trades close and the EA stays stopped until you restart it. |
| Daily profit target (%) | When the day's profit reaches the target, all trades close and trading resumes the next day. |
| Weekly loss limit (%) | When reached, all trades close and trading resumes next week. |
| Pause after losses in a row | After this many losing trades in a row, new entries pause until the next day. |
Other controls: Pause new entries now stops new trades without closing open ones. Close all trades on Friday closes everything at the set Friday time and blocks new trades for the rest of the day. Only enter inside session hours limits new entries to the set hours, and open trades are still managed.
The EA never sends requests while a symbol's market is closed, and it waits before retrying a symbol or a trade that the broker refused.
9. Prop challenge simulator (Strategy Tester)
The simulator lets you test the EA against prop firm rules in the Strategy Tester. It keeps a simulated account separate from the tester balance and shows a panel beside the dashboard (in visual mode).
- One-phase or two-phase challenge with profit targets, then a funded stage.
- Max drawdown: static, trailing from the equity peak, trailing from the balance peak, or trailing that locks at the starting balance.
- Daily drawdown measured from start-of-day balance, start-of-day equity, the higher of the two, or the day's highest equity. A breach can fail the account or only stop the day.
- Optional daily profit cap and minimum trading days.
- After a pass or a fail the next account starts the following day at exactly the starting balance.
- Simulated payouts on the funded stage: daily, weekly or monthly, as a % of new profit, with an option to raise the drawdown floor after the first payout.
- A summary of passes, failures and payouts is written to the Journal at the end of the test.
Risk-based lots use the simulated balance while the simulator is on.
10. Settings reference
Symbols
| Setting | Default | Description |
| Symbols (comma separated) | 28 FX pairs and XAUUSD | The symbols to scan and trade. Symbols your broker does not have are skipped with a line in the Experts log. |
| More symbols (comma separated) | empty | Extra symbols added to the list. Up to 60 symbols in total. |
| Broker symbol prefix / suffix | empty | Added to every name in the lists, for brokers that use them. |
| Pattern timeframe | current | The timeframe patterns are found on. "current" uses the chart's timeframe. |
| Symbols in the Strategy Tester | Chart symbol only | Chart symbol only is fast. Full symbol list tests every symbol in the list. |
| Tester: update every (seconds) | 1 | How often the EA updates during a test. |
Patterns
| Setting | Default | Description |
| Trade Gartley ... Trade Cypher | true | Which patterns may be traded. These are the starting positions of the dashboard switches. All patterns are always scanned and drawn. |
| Pattern sensitivity | Normal | Strict finds fewer, cleaner patterns. Wide finds more patterns. |
| Minimum pattern quality (0-100) | 0 | Ignore patterns with a lower quality score. 0 = off. |
Entry
| Setting | Default | Description |
| Entry method | Reversal candle | See section 5. |
| Bars allowed for the reversal candle | 5 | How many bars after the PRZ touch a reversal candle may take. |
| Take bullish / bearish patterns | true | Allow buys and sells. |
| Maximum open trades (all symbols) | 6 | Open trades and limit orders together. |
| Maximum open trades per symbol | 1 | Per symbol. |
| Max trades per currency | 2 | Trades sharing one currency. 0 = off. |
| Maximum trades per day | 10 | New trades opened per day, all symbols. |
| Minutes between entries | 0 | Minimum gap between new trades. 0 = off. |
| Use spread filter / Maximum spread (points) | false / 30 | Skip entries while the spread is wider than the limit. |
| Maximum slippage (points) | 30 | Allowed slippage for market orders. |
| Min pattern win rate (%) | 0 | Stop trading a pattern whose own win rate is below this. 0 = off. |
| Closed trades before win rate filter | 10 | The win rate filter starts after this many closed trades of that pattern. |
| Pause new entries now | false | Stops new trades; open trades are still managed. |
| Write pattern details to the log | false | Writes pattern and entry details to the Experts log. Useful when checking why a trade did or did not happen. |
Stop Loss and Take Profit Zones
| Setting | Default | Description |
| Stop beyond PRZ (% of XA leg) | 10 | Buffer between the PRZ and the stop loss. |
| TP zones measured on | A-D leg | A-D leg or C-D leg. |
| TP1 / TP2 / TP3 / TP4 | 0.382 / 0.618 / 1.0 / 1.272 | Ratio of the leg. 0 = zone off. |
| Final take profit | TP2 | Where the rest of the trade closes. |
| Close at TP1 / TP2 / TP3 (% of starting lots) | 50 / 25 / 25 | Used only for zones before the final take profit. Must add up to less than 100%. |
| Move stop to breakeven | After TP1 | Off, after TP1, after TP2 or after TP3 (must be before the final TP). |
| Move stop to the previous TP | false | Step the stop behind each zone reached. |
| Min reward:risk to final TP | 0 | Skip patterns with a lower reward to risk. 0 = off. |
Risk and Lot Size
| Setting | Default | Description |
| Risk-based lots | true | false = fixed lots. |
| Risk per trade (%) | 1.0 | Of the balance (simulated balance in the prop simulator). |
| Maximum risk per trade (%) | 2.0 | Upper cap on risk per trade. |
| Fixed lot size | 0.01 | Used when risk-based lots are off. |
| Maximum lot size | 5.0 | Upper cap on any trade. |
| Skip if minimum lot is too risky | false | See section 7. |
Loss Recovery
| Setting | Default | Description |
| Raise lots after a losing trade | false | Martingale-style lot increase. Off by default. |
| Lot multiplier per loss | 2.0 | Multiplier applied per losing trade in a row. |
| Recovery steps in a row (max) | 2 | After this many steps, lots return to normal. |
Breakeven and Trailing Stop
| Setting | Default | Description |
| Use breakeven / Breakeven at profit (points) | false / 300 | Move the stop to breakeven at a fixed profit in points. |
| Points locked at breakeven | 20 | Points above (buy) or below (sell) the entry. Also used by "Move stop to breakeven" after a TP. |
| Use trailing stop | false | Trail the stop behind the price. |
| Start trailing at profit / Trailing distance (points) | 500 / 250 | When trailing starts and how far behind the price it stays. |
Session and Friday
| Setting | Default | Description |
| Only enter inside session hours | false | Limit new entries to the hours below (broker server time). Overnight sessions work, for example 22 to 6. |
| Session start / end hour | 7 / 20 | Server hours, 0-23. |
| Close all trades on Friday | false | Close everything at the Friday time below and block new trades. |
| Friday close hour / minute | 20 / 0 | Server time. |
EA Identity
| Setting | Default | Description |
| Magic number | 20262000 | Identifies this EA's trades. Use a different number for each copy of the EA. |
| Order comment prefix | OVT | Start of each order comment. The pattern name and direction are added after it. |
Account Protection
See section 8. Daily loss limit, max drawdown limit, daily profit target, weekly loss limit (all in %, 0 = off), pause after losses in a row (0 = off), and drawdown from equity peak (false = from the starting balance).
Prop Challenge Simulator
| Setting | Default | Description |
| Enable prop challenge simulator | false | For the Strategy Tester. |
| Account size | 10000 | Simulated starting balance. 0 = tester deposit. |
| Two-phase challenge | false | One phase or two phases before funded. |
| Phase 1 / Phase 2 profit target (%) | 8 / 5 | Targets to pass each phase. |
| Minimum trading days per phase | 0 | 0 = off. |
| When the challenge fails | Restart Phase 1 next day | Or stop the EA. |
| Max drawdown type / Max drawdown (%) | Static / 10 | Challenge drawdown rule. |
| Daily drawdown measured from | Start-of-day balance | Reference for the daily rule. |
| Daily % of starting balance | true | false = % of the daily reference. |
| Daily drawdown (%) | 5 | 0 = off. |
| Daily breach fails account | true | false = only stop for the day. |
| Funded max drawdown type / % and funded daily drawdown % | Static / 10 / 5 | Rules for the funded stage. |
| Daily profit cap (%) | 0 | Close trades and wait for the next day when reached. 0 = off. |
| Simulate payouts | true | Funded stage only. |
| Payout frequency | Monthly | Daily, weekly or monthly. |
| Payout (% of new profit) | 80 | Share of new profit paid out. |
| Minimum profit for payout (%) | 1 | No payout below this. |
| Raise DD floor after 1st payout | true | Drawdown limit cannot fall below the starting balance after a payout. |
| Show simulator panel / Panel X / Panel Y | true / auto / 25 | Panel display. Auto places it to the right of the dashboard. |
Alerts
| Setting | Default | Description |
| Pop-up when a new pattern is found | false | Off by default, because a long symbol list finds patterns often. |
| Alert when a pattern fails | false | |
| Alert when a trade opens / closes | true | |
| Warn near the daily loss limit | true | Shows a warning at 80% of the daily loss limit. |
| Send push notifications / email alerts | false | Needs notifications or email set up in the terminal options. |
Alerts are silent in the Strategy Tester.
Chart Drawing
| Setting | Default | Description |
| Draw live patterns and PRZ | true | Pattern drawings on the chart. |
| Pattern fill strength (0-100%) | 30 | 0 = outlines only. |
| Pattern line width (1-5) | 2 | |
| Show dotted ratio lines | true | Dotted X-B, A-C, B-D and X-D connector lines. |
| Show stop and TP zones | true | SL, entry and TP lines with badges. |
| TP zone height (% of the leg) | 3 | Height of the shaded band around each TP level. |
| Keep completed / failed patterns on chart | true / true | |
| Old patterns kept on chart | 10 | |
| Colours | Bullish, bearish, PRZ, failed, stop loss, take profit and entry colours. |
Dashboard
| Setting | Default | Description |
| Show dashboard | true | |
| Dashboard X / Y position (pixels) | 10 / 25 | From the top-left corner of the chart. |
| Dashboard size (%) | 100 | 50 to 300. |
| Dashboard refresh (ms) | 500 | How often the panel redraws. |
| When a symbol is clicked | Switch this chart | Or open a new chart. |
| Dashboard colours | Panel, bars, rows, border, accent, highlight, bullish, bearish, warning and text colours. |
11. Testing in the Strategy Tester
- Choose the EA, a symbol and a timeframe (H1 is a good start), and the model Every tick based on real ticks.
- By default only the chart symbol is tested. Set Symbols in the Strategy Tester to Full symbol list to test every symbol. The first run then downloads history for each symbol, which takes longer.
- Use visual mode to watch the patterns, the dashboard and the simulator panel. The final dashboard stays on the chart when the test ends.
- Use the Forward option (for example 1/3) when optimising, and trust only settings that also hold up in the forward period.
Harmonic patterns are not frequent. Test long enough to collect a meaningful number of trades before judging any setting.
12. Questions and answers
The dashboard shows "loading" for a symbol
Its price history is still downloading. If it stays that way, open a chart of that symbol once, or check the Experts log for a line saying it could not be scanned.
A symbol from my list is missing
Your broker probably uses a different name. Check the Experts log for the "not available at this broker" line, then set the prefix or suffix, or type the exact name in the list.
A pattern is in the PRZ but no trade opened
The status line and footer show the reason, for example a trade limit, the currency limit, the session filter or a switch that is off. With the default entry method, the EA also waits for a reversal candle. Turn on Write pattern details to the log to see each decision.
I don't see the pattern on my chart
Drawings are shown for the chart's own symbol. Click another symbol on the dashboard to switch the chart to it.
Can I run it on a netting account?
Yes. Keep Maximum open trades per symbol at 1.
Does it use martingale or grid?
No, not by default. The optional loss recovery setting increases lots after losses and is off unless you switch it on.
13. Support
Support is through the comments on the product page and MQL5 private messages. When you ask for help, please include your broker, the symbol and timeframe, a screenshot of the Inputs tab, and the lines from the Experts or Journal tab.
Trademark note: pattern names are used only to identify the price structures the EA looks for. "Harmonic Trading", "Bat Pattern", "Butterfly Pattern" and "Crab Pattern" are trademarks of their owner, Scott M. Carney. This product is not affiliated with or endorsed by him.
Risk note: trading involves risk of loss. Past results, including backtests, do not guarantee future results. Test on a demo account first.


