Skip to content
← All posts

Forex Scalping EAs

Scalping EA Slippage: How to Reduce It Step by Step

EABuild Team · · 10 min read

Scalping EA Slippage: How to Reduce It Step by Step – EABuild

Scalping EA slippage is the gap between the price your expert advisor asked for and the price the broker actually filled, and on a method that aims at a few pips it can decide whether a trade is worth taking. This post shows where that gap comes from, how to measure it on your own account, and the steps that can reduce it: broker and account type, connection latency, a maximum slippage input, and care around news releases.

Where scalping EA slippage comes from

An expert advisor (EA) is a program that places orders inside MetaTrader without manual input. When it sends a market order, it names the price it sees on the chart. By the time the order reaches the broker and is matched, the price may have moved. The fill happens at the price available at that moment. If that price is worse for you, it is negative slippage. If it is better, it is positive slippage.

Scalping makes this visible because the targets are small. A scalping EA opens many short trades that aim at small price moves, so a fill that is a pip or two worse than expected can remove most of a target. A trend-following EA that aims at a large move barely notices the same difference.

The three causes you can influence

  • Market speed. When price moves quickly, the quote changes between the click and the fill. You cannot change the market, but you can choose when your EA trades.
  • Delay between you and the broker. Latency is the time a message takes to travel to the broker's server and back. A longer delay gives price more time to move.
  • How the broker fills orders. Brokers differ in execution model, liquidity and the order-filling modes they allow. Two accounts with the same EA can give different fills.

Slippage is not a fault of the EA alone, and it is never reduced to zero. The goal is to make it smaller and more predictable, and to stop the EA from accepting fills that are too poor.

What to have ready before you reduce slippage on a scalping EA

Changing settings without a baseline tells you nothing. Gather these items first.

  • A demo account of the same type as your live account. Spreads and execution on a demo account of another type are not a fair comparison.
  • The EA, its symbol and its timeframe. Use the symbol and timeframe the listing names. Test one setup at a time.
  • A way to see the Experts and Journal tabs. These logs show the order the EA sent. The trade history shows what was filled. Together they let you compare the two prices.
  • A notebook or spreadsheet. Write down the requested price, the filled price and the time for each trade. You need many trades, not three.
  • A list of your EA's inputs. Open the inputs window and look for anything named slippage, deviation, maximum spread or news filter. Not every EA has all of them.

Steps to reduce slippage on a scalping EA

Work through the steps in this order. Changing the broker side and the EA side at the same time makes it impossible to tell which change helped.

  1. Measure your current slippage. Let the EA trade on demo for a few days. For each trade, subtract the requested price from the filled price, and note whether the difference helped or hurt. Group the results by hour, because slippage is rarely spread evenly through the day.
  2. Check the broker and account type. Read the broker's account specification for its execution model and order-filling options. Compare an ECN-style account and a standard account on cost and fills; the post on ECN vs standard accounts for scalping shows the method. Do not assume one type removes slippage.
  3. Reduce the delay to the broker. A home computer on wireless internet adds delay and gaps. A VPS (a remote computer that stays online) placed near your broker's server can cut the travel time. The post on running an EA on a VPS covers the setup. Measure again afterwards, since a VPS only helps if latency was part of your problem.
  4. Set a maximum slippage input. If the EA has an input for maximum slippage or deviation, set a limit so that orders are not accepted at fills far from the requested price. The next section explains the trade-off.
  5. Limit trading around news releases. Spreads widen and prices jump when economic data comes out. Either pause the EA for a window around major releases, or use the EA's own news filter if it has one. Check the filter's time zone against your broker's server time.
  6. Avoid the thin hours. Rollover, when the broker switches to a new trading day, and the quiet hours between sessions often show wider spreads. If your measurement from step 1 shows a cluster of poor fills at one hour, exclude that hour with the EA's time inputs, where it has them.
  7. Keep the lot size modest. A large order on a thin quote can be filled in parts at different prices. A smaller lot size lowers the chance of that happening. This is also a risk control in its own right.
  8. Measure again and compare. Repeat the logging from step 1 with the same EA, the same symbol and the same hours, then compare the average gap. Keep the change if it helped and reverse it if it did not.

How a maximum slippage input works, and what it costs you

In MetaTrader 4 the order function takes a slippage value, measured in points. In MetaTrader 5 the trade request carries a deviation value, also in points. Both say how far from the requested price the broker may fill. Many EAs expose this as an input, often with a name containing slippage or deviation. A point is a fraction of a pip on most five-digit brokers, but the digits differ by symbol and broker, so check how your platform quotes the symbol before you pick a number.

The trade-off

A tight limit protects you from poor fills, but it also means some orders are rejected. In a fast market the EA may then skip the very trades its logic wanted. A wide limit lets more trades through, including ones filled far from the plan. Neither is correct for every account.

A practical approach is to start from the EA's default or set file value, run it on demo, and look at how many orders are rejected against how many fill badly. Then change the limit in small steps and test again, one change at a time.

What the setting does not do

  • It does not stop negative slippage inside the allowed range.
  • It does not guarantee a fill. Rejected orders mean missed trades.
  • It does not apply to a stop-loss that triggers during a gap. A stop becomes a market order when price reaches it, so it can fill beyond the stop level in a fast market.

Order type and filling mode

A market order accepts the price on offer. A pending limit order will not fill at a worse price than the one you set, but it may not fill at all. A pending stop order becomes a market order once triggered, so it can slip. MetaTrader 5 also has filling modes such as fill or kill and immediate or cancel, and the modes your broker supports depend on the symbol. If the EA fails to place orders after a change, check the Experts tab for an error about the filling mode.

How this applies to three scalping EAs in the shop

The listings below do not state a maximum slippage input, an account type or a latency requirement, so this post does not claim any of those for them. What each listing does give you is the symbol, timeframe and strategy, which tell you where slippage is most likely to matter.

Scalping EA Robot for MT4 is an MetaTrader 4 expert advisor listed for XAUUSD, EURUSD, GBPUSD and USDJPY on M1, with scalping, martingale and news trading as its strategy. The listing marks grid or martingale as yes, so each additional trade after a loss uses a larger lot size, and a poor fill matters more as the size grows. Because news trading is listed, step 5 above deserves a careful demo test: run it through a release and read the fills. The download holds one EA file and three set files.

Volume Scalper EA for MT4 is an MT4 EA for XAUUSD, GBPUSD and EURUSD on M1 and M5, with scalping and breakout logic. A breakout entry happens when price leaves a range, which is often a moment of fast movement, so entries can slip. The package has one EA file and four set files. The listing does not say whether it uses a grid or martingale, so read the inputs before you rely on it.

Elite Scalper Bot for MT5 is an MetaTrader 5 EA designed for XAUUSD on M5, with scalping, trend following and news trading listed. Gold can move quickly, and MT5 uses the deviation field described above, so check your broker's filling modes for XAUUSD. The download has two compiled files, one of them a helper file, and three set files.

For wider context on how forex scalpers behave and what a listing tells you, see the forex scalping EA guide.

Common problems when slippage stays high

  • Changing too much at once. If you move to a VPS, change account type and tighten the limit in one week, you will not know which one mattered.
  • Judging on a handful of trades. A few bad fills can come from a single news spike. Look at many trades and at the hour they happened.
  • Reading the demo as a promise. Fills on a demo account can differ from live fills, so a small live test is a separate step. Slippage can be lower on demo than on a live account.
  • Confusing spread with slippage. Spread is the quoted gap between buy and sell price. Slippage is the difference between the requested and filled price. Both cost money, but they have different fixes.
  • Setting the limit so tight that the EA stops trading. If trades disappear after you lower the maximum slippage, the Experts tab usually shows rejected orders. Raise the limit in small steps and test again.
  • Wrong server time for the news filter. A filter set in your local time but read in broker time pauses the EA at the wrong hour.

Testing slippage on a demo account this week

Pick one EA that matches the platform, symbol and timeframe you already use, and log the requested and filled price for each trade over several days. Change one thing from the list above, log again, and compare. Each EA in the shop is a digital download, and every product is included in the membership, so you can try a different scalper on demo without committing to one. Check the settings and your account costs before you trade live.

Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results; only trade with money you can afford to lose.

Tags: Forex Scalping EAs, Scalping, Trading Costs

← All posts

Get every EA with membership

313 products · from $16.59/month

See plans

More in Forex Scalping EAs