Login Page - Create Account

Support Board


Date/Time: Sat, 15 Mar 2025 22:56:21 +0000



GetNumLinesUntilFutureIntersection() Example

View Count: 359

[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.
[2022-08-03 21:38:30]
QnReally - Posts: 188
To be more precise,
1) reload / recalculate (Insert key) increases the lines
2) if I open the Chart Studies (F6) for the chart and then press OK or Apply, the number of lines resets to the correct number.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account