Hi all,
I'm trying to build a program that will construct chart bars in real time from IB's data feed.
For example, once the program has established a connection to IB's feed and is actively listening for raw streaming ticks, I'd like to build the following OHLC bars:
1) x-minute bars
2) y-tick bars
3) z-share bars
I'd also like to create an integer variable called "SessionMarker" which takes the value "1" at the close of the first bar of the session, and "0" for all other bars.
For example:
Instrument: ESM07
1) 5-minute bars
2) 100-tick bars
3) 500-share bars
Does anyone have any experience with the code needed to do this?
Thanks,
RoughTrader
I'm trying to build a program that will construct chart bars in real time from IB's data feed.
For example, once the program has established a connection to IB's feed and is actively listening for raw streaming ticks, I'd like to build the following OHLC bars:
1) x-minute bars
2) y-tick bars
3) z-share bars
I'd also like to create an integer variable called "SessionMarker" which takes the value "1" at the close of the first bar of the session, and "0" for all other bars.
For example:
Instrument: ESM07
1) 5-minute bars
2) 100-tick bars
3) 500-share bars
Does anyone have any experience with the code needed to do this?
Thanks,
RoughTrader