Quote from kostia00:
IB's line charts display opening and closing values correctly, and use VWAP of equal-length time periods for inner points (in case of Lasts) and time-weighted price for bid/ask/midpoint.
Yes, IB does what it does correctly, but what it does is nowhere near as useful as the way QT displays line charts. QT line charts do not summarize prices by averaging them over intervals, like IB. QT line charts instead summarize prices by including the extreme values in each summarized interval. I don't mean the high and low of the entire chart; I mean if the chart is broken up into 5-second intervals, QT will display the high and low occurring within each 5-second interval. QT's approach is vastly different and more useful. Try collecting intraday chart data in real time under QT (don't use IB backfill which has far less detail), and then compare the QT line chart to an IB line chart. Make sure, before accumulating the data, that QT's "weeding points" option has not been selected. You will notice the QT line charts contain enormously greater and more useful amounts of information than do the IB line charts.
I notice, from your posting, that my description of IB's algorithm for summarizing line chart data is somewhat more complex than I had assumed, because the algorithm uses volume or time weighted averages, of which I was not aware. I apologize for making and stating incorrect assumptions based on my experience with the charts. These details, however, do not negate my suggestion, that the line charts would be far more useful if VWAP and TWAP were replaced by QT's approach to line charts.
Now that I am thinking about it, it occurred to me that some people might actually appreciate line charts based on VWAP or TWAP prices, so that IB's approach does have more merit than I had previously thought. So I would change my suggestion to providing a user-selectable option: let the user either display extreme values like QT line charts, OR go with the traditional IB VWAP/TWAP method for line charts.
I would also note that QT allows the user to display charts using its standard method of including highs and lows, as I suggested, but that QT also allows the user to construct line charts based on TWAP and VWAP methods like IB.
I'm not trying to beat up IB here - I'm trying to be helpful, since IB seems quite committed to continually improving its charting. I think that this one improvement would make a very big difference.