That is in fact what happens, but only if both instruments use the same session template. If both instruments use, say "US Equities RTH", then their bars will be synchronized. If one instrument uses "US Equities RTH" and the other uses "Default 24/7", then the bars will NOT be synchonized, i.e. Closes[0][0] and Closes[1][0] will refer to different days, even though the timestamps on both bars will be 12:00:00AM. (Synchronization can be forced if the chart displays the "Default 24/7" instrument, but forces "US Equities RTH" as the session template).
This is wrong, and can lead to serious and non-obvious errors based on how the session template for a particular instruement is set, or even the chart settings for the Data Series.
The Daily Close is the Daily Close, and shouldn't change based on the Session Template. Session Templates are useful intraday, to exclude after-hours transactions, but they should not change the behavior of Daily analysis.
Please fix this and make sure that Daily bars objects are always synchronized regardless of the instrument session template settings, or the session template setting used in the chart.
How to reproduce:
Choose 2 stocks. In the instrument manager, set the session template for one stock to "US Equities RTH", and the other "Default 24/7". Open a new Daily chart for one stock, and add the Data Series for the other to the chart.
Add the KDTestDaily Indicator (file attached) to the chart, entering the symbol for the secondary instrument as the "Symbol2" parameter. The output window shows that the Bars are not synchronized. If you force "US Equities RTH" on the DataSeries displayed in the chart, the bars in the indicator will now be synchronized.

Comment