Support Board
Date/Time: Thu, 27 Feb 2025 09:20:02 +0000
Post From: Accessing last visible bar on chart
[2021-06-23 17:48:41] |
skellington - Posts: 14 |
Is there any way to get this dynamically when the user scrolls without setting sc.UpdateAlways to 1? When I do set UpdateAlways = 1, I get the changing value but there is a noticeable delay between scrolling and the value update which I draw as text into the chart. I guess the delay is caused by the 200ms update rate when no new chart data is added. It's not a big deal, but I'm curious how the region study bars seem to update their values perfectly in sync with scrolling, or if I can piggy back onto that system somehow. Also, not sure that I want to update the study continuously just to handle when the chart scrolls. I guess I can add some early out logic if the IndexOfLastVisibleBar doesn't change. |