MT4-News Scraping FTMO

¥1,000.00

  • Brand: LANCOME
  • Product Code:
  • Availability: In Stock

- +
Main Image

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)
#import

Here 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.

Write a review

Note: HTML is not translated!
Bad Good