Filter News Time

News Stop Filter

The News Stop Filter helps your EA avoid opening trades during important news times, when the market can become highly volatile. When this filter is active, the EA can pause trading before and after selected news events. This can help reduce risk during major announcements.

Current News URL

https://sslecal2.investing.com

 

Step #1 — Add the News URL into Your MetaTrader Terminal

Before using the news filter, you must allow your MetaTrader terminal to access the news website.

How to do it

  1. Open your MetaTrader terminal

  2. Go to Tools

  3. Click Options

  4. Open the Expert Advisors tab

  5. Turn on Allow WebRequest for listed URL

  6. Add this URL exactly as shown:https://sslecal2.investing.com

  7. Click OK

Step #2 — Set the Correct GMT Time

This is very important.

The EA downloads news time based on GMT/UTC time.
If your GMT setting is wrong, the news time may appear incorrectly on the chart, and the EA may stop trading at the wrong time.

Why GMT is needed

The news data from the news server is based on GMT = 0.
Your broker server time may be different from GMT.
So the EA needs to know your broker’s GMT offset to match the news time correctly.

GMT and UTC

GMT and UTC are the same for this setup.


Option A — Auto GMT

If you choose Auto GMT, the EA tries to detect your broker’s GMT automatically.

Good side

  • Easy to use

  • No manual calculation needed

Warning

Auto GMT may not always work correctly with every broker.

If the news lines or times look wrong on your chart, use Manual GMT instead.


Option B — Manual GMT

If you choose Manual GMT, you must enter your broker server’s GMT offset manually.

How to find your broker GMT offset

  1. Open this website in your browser:
    https://time.is/UTC

  2. Check the current UTC time

  3. Open your trading terminal

  4. Check your broker server’s current time in Market Watch or chart time

  5. Compare the hour difference only

Example 1

  • UTC time = 12:00
  • Broker time = 14:00

Then your broker GMT offset is:

GMT +2

Example 2

  • UTC time = 12:00
  • Broker time = 07:00

Then your broker GMT offset is:

GMT -5

Very Important

If your GMT offset is wrong:

  • News time will show incorrectly
  • News lines may appear at the wrong time
  • The EA may block trades at the wrong moment
  • The news filter may not work properly
 

Step #3 — Understand Every News Filter Input

Below is a simple explanation of each EA input related to the news filter.


Enable News Filter

Options: Off / On

Turns the news filter on or off.

  • Off = News filter disabled

  • On = EA will stop opening trades around selected news events


News Filter Use For

This setting decides which trades the filter affects.

For Initial Trade

The news filter works only for the first trade entry.

That means:

  • Initial trade = blocked during news time

  • Grid trades = not blocked

  • Hedge/recovery trades = not blocked

For All Trade

The news filter works for all trades.

That means:

  • Initial trades = blocked

  • Grid trades = blocked

  • Recovery/hedge trades = blocked


GMT Mode (For News)

This tells the EA how to handle broker time.

Auto GMT

The EA detects the broker GMT automatically.

Manual GMT

You manually enter the broker GMT offset.

Use Manual GMT if Auto GMT gives incorrect news times on chart.


Manual GMT Offset (For News)

This input is used only when Manual GMT is selected.

Here you enter your broker’s GMT offset.

Example values

  • 0 = GMT+0

  • 2 = GMT+2

  • -5 = GMT-5


Current Chart Currencies to Filter News

Options: True / False

This setting controls which currencies the EA checks for news.

True

The EA filters news only for the currencies in the current chart symbol.

Example

If the chart symbol is EURUSD, the EA will filter only:

  • EUR news

  • USD news

False

The EA will not use only the chart symbol currencies.
Instead, it will use the currencies you manually enter in the next input.


Select Currency to Filter News

Use this when Current Chart Currencies to Filter News = False

Here you manually define which currencies should be checked.

Write them separated by commas.

Example

USD,EUR,GBP

This means the EA will filter news for:

  • USD

  • EUR

  • GBP


LowNews / MediumNews / HighNews

These settings let you choose which news impact levels the EA should filter.

LowNews

Filters low-impact news events

MediumNews

Filters medium-impact news events

HighNews

Filters high-impact news events

You can enable only the levels you want.

Example

  • LowNews = False

  • MediumNews = True

  • HighNews = True

This means the EA ignores low news, but filters medium and high news.


Pause Before (Min.)

This sets how many minutes before the news release the EA should stop opening trades.

Example

If Pause Before = 30

and the news is at 14:00, the EA stops opening trades from:

13:30


Pause After (Min.)

This sets how many minutes after the news release the EA should continue blocking trades.

Example

If Pause After = 20

and the news is at 14:00, the EA resumes trading after:

14:20


CustomNews

This feature lets you block trading for specific news events by name.

Use this if you only want to filter certain important news events.

Example news types

  • Interest Rate

  • Press Conference

  • Nonfarm Payrolls


Put News Event (Separate by semicolon 😉

Here you write the custom news names.

Separate each news name with a semicolon ;

Example

Interest Rate;Press Conference;Nonfarm Payrolls

The EA will look for these news names and apply the filter to them.


How to Find the Correct News Name

  1. Open this URL in your browser:

https://sslecal2.investing.com
  1. Find the news event name you want

  2. Copy the name exactly

  3. Paste it into the EA input

It is best to use the same wording shown by the news source.


Show News Line on Chart

Options: True / False

This controls whether the EA shows news lines on the chart.

  • True = show news lines on chart

  • False = do not show news lines

This is useful for checking whether the news time is matching correctly.


Example Setup

Here is a simple example:

  • Enable News Filter = On
  • News Filter Use For = For Initial Trade
  • GMT Mode = Manual GMT
  • Manual GMT Offset = 2
  • Current Chart Currencies to Filter News = True
  • MediumNews = True
  • HighNews = True
  • Pause Before = 30
  • Pause After = 30
  • Show News Line on Chart = True

What this does

  • EA will block only initial trades
  • It will filter medium and high impact news
  • It will stop trading 30 minutes before news
  • It will start trading again 30 minutes after news
  • It will only check news for the current chart currencies

Important

  • The news filter works by downloading data from an external website.
  • Sometimes the news website may change, become unavailable, or stop working temporarily.
  • If your internet, firewall, VPS, or broker environment blocks access to the news URL, the filter may fail.
  • Because of this, the news filter is not guaranteed to work 100% all the time.
  • Use this feature at your own risk.
  • Also keep in mind that this news function may not work forever in the future if the news source changes.
  • Correct GMT setting is extremely important. If the GMT is wrong, the news filter may show wrong time and work incorrectly.
  • If you use multi-pair trading, the EA will stop trading all pairs when the news filter is active for one pair.

Final Note

Before using the news filter in live trading, always test it first on a chart and make sure:

  • the news URL is added correctly
  • the GMT offset is correct
  • the news lines appear at the correct time
  • the pause before and after values are set properly