Hi there!
Attached is a notebook where I get stock prices for the current day through USEquityPrices and again through a window_length. I noticed that when the window_length was small (50), I noticed the prices no longer match, even though no other parameters have been adjusted.
In the provided notebook in cell 6, the first row of 'Latest Close' matches the fifth row of 'Offset_close' because the window_length was adjusted to 5. However, when attempting the same example with a window length of 50 in cell 10, the 50th row of 'Offset_close' does not match the first row of 'Latest Close'. Interestingly, the trend of the stock remains the same, but the values are slightly lower than what is expected.
Is this a bug or is this intended behaviour? If it is intentional, how can I adjust these prices so that they match?
Thanks,
Sunny