The News Filter Guide MT4/MT5

The News Filter Guide MT4/MT5

24 April 2023, 09:52
Leolouiski Gan
12
1 997

The News Filter needs a script called Filter This to work. Watch this YouTube video for a better tutorial on how to use The News Filter.


The News Filter does not work in strategy tester. To test this product for free, you can download The News Filter DEMO.


Free bonus program that disables AutoTrading button during news at the bottom of this blog.


Download links (MT4):


How to add Forex Factory link to MT4/MT5

  1. Go to MT4/MT5 and click ctrl+o to open options of your MT4/MT5 terminal.
  2. Go to the "Expert Advisors" tab.
  3. Tick the checkbox for "Allow WebRequest for listed URL".
  4. Add this URL https://nfs.faireconomy.media and click OK.



How to add The News Filter DEMO to your MT4/MT5

  1. Download the file from the link provided.
  2. Go to MT4/MT5 and click File, Open Data Folder.
  3. Go to the MQL4/MQL5 folder.
  4. Paste your downloaded "The News Filter DEMO.ex4/ex5" file inside the Experts folder.
  5. Close your MT4/MT5 and open again. The files should appear in your navigator (ctrl+n).
           


Special news minutes


Duration of news is determined by the input of the BEFORE,AFTER minutes for each impact. For example, a high impact news on EURUSD will have the EA removed 20 mins before news and reattached 30 mins after news (EA removed for total 50 minutes).

Special news minutes is used to set a unique news duration based on keyword. If the news contains the specified keyword, BEFORE,AFTER minutes determined by impact will be OVERRIDE by special news minutes. For example, EURUSD high impact news title is "FOMC Meeting Minutes". Since the title contains keyword "FOMC", the BEFORE,AFTER minutes will be 40,45 not 20,30. You can input as many special news keywords as you want, separating them by "+" symbol (see above picture).

To check your inputs, click the "Show Inputs" button in the main chart.


To check the duration of selected news, click the "Selected News" button in the main chart.



Order management system

The chosen actions (A1,A2,A3) are executed when minutes before news is reached and order management is ENABLED.


Profit threshold inputs allow you to set different actions for positions based on whether they are currently profitable or not

  • Positions above profit threshold will be under A1
  • Positions below profit threshold will be under A2
  • Pending orders will be under A3

Both SL distance and TP distance are only used when A1, A2, A3 are selected as "Modify SL & TP". If A1, A2, A3 are selected as something else, the values of SL distance and TP distance are not used. Both SL distance and TP distance inputs must ALWAYS has 3 values separated by comma even if A1, A2, A3 are not selected as "Modify SL & TP".

  • The first value of 300 in SL distance is applied to (A1). This will make The News Filter move SL value of positions above profit threshold to 300 points from the current price before news.
  • The second value of -2 is applied to A2. This will make The News Filter move SL value of positions below profit threshold to breakeven level.
  • The third value of -1 is applied to A3. Since A3 is selected as "Delete pending orders", whatever number you input in here actually does nothing since its ignored. But if "Modify SL & TP" were selected for A3, this value will then be used to decide how to move the SL of the position.


Possible SL distance inputs

Possible Inputs Explanation
 0  Remove SL
 -1  Keep original SL
 -2   Move SL to breakeven level
 300  Move SL to 300 points from current price
 E300  Move SL to 300 points from entry price
 R1.2300  Move SL to the raw level 1.2300


The same concept applies to TP distance where 600 applies to TP of A1, 600 applies to TP of A2, and -1 applies to TP of A3.

If you want all open positions to have the same action before news regardless of their profit level, you can just set both A1 and A2 to have the same action.

You can easily check if you have set up the order management system correctly by clicking the "Order Management" button in main chart.


Remember to always check your inputs after setting up The News Filter to ensure everything works according to your strategy. If you have any other questions, feel free to message me via the MQL5 chat.


      How to find out your other EA's magic number (if you don't already know)

      1. Open the MT4/MT5 terminal (ctrl+T) and go to the "Account History" tab.
      2. Find a historical position opened & closed by your EA.
      3. Hover your mouse over that order and the Expert id value is the magic number. If there is no expert id stated, the magic number is 0.
      4. The picture below shows a position by "EMArobot" with magic number of 170.


      Difference between DEMO and full version

      • Demo is only able to filter 1 chart at a time.
      • Full version is able to filter an unlimited number of charts.
      • Demo version only works on demo account.
      • Full version works on all accounts.

      How to check if news data is accurate (if you want)

      1. Go to forex factory economic calendar
      2. Set the time zone of the forex factory website so it matches your local time (or server time if you choose server time display)
      3. Compare the news time in the website with the news display provided by The News Filter



      How to enable notifications

      1. Go to MT4/MT5 and click ctrl+o to open options of your MT4/MT5 terminal.
      2. Go to the "Notifications" tab
      3. Tick the checkbox for "Enable push notifications". Notify of trade transactions is not compulsory as The News Filter will already send a notification regarding order management.
      4. Add your MetaQuotes ID and click OK.


      Free program that disables AutoTrading button during news

      You can claim a free program "News Toggle" after purchase of The News Filter (depends you purchase MT4 or MT5). This bonus program disables the AutoTrading button in MT4/MT5 during news and re-enables it after news ended. Message me in MQL5 after purchase of The News Filter to claim. This bonus program requires "Allow DLL imports" to be ticked.


      Inputs of News Toggle

      AutoTrading button disabled

      AutoTrading button re-enabled


      Share it with friends: