Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 23:36:30 +0000



Post From: GetStudyLineUntilFutureIntersection example

[2023-06-30 01:43:49]
User133994 - Posts: 80
Support, et. al.,

While it appears the loop above is easily understood, I continue to fail getting it right.

Would you please post a simple example of how to use:
GetStudyLineUntilFutureIntersectionByIndex

You could simply update this example:
The scsf_SwingHighAndLow study from Studies6.cpp can be updated so that it allows for 'closed' lines to be a different color than 'still extending' lines? That would require using GetStudyLineUntilFutureIntersectionByIndex.

Again, even, just the chunk that uses GetStudyLineUntilFutureIntersectionByIndex would be helpful (including where the looping information is stored/retrieved within the study).

And, there are some nuances that I don't understand:
GetStudyLineUntilFutureIntersectionByIndex assigns 4 parameters, how to iterate properly through this? Is it simply from 0 to (number of total lines)? I've attempted several times and keep checking if lineEndIndex != 0 and exactly 0 lines show 'closed', when on the chart, they've clearly been closed (above/below), and visually the extension stops drawing.
GetStudyLineUntilFutureIntersection only assigns 1 : how is this function to be used in a loop, is the study expected to manage the lineID and indexes and prices for every line in order to use this function?

Thanks in advance