BESTMT4EA

Free Forex EA

High Frequency Scalping EA: Latency Is Your Real Edge

High frequency scalping EA claims are really infrastructure claims. See what broker round-trip time, XAUUSD slippage at news and tick volume cost you.

BESTMT4EA Trading Desk
Updated 30 August 202619 min read

Quick answer

A high frequency scalping EA is really an infrastructure claim: it needs a colocated server, a leased line and microsecond routing to a matching engine. Your retail MT4 or MT5 account runs on a home connection with a round trip of 40 to 300 milliseconds, so the entry code cannot win on speed. Measure your real latency, slippage and feed quality before you install anything.

Key takeaways

  • High frequency is a hardware and connectivity claim, not a setting. A retail MT4 or MT5 account on a home connection cannot buy the microseconds the phrase describes.
  • A realistic round trip to a broker is 40 to 300 milliseconds. Plan on the slowest hop and the 95th percentile, because the slow fills are the ones that cost money.
  • A VPS only helps when it sits in the broker's region. A server in the wrong city adds a hop and changes nothing about execution.
  • On XAUUSD, spread and slippage during a US data release can exceed the entire profit target of a small-target robot, so a news filter is a cost control rather than a nicety.
  • Tick volume counts the price updates your broker sent you, not the size of the market. Compare it across two feeds before you trust a backtest.
  • Demo first, size for a normal losing run, and treat any high frequency file as unproven until you can timestamp your own fills.
Shared bundleMT5No licence stated - third-party files shared as-is, unverified

2000+ EA & Indicator Library (shared bundle)

Size: about 577 MB in three zip parts

This link does not download a single file for the tool in this article. It opens a shared Google Drive library of 2,000+ third-party EAs and indicators in three ZIP parts (about 577 MB in total); the tool is inside the bundle under its own file name, if it is there at all. We did not make these files and have not verified their licences, so scan everything, test on a demo account first, and use it entirely at your own risk.

Related open-source project: geraked on GitHub

Own the rights to this file? Request its removal under our DMCA policy.

How to install it

  1. 1

    Read the licence and the strategy list

    Open the repository and read the MIT licence and the table of expert advisors. Note which builds are scalpers, and read the author's caution about the strategies that were combined with grid logic before you choose one to test.

  2. 2

    Download the source and the build

    Open the Experts folder and download the .mq5 source for the strategy you want, together with its compiled build and backtesting report if you would rather compare the two first.

  3. 3

    Copy the files into the data folder

    In MetaTrader 5 choose File, then Open Data Folder. Place the .mq5 files, and any indicators they depend on, in the matching MQL5 folders, never inside Program Files.

  4. 4

    Compile it in MetaEditor

    Open MetaEditor, load the expert file and press Compile. A clean build tells you the source is intact and that the code running on your terminal is the code you read.

  5. 5

    Add your own timestamp logging

    Add three lines that record the tick time your EA acted on, the moment it sent the order and the moment the fill returned, then print those values to the Experts log.

  6. 6

    Compare the log against your broker

    Run the build for a week on a demo login and write down your round trip and slippage each day. That record is the measurement every sales page omits.

BESTMT4EA Trading Desk

MQL4/MQL5 developers and traders. We publish the live track record for everything we review.

Ask us on Telegram

Every page that sells a high frequency scalping EA shows you the same picture. Hundreds of trades. Tiny green rows. An equity curve that only turns one way. The copy says the robot executes “in milliseconds” and “wins on speed”. You look at the numbers, then you look at your $2,000 account, and you think: this is the one.

Here is the line none of those pages prints. High-frequency trading is not a strategy you download. It is an infrastructure claim. The edge does not come from a cleverer entry rule. It comes from sitting physically closer to the matching engine than everyone else, on hardware you own, over a connection you lease, staffed by people whose whole job is to stay a fraction of a millisecond ahead of the next firm.

You do not have that. You have a laptop, a home connection, a broker an ocean away, and a file you double-clicked on a Sunday. That is not a flaw in you. It is the starting point, and it changes which questions are worth asking. Once you accept that “high frequency” is an infrastructure claim and yours is a home connection, you stop arguing about whether the entry logic is clever. You start asking how long your order takes to arrive, how much gold slips while it travels, and what the numbers on your screen are actually measuring.

Those three questions decide whether a scalping robot helps you or quietly bleeds you. They are also the questions a sales page cannot answer, because answering them means admitting the robot was never the bottleneck.

Meet Sam, an illustrative composite rather than a real trader, built to show a pattern that repeats often. Sam is careful. He read the description three times, scanned the file, set a stop loss, and ran the robot on a demo for eleven days. The demo looked fine. So on a Monday he moved the identical settings to a live account with $2,000 and let the “high frequency” gold scalper trade while he was at work.

On Wednesday at 13:30 London, US inflation data printed. Gold moved roughly $14 in about ninety seconds. Sam’s robot did exactly what it was built to do: it fired. It filled twelve times in about four minutes. Every fill arrived on a spread of 140 to 210 points, because that is what a retail gold feed looks like when everyone is trying to trade at once.

The robot was dimensioned to risk about $10 a trade. The spread alone cost more than $10 a trade before gold had moved anywhere. By the time the stops were hit and the small winners skimmed, his account was down $560, nearly 28 percent of it, in a single session. Nothing had crashed. No setting had been typed wrong. The strategy worked exactly as written, on a connection that could not carry it.

That is the real cost of confusing the speed you can buy with the speed you cannot. Sam did not lose to a bad robot. He lost to the distance between the phrase “high frequency” on a landing page and the 200-millisecond reality of his own desk. He found that distance two weeks and $560 too late.

Advertisement

You can measure that distance before you install anything. It takes an afternoon, a demo account and a handful of free checks. The rest of this page is those checks, in the order that matters.

What does “high frequency” actually mean, and who can really do it?

Real high-frequency trading means holding positions for milliseconds and earning its money from the speed of the connection rather than the direction of the market. The firms that do it pay to place their servers inside the same data centre as the exchange, sometimes in the same rack, so their round trip is measured in microseconds. You are not competing with them. You are not in the same building.

The mechanism has a name: latency arbitrage. When a price changes on one venue a few microseconds before another, a fast enough machine can buy on the slow side and sell on the fast side before the second venue updates. The profit per trade is tiny and the number of trades is enormous. Every part of that edge is a hardware and network property: proximity to the exchange, the quality of the cable or microwave link between venues, the raw speed of the matching engine. Change the entry rule and the edge does not move, because the entry rule was never where the edge lived.

So “high frequency scalping EA” is a marketing phrase, not a technical description. What it usually means is a fast retail scalper: a robot that opens and closes small trades within seconds or minutes. That can be a real strategy. It is simply not high-frequency trading, and it does not win on speed. On a retail MetaTrader 4 or MetaTrader 5 account you are operating in milliseconds, not microseconds, and at that scale your costs — spread, slippage, commission — are larger than any speed advantage you could hold. That single fact is the foundation of everything below it.

How long does an order really take to reach your broker?

From the moment your robot decides to trade to the moment you hold a filled, confirmed position, a retail account typically takes 40 to 300 milliseconds round trip. Every hop in that chain is real, none of it is your Expert Advisor’s fault, and no input in the settings tab can shorten it. The millisecond ranges in this section are planning estimates for typical retail setups, not measurements from any broker, so replace them with your own numbers as soon as you can.

Break the trip into its parts and the number stops being mysterious.

  1. The terminal decides. Your EA reads the ticks it holds, runs its logic and builds the order. On a loaded chart with a dozen indicators that is 1 to 5 milliseconds, most of it CPU.
  2. Your device reaches the broker’s server. This is the hop people underrate. From a home connection it is 15 to 60 milliseconds, and Wi-Fi adds jitter on top. From a well-placed virtual private server (VPS) it can fall to 1 to 5 milliseconds.
  3. The broker’s gateway reaches its liquidity providers. This is 1 to 20 milliseconds and it belongs to the broker. You cannot buy your way into it.
  4. The match happens and confirmation returns. Another 1 to 10 milliseconds at the venue, then the fill travels back along the same path to you.

The number worth remembering is the total, and the fact that the slowest hop dominates rather than the average. A home connection is not slow on a quiet evening. It is slow at the exact moment gold is moving, which is the only moment your robot cares about.

That is why the average round trip is the wrong number to design around. Suppose your connection holds a steady 30 milliseconds 90 percent of the time. That is the figure a ping test will show you, and it is the figure you will happily quote. Then a burst of traffic arrives, your line buffers, and the round trip jumps to 400 milliseconds for two seconds. Your robot cannot see the burst, and neither can your ping test from an idle machine. What matters is the tail: the worst 5 percent of fills, because those are the ones that arrive when the market is fastest and the spread is widest, and they are the ones that turn a good week into a bad one. Measure the slow tail, not the calm middle.

There is a second property of the trip that a single number hides: jitter. Jitter is how much the timing moves between one order and the next. A connection with a 40 millisecond average and a 5 millisecond jitter behaves predictably, and an EA can plan around it. A connection with the same 40 millisecond average but a 300 millisecond jitter is a different instrument entirely, because the same order can arrive eight times later than the last one. For a robot making decisions on a clock, jitter usually hurts more than raw latency does.

HopTypical retail timeWhat sets the numberCan you change it?
Terminal decides and sends1–5 msCPU load, number of indicators, laptop vs VPSYes
Device to broker server15–60 ms home, 1–5 ms good VPSDistance, ISP routing, Wi-Fi jitterYes
Broker gateway to liquidity provider1–20 msThe broker’s own infrastructureNo
Matching and confirmation1–10 msVenue and order typeNo
Return trip to your terminalRoughly the outbound pathSymmetric routingPartly
Total round trip40–300 msThe slowest hop—

What is a realistic latency budget for a gold scalper?

Advertisement

On a retail setup, plan around 80 to 200 milliseconds door to door and use 100 milliseconds as the number you design for. A VPS placed near the broker can pull that into the 8 to 40 millisecond range. Colocated firms design to under two milliseconds, which is how you can see at a glance how far apart the two worlds sit.

Here is the same journey as a budget: once for a home connection, once for a well-placed VPS, and once for the setup the phrase “high frequency” was invented for.

Component of the round tripHome connectionVPS near the brokerColocated HFT
Terminal decision1–5 ms1–3 msUnder 1 ms
Private network to the broker20–60 ms1–5 msUnder 1 ms
Broker gateway to matching engine2–20 ms2–20 msUnder 0.05 ms
Confirmation back to you20–60 ms1–5 msUnder 1 ms
Round trip you design around80–200 ms8–40 msUnder 2 ms

Now turn milliseconds into money, because that is the only way the numbers mean anything. Gold can move several dollars per second during a data spike. At an illustrative $4 per second, 150 milliseconds is about $0.60 of movement, which is 60 points on a two-decimal XAUUSD feed, gone before your order even lands. If your robot targets 80 points, you have handed more than half your target to the trip. Add the spread on top and the trade must overcome the round trip, the spread and the commission just to reach break-even.

That arithmetic does not say scalping is impossible. It says a robot whose profit target is smaller than the distance its own latency can move gold is fighting the clock, and the clock always wins on a home connection.

The useful habit is to build this budget for your own account instead of borrowing mine. Write down three numbers: your measured round trip in milliseconds, the gold spread you normally pay in points, and the profit target your robot is set to take. Then ask one question. Is the target larger than the round trip and the spread added together? If it is not, the robot has to be right far more often than it is wrong simply to cover the cost of arriving. That is not a strategy with an edge. It is a strategy with an entry fee, and the fee is charged on every trade whether you win or lose.

Why does a VPS in the wrong region do nothing?

A VPS only removes distance between your terminal and the broker’s server, so a server in the wrong city removes nothing at all. It can add a hop and make you slower while looking like a fix.

The mistake is cheap to make. A trader sees “low latency VPS” on a hosting page, buys the cheapest plan, and ends up with a machine in a distant country while the broker’s servers sit somewhere else entirely. Now every order crosses an ocean twice: once from the home desk to the VPS, and again from the VPS to the broker. The first leg is slower than it was, and the second is no faster, because the VPS is still an ocean from the broker.

Finding the right region is mechanical and it costs nothing. Look up where your broker hosts its trade servers — many publish a data-centre location — and confirm it with a ping or a traceroute from your own machine to the broker’s trade server address, not its website. If the broker is in London, you want a London VPS. If it is in New York, you want one there. Then test the ping from the candidate VPS to the trade server; that single number is the leg you are actually buying.

There is a second reason to rent a VPS, and it is the more honest one. A home connection drops. A laptop sleeps. Windows restarts for an update in the middle of the London session. A VPS fixes reliability first and latency second, and reliability alone is often worth the fee. What it cannot do is beat the broker’s own gateway-to-market delay, which stays fixed no matter where you host.

One test settles the question before you pay for anything. Measure the same round trip twice, once from your home connection and once from a trial or cheap hourly VPS in the candidate region, both against the broker’s trade server. If the VPS improves the number by a meaningful margin, keep it. If the two are within a few milliseconds, the money buys you uptime rather than speed, and you should decide on that basis alone. The VPS changes the leg you own; it never changes the legs the broker owns, and those are the ones that decide most of your round trip.

Where does gold slippage come from at news time, and how big is it?

Slippage is the gap between the price your order expected and the price it actually received, and on XAUUSD at a US data release it can reach tens of dollars per ounce in a few seconds. It is not a platform glitch. It is the market repricing faster than an order in flight can be filled.

Three things happen at the same time when a major release prints. Liquidity providers widen their quotes or pull them entirely, because none of them wants to be the one holding a stale price. Your broker, which fills you from what those providers quote, passes that widening straight through to you. The spread ranges below are planning figures from typical retail quotes, not broker-published data, so check your own broker’s quotes before you size a target. And any order that must execute right now — a market order, or a stop that has just become a market order — takes whatever price is next in line, which can be far from the one on your screen.

Advertisement

Gold is worse than the major currency pairs here for two reasons. It has fewer liquidity providers, so there is less competition to keep quotes tight, and it can gap, meaning price can jump clean across a level without trading in between. A stop your broker shows at $2,650 can fill at $2,644, and those six dollars of difference are the slippage. Multiply that across a robot that trades many times an hour and the cost becomes the strategy.

ConditionTypical XAUUSD spreadSlippage riskEffect on a small-target robot
Quiet London morning20–35 pointsLowWorkable
Thirty minutes before US data40–90 pointsRisingTarget shrinks fast
On the release100–250 pointsHigh, tens of dollars per ounceCosts exceed the target
Late evening and rollover60–150 pointsMediumThin book, wide fills

The lesson is not “avoid news forever”. It is that a news filter is a cost control, not a luxury. A robot that sits out the release window is not being timid; it is refusing to pay a spread larger than the profit it is trying to earn. If you want the mechanics of setting that filter and the stop distance it protects, the MT4 gold scalper setup walkthrough works through the same numbers input by input.

What does tick volume actually tell you about your broker’s feed?

Tick volume is the number of price updates MetaTrader received, not the number of lots or contracts traded, so it measures your broker’s quote feed rather than the size of the market. That one distinction changes how you should read every bar, every indicator and every backtest on the chart.

In a cash market you would look at real volume: how many shares or contracts changed hands. In retail spot forex and gold there is no central exchange, so the platform cannot show you that. What MetaTrader displays, labelled simply “Volume” or “tick volume”, is a count of the price updates it was sent during the bar. It is a proxy for activity, and a reasonable one, but it counts quotes rather than size.

Why that matters to a scalper is straightforward. If your broker’s feed sends fewer ticks, your indicators compute on a sparser picture, your backtest gets a different result, and your stops are judged on fewer prices. Run the same symbol on two brokers on a quiet afternoon and compare the tick counts for the same minute. The broker with the denser feed is showing you more of what is happening, and your robot is working with more information. A feed that goes quiet precisely when the market speeds up is telling you something about its quality.

What tick volume isWhat it is not
A count of price updates your terminal receivedA count of lots or contracts traded
A measure of your broker’s quote feedA measure of total market activity
Useful for comparing two brokers on one symbolReliable as a standalone volume signal at a single broker
A way to spot a feed thinning out as speed risesA reason to trust a backtest built on one feed

One more warning sits inside this. The spread you see is the best price from one or more providers at that instant; the depth behind it — how much you could buy before the price moves — is invisible in MetaTrader. Tick volume gives you a rough sense of that depth. It does not give you the order book, and no retail platform does.

Here is the practical test, and it takes one quiet session. Open the same gold chart on two broker demos side by side, leave both on the same minute, and compare the tick count and the spread you were quoted. You will rarely see identical numbers. For example, one broker might print 1,800 ticks in that minute and the other 900, and the one with the denser feed is the one that showed you a stop being approached rather than a price that jumped past it. The difference is not cosmetic. It is the same reason two traders running identical robots can post different results: they were not trading the same feed, so they were not trading the same market.

If you use tick volume to judge a strategy, use it the honest way. Compare brokers against each other rather than against a published figure. Treat a falling tick count as a warning that the feed is thinning out. And never let a backtest that ran on one feed convince you the result transfers to another, because that backtest simulated one broker’s quotes, not gold itself.

What should you do differently if the code cannot beat the clock?

Stop trying to win on speed and start winning on cost and selection: trade fewer, wider, and only in the hours where your latency and your spread are not the deciding factor. On a retail connection the sustainable edge is not being fast; it is being deliberately inexpensive and hard to hurt.

That is a real strategy, not a consolation prize. Three moves turn a doomed speed chase into something a home connection can actually run.

Advertisement

Give the target room to beat the clock. If your round trip can move gold 60 points and the spread costs 30, a 300-point target leaves those costs as a small fraction of the win, while an 80-point target leaves them as most of it. Wider and fewer is how retail survives costs it cannot remove.

Trade the hours that pay for the trade. Spreads are tightest and ranges are widest in the London session and into the New York overlap. Thin evening and Asian hours hand you wide spreads and small ranges at the same time, which is the worst possible combination for a small-target robot.

Count the trades, because every one pays. A robot that fires a hundred times an hour pays the full spread and slippage a hundred times. A robot that fires five well-chosen times a day pays it five times. On a home connection the second robot has the edge before the first one places an order. The XAUUSD scalping robot settings breakdown reaches the same conclusion from the settings side.

None of this makes a weak robot strong. It keeps a mediocre one small enough to be survivable while you find out what you actually have. That is the most any latency-aware plan can honestly offer.

What exactly is in this download, and what does it not do?

The download on this page is geraked/metatrader5, a free open-source library of MetaTrader 5 expert advisors published under the MIT licence. You get full MQL5 source for every strategy in the pack — moving-average, Bollinger-and-RSI, MACD, linear-regression and scalping builds among them — plus the indicators they depend on, compiled builds, and a published backtesting report for each one.

That is what makes it the right file for a page about latency. It will not measure your connection for you and it does not promise speed, but it is code you can read and edit, which means you can add the three timestamp lines from the measurement section above, attach one build to a demo login, and log the tick time, the send time and the fill time for your own orders. The measurement is the point; the robot is only the vehicle that produces the fills.

ItemDetail
Namegeraked/metatrader5
What it doesA library of open-source MetaTrader 5 expert advisors, indicators and scripts with full MQL5 source
Why that mattersYou can read and edit the code, so you can instrument a build with your own timestamp logging
PlatformMetaTrader 5
SourceFull MQL5 source, plus compiled builds and a backtesting report per strategy
Authorgeraked
LicenceMIT
Origingithub.com/geraked/metatrader5
CostNothing
What you needA demo account, MetaEditor, and a few lines of code to log your own fills

Be selective before you compile anything, because the pack is a research library rather than a finished product. Its own documentation warns that some of the strategies were combined with grid logic to lift their historical profitability, which raises the risk in exactly the way the section above described. Read the file you pick before you run it, and treat its published backtest as a starting point rather than a result.

What this download does not do

It does not make you faster. It gives you a strategy to run and a feed to measure, and the round trip you record is the round trip you already had.

It does not measure anything by itself. You still have to add the logging, and the library says nothing about whether the broker behind your demo login is any good.

It does not fix a poor feed. If your broker sends few ticks and quotes wide, the log records the problem; no strategy in the pack can change it.

It does not replace a demo account. Run the whole measurement on a demo login first, because the numbers you collect will help decide whether you go live at all.

And one plain statement that belongs on any page like this. Trading leveraged gold and CFDs carries a real risk of losing money, and most retail CFD accounts that trade actively do lose money. Open-source software comes with no support and no warranty. Verify the source, compile it yourself, and test before you risk a cent.

So what should you do next?

Download the strategy pack, compile one build on a demo login, and spend one week doing nothing but measuring: add three lines that log the tick time, the send time and the fill time for every order, and write down the round trip and the slippage you actually paid. That single week will tell you more about your account than any sales page ever has.

When the log is in front of you, three outcomes are possible. If your round trip is 10 to 40 milliseconds and your gold spread is tight, you have a setup worth building a patient strategy on, and you can widen the target and cut the trade count with confidence. If it is 100 to 300 milliseconds, you now know a small-target robot is a cost machine, and you can choose the hours and target size that make those costs survivable. If the number is unstable — fast one minute, frozen the next — you have found the real problem before it cost you a live dollar.

Then read the free EA and indicator library with sharper eyes. Every file there is labelled by publisher and licence, and you can now judge each one against your own measured latency and spread rather than against a screenshot. When you are ready to compare robots, the best MT4 EA hub applies the same test, and the broker comparison pages tell you which feeds in your region are worth measuring in the first place.

Start with the full catalogue on the blog or browse the free forex EA category and the gold EA and robots category. But before any of that, open a demo and time one order. The phrase “high frequency” may be an infrastructure claim you cannot make, but the measurement of your own account is a claim you can finally prove. Download the code, log the milliseconds, and stop buying speed that was never for sale.

Frequently asked questions

What is the real latency of a retail forex account?

A retail MetaTrader account typically sees a round trip of 40 to 300 milliseconds from the decision to send an order to the confirmed fill. A home connection sits at the slow end, a correctly located VPS pulls that into roughly 8 to 40 milliseconds, and colocated high-frequency firms design to under two milliseconds. The slowest hop always dominates, so measuring the total matters more than improving any single part.

Does a VPS make a high frequency scalping EA work?

Only partially, and only if it is placed in the right region. A VPS removes the distance between your terminal and the broker's server, so a server in the same city can cut the round trip substantially. A VPS in the wrong country adds a hop and removes nothing, because your order now crosses the ocean twice. It cannot touch the broker's own gateway-to-market delay, which stays fixed.

Why does gold slip so much at news time?

At a US data release, liquidity providers widen or withdraw their quotes and your broker passes that straight through as a spread of 100 to 250 points on XAUUSD. Any order that must execute immediately then takes the next available price, which can be far from the one on your screen. Gold has fewer liquidity providers than the major pairs and can gap across price levels without trading in between, so stops can fill some distance away.

What is tick volume in MetaTrader?

Tick volume is the number of price updates the terminal received during a bar, not the number of lots or contracts traded. Retail spot forex and gold have no central exchange, so the platform cannot show real volume and substitutes a tick count as a proxy for activity. It is a useful way to compare two brokers' feeds on the same symbol, but it is a measure of quotes received, not of market size.

Can a retail trader do high-frequency trading?

No, not in the sense the term is used professionally. Real high-frequency trading relies on colocation, leased networks and microsecond routing to a matching engine, and a retail desk on a home connection is thousands of times slower than that. What a retail trader can run is a fast scalper with a wider target, fewer trades and a session and spread filter that keeps costs survivable.

How do I measure my own execution speed?

Log three timestamps for every order: the time of the tick your EA acted on, the time it sent the order, and the time the fill came back. The difference between the last two is your round trip, and the difference between the price you expected and the price you got is your slippage. Collect a week of those on a demo account and you have the only latency number that matters, your own.

AdvertisementExness

Some links on this page are affiliate links. If you open one and sign up, we may earn a commission at no extra cost to you. It never changes what we publish.

Sources

Risk warning

Past performance is not indicative of future results. Trading forex and CFDs carries a high level of risk and can result in the loss of all of your capital. The results shown are specific to the broker, account type and settings used on the tracked account and will differ elsewhere. Nothing on this site is financial advice.

Continue reading

#1 Ranked EA · Myfxbook Verified

Obsidian Aether EURUSD EA

AI-powered grid scalper for MetaTrader 5 — adaptive ATR spacing, range & trend dual detection, and institutional-grade risk management.

+74.12% GainPF 1.4414 Trades
View Full Review