I was having trouble getting IB and AB data in sync. One problem is getting the system clock on the same time as TWS. The other was to change the preferences as Bryan said. That seemed to help more than the system clock.
Barry --- In [email protected], "professor77747" <profes...@...> wrote: > > If I use an hourly chart with an hourly bar, does the bar close every > hour at exactly one hour later? > > I have noticed that when I use a 6 hour chart the bars do not close > at exactly 6 hours later. Sometimes there may be up to a ten minute > difference. I have also noticed that if I close AB and reopen it, > sometimes the new bar is there after the backfill. > > I have my base time interval in the database setting set to hourly. > Would it make a difference if I changed it to 1 minute? > > I am trying to duplicate the trades made in the backtest. I know that > the prices will vary, but I would like to have the trades match as > close as possible to the time. I use autotrading with a market order > so the trades are made promptly. > > It is just that some trades are not made because the bar doesn't > close for several minutes after my trading period has closed. > > Thanks, > Tom >
