I need historical backtest to mimics this behavior as much as possible. Is there way to achieve this using 1 min and 5 min bars, and have onbarupdate routine evaluate the 5 min bar indicators still in formation, based on the complete of each 1 min bar?
eg. at the complete of 9:01am, 9:02am, ...9:05am 1 min bars, program to calculate the forming 9:05am 5 min bar indicators. And if a partially formed 5 min bar at 9:03am triggers an entry condition, then a position is entered at 9:03, instead of 9:05.

Comment