I was testing some ideas using a news indicator. FSSI calander MT4 and MT5 link here - https://fxssi.com/forex-news-indicator-mt4. FSSI simply draws the line on the chart and the fxdreema blocks can identify the lines and get the time value which can be used to prevent news trading or to trade news. This is my work-in-progress project which seems to be working fine.
It gives the time value for the next news based on Fssi setting, type of news by identifying the object name for the vertical line that fssi creates "FXSSI.CALENDAR#news-line". So it gives the exact new time (next news), then you can use time filter to do whatever is needed.
https://fxdreema.com/shared/ICKXO6y4
The shared link will give the news time, and times to avoid before and after. If you dont have a FSSi indicator, you can simply create a vertical Line and name it - FXSSI.CALENDAR#news-line . Works exact same (For testing out).
It has to be tested properly, but looks to me like it can work