I think I'm following what you're trying to do, but let me make sure.... you want the live strategy to test the current day bar every 5 minutes vs. tick by tick.... right?
First, I'm not sure how much different that would be than tick-by-tick... like is it a material enough difference to be worth the effort?
My second thought is to just put some time parameters in your code... like have the code execute only every 5 minutes. There are 390 minutes in the trading day, that would 390 / 5 = 78 conditions.
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.