Advertisement IC Markets

Spread filters in a scalping EA: setting the maximum spread, and why the average spread is the wrong anchor

Discuss 1-minute to 15-minute price action setups, fading intraday momentum, key support/resistance zones, and proven short-term trading methodologies.
Post Reply
Shadow Trader
Posts: 6144
Joined: Wed Sep 09, 2026 5:19 pm

Spread filters in a scalping EA: setting the maximum spread, and why the average spread is the wrong anchor

Post by Shadow Trader »

Almost every scalping EA has a maximum spread setting: if the current spread is wider than X, don't open a trade. It's one of the most important settings in the robot and one of the least thought about. People often set it to something like twice the average spread and leave it there.

The average is a poor anchor because spread isn't spread evenly. It's tight for most of the London and New York sessions and much wider around the daily rollover, during thin early Asian hours, and around big news. The average blends all of that together. A filter based on it can be too loose in the quiet hours and still let you trade into the worst spikes.

A better starting point is to look at the distribution. Record the spread at every potential signal over a few weeks and look at the percentiles by hour. You might find that the 90th percentile during London is barely above the median, while at rollover it's several times higher. That suggests a filter that's fairly strict and probably different by session.

The real test is what the filter does to results. Run the strategy with no filter, then with several maximum spreads, and compare not just the profit but the average cost per trade and the number of trades kept. A good filter usually removes a small number of trades that carry a large share of the costs. If tightening it barely changes anything, spread wasn't the problem.

One thing to watch in testing: some backtesters use a fixed spread, which makes the filter useless in the test and misleading in reality. Tick data with real variable spreads is needed for this kind of check.

How do people here set their spread limit, and do you vary it by session or keep one number for the whole day?
Recommended broker for automated trading & scalping IC Markets
Post Reply