Hello,

I've been working with a 5-minute consolidator in QuantConnect and have noticed some discrepancies between Live and Backtest runs. I'm new to QC and I'm not sure if I've set things up correctly. See attached backtest. Here are the issues I've encountered:

1. Backtest vs Live Data: The 5-minute prices from my Backtest runs do not match the prices from my Live runs. For instance, the price of the 5-minute bar ending at 15/05/2024 11:15:00 in the Live run does not match the price of the bar with the same end time in the Backtest run. This discrepancy is not isolated but occurs for most of the 5-minute prices. I've attached a spreadsheet for reference.

2. Live Data Accuracy: During the Live run, I noticed that the prices of the 5-minute bars do not match the prices of the corresponding 1-minute bars. For example, the price of the 5-minute bar ending at 15/05/2024 11:15:00 is not the same as the price of the 1-minute bar ending at the same time.

quanttrader_1_1716225574.jpg

 

I would greatly appreciate any guidance or suggestions on how to address these issues. Thank you in advance for your help.

Excel spreadsheet:

https://www.dropbox.com/scl/fi/u3trisuscaazmlqcompj1/Discrepancies_5Min_Consolidator.xlsx?rlkey=bpbzwvlmc128vdzkp92ju82a4&st=7os4hau3&dl=0

Thank you

QT