![]()
In this library there is embedded a function called newsAlertFTMO; this function returns a datetime value of the next news date (FTMO Restricted Event) for the specific currency selected (or 0 if there is no Restricted Event news found).
With this library and the following integration code you can disable the EA during that news(with a buffer of 2 minutes before and after the news release).Here an example of how to import from the library:
#import “News Scraping FTMO.ex4" datetime newsAlertFTMO(string linkWebiste,string currencyToBeAlert,int bufferMinutes=2) #importHere how to deal with this function and embed in your EA:
bool isTradeAllowedWithNews(int bufferMinutes=2){ datetime timeNews = newsAlertFTMO("https://ftmo.com/en/calendar/","AUD",bufferMinutes); if(timeNews > 0 && TimeCurrent() >= timeNews – bufferMinutes*60 && TimeCurrent <= timeNews + bufferMinutes*60) return false; return true; }For info don't hesitate to contact me.