If you are trading the 1 hour timeframe, you can simply use TRADEINDEX keyword, that give you the barindex number where the trades were launched at market. Then you only need to make differences between the current barindex and the last tradeindex to know if there is already 4 bars elapsed.