My current strategy runs on a default 30min data series and the logic for entries and exits use a secondary 1tick Data series, the entire strategy is housed within the primary data series brackets.
Trading will immediately begin on the open of my chosen 30min bar and will continue trading through the time span of the 30 mins but I'm assuming
that since backtests run OnBarClose it will be called at the end of the bar and will not have a chance to trade intra-bar.
For sake of explaining lets use the 9:30am (30 min bar). If I got this right, the the bar will open at 9:00:01 and close at 9:30:00 but OnBarClose will be called at 9:30:00 and the logic for the entries and exits using 1tick will begin at 9:30:00.
How can I get the entries to begin at the open of the bar and not wait for it to be called when the 30 min bar closes?

Comment