Hi I have a question, I'm trying to compare IB Tws 1H Timeframe with what I got within Amibroker using the IB Plugin, I get different candles ( I think the solution should be done within database settings / intraday settings ) But nothing seems to work. ( I know its my lack of understanding has nothing to do with AB ) but let me explain, tws the trading session starts at 9:30 am and finish 16:00 if I use those settings within amibroker the candles are completely different from the tws candles, and I think that is because in IB the first H1 candle would only have 30 minutes data ( coz it starts at 9:30 am ) , after the first Hour candle every candle would have the complete 1H candle, but in amibroker if I start the trading session at 9:30 the next H1 candle would be 10:30, the next would be 11:30 etc, when I need the candles to mimic the TWS candles to have the exact same chart. any ideas?
not sure what you are trading and on which exchange but the session for US futures starts at 6PM (or 18 hours) and ends at 5PM (17 hours) the next day. So the week starts at Sunday 6PM. I think the reason why you get different candles is that you use a half hour. Anyways, this is what I use. It works for me. I also have a timeshift of -6 since I am in W-Europe area.
@empottash is right. The thing is that you did not define session hours. By default opening time is 9:30AM and in Tools->Preferences, "Intraday" you have "Align minute bars to regular market hours" turned ON.
This setting tells AmiBroker to START the candle at session start (i.e. 9:30).
If you want hourly candle to start at 9:00 you have to either change session start time OR turn OFF this "align minute bar to regular market hours" box.