Newsfilter avoid high impact news

 

im looking for this to put this in mine ea

UseNewsFilter = true

IncludeHigh = true

IncludeMedium = true

IncludeLow = false

IncludeSpeaks = true // speeches

MinutesBeforeNews = 180

MinutesAfterNews = 180

CloseMinBeforeNews = false

MinBeforeNews = 5

If the news filter in on true, and you have speaks (speeches) on true as well as medium and high impact news releases on true, and low on false, and you have 180 (minutes) in the MinBeforeNews input, and 180 in the MinsAfterNews input, and EFX Forex Robot is loaded on, for example, every USD pair (EURUSD, AUDUSD, USDCAD etc., etc.), then it will not open any trades on any USD pair if there is a speech, or medium or high impact news release, within the next 180 minutes, and it will also wait until 180 minutes after the news release before opening any trades again.

If CloseMinBeforeNews is on true and MinBeforeNews = 5, and trades have opened on any USD pair (where the EA is loaded) prior to the beginning of the 180 minutes, then those trades will automatically close 5 minutes before the USD news release.

 
mart87:
im looking for this to put this in mine ea

UseNewsFilter = true

IncludeHigh = true

IncludeMedium = true

IncludeLow = false

IncludeSpeaks = true // speeches

MinutesBeforeNews = 180

MinutesAfterNews = 180

CloseMinBeforeNews = false

MinBeforeNews = 5

If the news filter in on true, and you have speaks (speeches) on true as well as medium and high impact news releases on true, and low on false, and you have 180 (minutes) in the MinBeforeNews input, and 180 in the MinsAfterNews input, and EFX Forex Robot is loaded on, for example, every USD pair (EURUSD, AUDUSD, USDCAD etc., etc.), then it will not open any trades on any USD pair if there is a speech, or medium or high impact news release, within the next 180 minutes, and it will also wait until 180 minutes after the news release before opening any trades again.

If CloseMinBeforeNews is on true and MinBeforeNews = 5, and trades have opened on any USD pair (where the EA is loaded) prior to the beginning of the 180 minutes, then those trades will automatically close 5 minutes before the USD news release.

mart87

Check this thread for start : https://www.mql5.com/en/forum/182677