I'm trying to create pair-trading strategy, that fills orders in different instruments in different times - exactly only on bar close. I'm using 150 tick data. BUt it is clear, that for different instruments needed different time to fill 150 ticks.
But then I run strategy in real time data, it fills orders in the same time - one on bar-closed instrument, but another - during opened bar.
Question. How to set up real-time strategy, that fills orders in two different instruments only on bar close of each instrument. First order must be placed for the first instrument on this instrument's bar close. For the second instrument it must wait for the bar close, and only in that time send order.
Thanks

Comment