Login Page - Create Account

Support Board


Date/Time: Sun, 16 Mar 2025 02:16:08 +0000



Post From: GetNumLinesUntilFutureIntersection() Example

[2022-08-03 21:27:15]
QnReally - Posts: 188
Can you please do an example of using GetNumLinesUntilFutureIntersection()?

I believe there is a bug in how it reports the number of lines when counting the lines from scsf_ExtendBarGapUntilFutureIntersection().
1) If I reload a chart with a custom study making a call to GetNumLinesUntilFutureIntersection(), I get increasing number of lines each time I reload my chart. If I stop reloading, it keeps returning the last returned inflated number of lines.
2) Now, if I add any other study to the chart or remove a study from the chart, the number of lines returned by GetNumLinesUntilFutureIntersection() resets back to the correct number! I have no idea how or why this resets the number of lines but the reload/recalculate doesn't.

Please see GetNumLinesUntilFutureIntersection() reports increasing numbers on recalculate if you want to reproduce the issue.

Thanks.