I'm trying to understand why the following values are different if OnData happens once per hour (subscribed to hourly timeframe):

Debug($"Val1: {data[ticker].Price} Val2: {data.Bars[ticker].Close} ");

My understanding is Price is the last price of the period (where new candle starts) and Close is the close of the candle.  Thus the two should be identical?

 

Author

Franky

July 2021