Hello
Usually the markets close on Friday about 23:00 depending on the server´s timezone. I would like to close any opened position before that time but as much closer as posible to the market´s closing time. Because my EA trades in high timeframes and it checks the project´s logic at the bar´s opening, I am not able to figure out how to close all opened trades if the bar´s open does not match with my condition.
As an example: TimeFrame == H8 (bar´s open at 0:00, 8:00 & 16:00 each day)
If I set: OncePerBar (H8) -> If DayOfWeek == Friday && HoursFilter == 16:00 - 23:00 -> CloseAll, it Works pretty well.

But what I would like to set is like: OncePerBar (H8) -> If DayOfWeek == Friday && HoursFilter (or Time) == 22:00 - 23:00 -> CloseAll
I tried

I have placed that block's group on the top´s Project to allow the ticks pass through it but it does not work. Block #81 is a "Pass" block.
Any suggestion Will be very welcome.
Thanks














