Skip to content
MT5MT4soonTradingViewsooncTradersoonNinjaTradersoonPythonsoon
Expert Advisors & automation

News filter

Also called News avoidance filter, News blackout, News pause

A news filter is a rule, usually inside an Expert Advisor (a trading robot), that stops new trades for a set number of minutes before and after scheduled economic releases, so the strategy sits out the sudden price jumps and wider trading costs around news.

A news filter does not predict news, and it blocks trades that would have won as well as trades that would have lost. Treat it as a risk choice, not a profit tool. Around a release your stop can fill well past its price, so a planned 1% loss can turn into more.

The window: minutes before and after each release

Before every order, the Expert Advisor (EA) checks the economic calendar. If a release for either of the pair's currencies falls inside the window, the EA does not trade. Around a release the spread, the gap between the price you buy at and the price you sell at, often widens, so any entry starts further behind.

The window has two parts: minutes before the release and minutes after it. When two releases are close together, their windows overlap and join into one longer block with no new entries. The timeline below shows an illustrative setup with 30 minutes on each side of releases at minute 60 and minute 90.

Two releases close together: overlapping news filter windows join into one block
Windows overlap0255075100125150minutesWindow for release at minute 60Window for release at minute 90Combined block: new entries blocEA trades again

A filter only knows scheduled events. A surprise headline is not on any calendar, so no filter can step aside for it.

Four things a filter can do with your orders

"Filter on" does not mean the same thing in every EA.

Action in the windowWhat happensTrade-off
Block new entriesSignals are skippedMisses moves that start on the news
Close open tradesPositions are closed before the windowLocks in the current result, win or loss
Remove pending ordersOrders are deleted, and some EAs place them again after the windowThe original entry price may be gone
Leave open trades alonePosition rides through the releaseThe filter gives it no protection

The common misread is to assume you are flat during news. Some filters only block new entries, so check yours. A trade opened an hour earlier is still exposed, as the picture below shows.

A news filter that only blocks new entries: an open trade rides through the release window while a new signal is skipped
The filter skips the new signal inside the window, but the trade opened an hour earlier is still open when the release hits.

What a slipped stop costs: a worked example

The figures here are an illustrative example. You trade EUR/USD with 0.10 lot (10,000 units), so one pip is worth $1. Your account is $2,000 and your stop is 20 pips, a planned risk of $20, or 1%.

The EA buys at 1.1000 two minutes before a jobs report, so the stop sits at 1.0980. Price drops straight through your stop, and the next available price is 1.0965, 15 pips lower. That gap between your stop price and your fill is slippage. Your 20-pip stop becomes a 35-pip loss. The chart below, on 1-minute candles, shows the news candle falling through the stop line to the actual fill.

News candle falling through a 20-pip stop and filling 15 pips lowerIllustration
Entry 1.10001.1000Stop 1.09801.0980Actual fill 1.09651.0965BuyJobs report
Planned loss versus loss with news slippage on 0.10 lot
Planned loss20 × $1= $20
Pips lost with slippage20 + 15= 35
Actual loss35 × $1= $35
Extra loss$35 − $20= $15
Loss beyond your plan$15

$35 is 1.75% of the account instead of 1%. With the filter on, this trade never opens.

The rule to copy: actual loss = (stop pips + slippage pips) × pip value. If your EA sizes lots from the stop distance, slippage is the part that sizing cannot see.

Where you set the news filter

You set it in the EA's input settings, before you attach it to a chart. The usual inputs are:

  • an on/off switch;
  • minutes before and minutes after the release;
  • impact level to react to (low, medium, high); if it is set to high only, a release the calendar marks medium is still traded;
  • which currencies to watch;
  • what to do with open trades and pending orders.

Match the minutes and the impact level to your stop:

  • If your stop is tight, as in a scalping EA, then use a wider window and include medium-impact events.
  • If your stop is wide and you trade the daily chart, then high-impact events alone may be enough.

The EA reads events from an economic calendar built into your trading platform, or from a web feed. If the EA uses a web feed, allow that address in your platform's settings, or the calendar loads empty. When the calendar is empty, the EA may keep trading as though there were no news. Look in the EA's log for a line confirming that events were loaded.

Checks before you rely on the filter

  • Time zone. Calendar times and your broker's server time can differ. A one-hour offset, for example after a daylight-saving change, moves the window off the release. Compare the EA's next event time with a calendar you trust.
  • Both currencies. A EUR/USD trade needs euro and dollar events filtered, not just one side.
  • Backtests. Historical tests often have no calendar data, so the filter is silently off. The report then contains news trades your live EA will skip.
  • Open-trade behaviour. Run the EA on a demo account through one release and watch what it does with an existing position.
A one-hour time-zone offset moves the news filter window off the release
Illustrative values: with a one-hour offset the whole window sits after the release, so the EA can trade straight into it.

FAQ

Do I need a news filter if I trade manually?

You are the filter. Check the economic calendar before your session, mark the release times for your pair's two currencies, and decide in advance whether you stay flat, reduce size, or hold through them.

Can I trade around news on a prop-firm funded account?

Some prop firms restrict opening or closing trades around high-impact releases. Read your firm's rule first, then set the EA window at least as wide as the firm's. If the rule also covers closing trades, check what your filter does with open positions inside that time.

How long after the news should an EA wait before trading again?

Use the spread as your signal, not only the clock. If the spread is still above what you normally see on that pair, wait. Some EAs add a maximum-spread check that does this for you.

Related terms