Cbot not to open trade when news is coming.

Created at 25 May 2021, 23:13
TR

traderfxmaster007

Joined 09.07.2019

Cbot not to open trade when news is coming.
25 May 2021, 23:13


Hi,  good day. 

I need help,  I would like to know how to write a code,  about FX news events.  I don't want my cbot to open trades 6 hours before a high priority news releases and close trades if there's a current open trades. 

A sample code is much appreciated. 


@traderfxmaster007