Support Board
Date/Time: Sat, 30 Nov 2024 00:40:42 +0000
[Programming Help] - ACSIL LineUntilFutureIntersection modification after creation
View Count: 606
[2022-12-21 09:18:46] |
User293778 - Posts: 20 |
Hi, Is there a way to modify after creation a line until future intersection created with ACSIL's sc.AddLineUntilFutureIntersectionEx() function? I would like to be able to control with its .EndBarIndex parameter when the line ends and I would in some cases also be able to modify its .LineValue2ForRange parameter but I can't find the way to do any of that after line creation. I have tried iterating through all lines created with sc.GetStudyLineUntilFutureIntersectionByIndex() up to sc.GetNumLinesUntilFutureIntersection() and I can easily get the parameters of each line but it doesn't seem possible to modify them?? Isn't there a """sc.SetStudyLineFutureIntersectionByIndex()""" function or similar, that allows access to the structure and modification of all line parameters, even color and/or transparency, after creation? Should I use ACSIL drawing tools for that instead, like rectangles? Thanks |
[2022-12-21 10:24:37] |
User431178 - Posts: 545 |
From the documentation for both the AddLineUntil..... functions: When you want to update the line, specify the same LineIDForBar as was previously specified.
sc.AddLineUntilFutureIntersection() sc.AddLineUntilFutureIntersectionEx() So in answer, you use the exact same function to modify as add (once you have obtained the LineIDForBar and StartBarIndex parameters). Date Time Of Last Edit: 2022-12-21 10:25:04
|
[2022-12-22 09:33:08] |
User293778 - Posts: 20 |
Thanks, that is right but then I lose the other line parameters that cannot be retrieved via Get, like color, value2, transparency and so on. Color and transparency would be easy to recreate because they are dependant on a Subgraph input but .useLineValue2 and .Value2ForRange cannot be recreated when updating the line and those are the ones that I really need because i am trying to do a "range"-extend until future intersection.
|
[2022-12-31 07:23:44] |
User183724 - Posts: 183 |
could you save the .useLineValue2 and .Value2ForRange (persistent variables??) before calling the function and then set everything back afterward?
Date Time Of Last Edit: 2022-12-31 07:26:51
|
To post a message in this thread, you need to log in with your Sierra Chart account: