Support Board
Date/Time: Thu, 27 Feb 2025 16:21:28 +0000
[Programming Help] - Looking for advise RE: Extend Terminated Line
View Count: 727
[2021-07-12 15:44:19] |
Nick_ON_CAD - Posts: 22 |
Is there a way to extend FROM the terminated line extensions in the Swing High Low study? Example: A swing high/low is extended until future intersection. The line is terminated at the intersection Can I extend that the swing's termination point forward by X bars? I am willing to dig into ACSIL for this but just wanted to see if I was missing a simpler approach, possibly with standard studies. Any input is greatly appreciated, Thanks. |
[2021-07-12 16:20:30] |
User907968 - Posts: 833 |
ACSIL Interface Members - Functions: sc.AddLineUntilFutureIntersectionEx() You could try setting the 'EndBarIndex' member to an appropriate value. |
[2021-07-12 16:35:32] |
Nick_ON_CAD - Posts: 22 |
Thank you. I was looking at the docs for that and interpreted that member as disabling the future intersection: EndBarIndex (int): When this is set to a nonzero value, it specifies at what chart bar index the future intersection line will end. Therefore, it no longer extends until intersecting with a particular price bar. I want to extend from the termination by x bars. Should I store that termination index and price and make a new line from there? I just thought maybe I was missing a better way. Put another way, I want the "lines until future intersection" to overshoot by 10 bars from their actual termination point. Thank you. |
[2021-07-12 16:47:30] |
User907968 - Posts: 833 |
Once you know the termination index (which I assume you are getting using - ACSIL Interface Members - Functions: sc.GetStudyLineUntilFutureIntersection()), you could do as you mentioned above (add a new line) or you could modify the existing line using (ACSIL Interface Members - Functions: sc.AddLineUntilFutureIntersectionEx()) with the 'LineIDForBar' member set.
|
[2021-07-12 17:51:03] |
Nick_ON_CAD - Posts: 22 |
I did exactly that and it works. Thank you for the help.
|
To post a message in this thread, you need to log in with your Sierra Chart account: