Support Board
Date/Time: Wed, 27 Nov 2024 10:39:30 +0000
Post From: How to keep historical data consistent with real-time when referencing other time Frames
[2023-08-31 16:27:52] |
User372608 - Posts: 3 |
Hello, When using sc.GetContainingIndexForDateTimeIndex to obtain the corresponding index for data from another chart: For example, if the current chart uses 1-minute bars and the other chart uses 1-hour bars, the corresponding index for the 1-hour bars always represents the ending data when driving indicators on historical bars in the 1-minute chart. If it's real-time quotes, then the close of the 1-hour bar and the close of the 1-minute bar are consistent. I want to be as consistent as I am with backtesting or live data, what should I do? |