Trading libraries for MetaTrader 4


200.00 USD162.00 USD

Free updates are included

We Accept:

We guarantee that all our
products are 100% authentic


MetaTrader 4


Library for an Expert Advisor. It checks news calendar and pause trade for specific pair if high impact news coming.

News Filter for an Exert Advisor. Easily apply to your EA, just needs simple scripts to call it from your EA.

Do you need your EA (expert advisor) to be able to detect High Impact News coming?

Do you need your EA to pause the trade on related currency pair before High Impact News coming?

This News Filter library is the solution for you.

This library requires indicator NewsCal-v107.ex4 (by Tim Morris 2012) in folder MQL4/Indicators and must be attached on chart.

Just put the simple script in your EA to call this News Filter library, and your EA will be able to detect High Impact News coming and pause the trade for related currency pair.

The function returns:

  • FALSE if specific pair was blocked to trade
  • TRUE  if specific pair was allowed to trade

Importing the function from the library

// ============= COPY TO CALLER EA ===================
// ----- Following SCRIPT must be put into CALLER EA as GLOBAL VARIABLE (without any change)
// ----- Needs file NewsCal-v107.ex4 (thanks to Tim Morris) in folder MQL4/Indicators

enum news_filter
 hr0=0,//NO News Filter Applied
 hr1=1,//PAUSED 1 Hour Before High Impact News
 hr2=2,//PAUSED 2 Hours Before High Impact News
 hr3=3,//PAUSED 3 Hours Before High Impact News
 hr4=4,//PAUSED 4 Hours Before High Impact News
 hr5=5,//PAUSED 5 Hours Before High Impact News
 hr6=6,//PAUSED 6 Hours Before High Impact News
 hr7=7,//PAUSED 7 Hours Before High Impact News
 hr8=8,//PAUSED 8 Hours Before High Impact News
 hr9=9,//PAUSED 9 Hours Before High Impact News
extern   news_filter HourToStart= 1;//SET EA to be PAUSED before High Impact NEWS (for Related Pairs), Default is -1Hr

#import "NewsFilterForEA.ex4"   // This file must exist in folder MQL4/Libraries
   void NewsFilter(char HourToStart);
   bool NewsState(char HourToStart);
   string NewsCCY(char HourToStart);
   bool GetAllowCcy(string PairSymbol, char HourToStart);


Example of use in Expert Advisors

void OnTick() {

   if(GetAllowCcy(PairSymbol,HourToStart))  //-- if return is TRUE, execute Order
   else return;                             //-- if return is FALSE, skip Order 

} //-- OnTick()

You can set how many hours prior to incoming High Impact News to pause the trade,

for example:

You set News Filter to detect 3 hours prior to incoming High Impact News,

for example the news (Durable Goods Order) will be coming at 19:30 (your PC time),

start from 16:30 until 19:45 (your PC time), News Filter will be activated to pause the trade on USD,

so any pair with USD (EURUSD, USDCHF, etc.) will not be traded (blocked), but the pair without USD (EURJPY, AUDNZD, etc.) still can be traded.

Check following screen shoot for better understanding.


If you bought/rented this product, after installing/download from MT4 terminal, it goes to folder MQL4/Scripts/Market.

You need to move it into folder  MQL4/Libraries, and call it from your EA using above scripts.

If you need assistance, you can send email to This email address is being protected from spambots. You need JavaScript enabled to view it.


If for any reason you do not like the purchased program, you can request a refund within 14 days from the date of purchase. You can also make an exchange for any other product at an equal cost or by paying the difference.

Simply send a request for refund or exchange with your order number by email:

Refund requests received more than 14 days after purchase will be rejected.

Email Us Now! Support is available 24/7
by Email:

Do You Need Help?
Click Here To Start Live Chat

Contact Us

Copyright © 2021 All rights reserved. Terms and conditions | Privacy policy     We speak your language EN|CN|DE|ES|RU

RISK WARNING: is a software reseller, we do not offer investment advice or execute trades. The software we provide is a tool where the settings are input by the end user to design their own trading strategy. Trading forex and CFDs carry a high degree of risk to your capital and it is possible to lose your entire deposit. Only speculate with money you can afford to lose. As with any trading, you should not engage in it unless you understand the nature of the transaction you are entering, and the true extent of your exposure to the risk of loss. These products may not be suitable for all investors, therefore if you do not fully understand the risks involved, please seek independent advice.