Login Page - Create Account

Support Board


Date/Time: Mon, 17 Mar 2025 18:22:49 +0000



[Programming Help] - ASCIL: Problems with GetStudyLineUntilFutureIntersection/DeleteLineUntilFutureIntersection

View Count: 549

[2022-09-16 09:16:50]
StanThompson94 - Posts: 6
Dear Ladies and Gentlemen,

I'm currently in the process of familiarizing myself with creating studies with ACSIL. For this I have now created a study in which I mark high-volume-nodes with a "LineUntilFutureIntersection". This also works fine after adding the study(see attached picture). However, I don't want the lines to be added again with "AddLineUntilFutureIntersection" after each recalculation of the chart, as i saw that the return value of "GetNumLinesUntilFutureIntersection" gets bigger after each recalculation (line 35 of attached file).

So I thought I could call the "DeleteLineUntilFutureIntersection" function when sc.Index == 0 and delete all lines. (lines 38 - 47 of attached file). The problem is that "sc.DeleteLineUntilFutureIntersection()" always returns 0 and no line is deleted...

I tried a lot and then noticed that in line 55 (GetStudyLineUntilFutureIntersection), there is also 0 returned on recalculation, whereas previously (after adding the study/no recalculation) in line 104 a 1 is returned with the same function call...

Can you please tell me what I'm doing wrong here? I'm just getting a bit desperate.

Thank you and best regards
Thomas
Date Time Of Last Edit: 2022-09-16 19:39:38
attachmentTWCodeSierraChartSupport.cpp - Attached On 2022-09-16 09:13:08 UTC - Size: 3.58 KB - 468 views
imageTWPictureSierraChartSupport.png / V - Attached On 2022-09-16 09:13:21 UTC - Size: 106.15 KB - 146 views
[2022-09-16 10:40:24]
Sierra_Chart Engineering - Posts: 18809
First thing we want you to do is to update Sierra Chart to the current version:

Software Download: Fast Update

This may resolve the problem you have. This issue may have already been resolved.

We would have to check the revision history, but it would be easier for you to update and check.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2022-09-16 10:40:40
[2022-09-16 14:57:16]
StanThompson94 - Posts: 6
Hello,

thank you for the fast response. I have updated Sierra Chart. Now it seems, that on each recalculation the linesUntilFutureIntersection are deleted by default, and no actions have to be done by me.
Is that the right behaviour?

Best regards
Thomas
[2022-09-16 15:07:29]
Sierra_Chart Engineering - Posts: 18809
Yes that is what should happen. That is what was always happening but there was another container used for fast lookup of these objects, that was not getting cleared.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-09-16 19:38:56]
StanThompson94 - Posts: 6
Thank you for your fast and great support.

Best regards
Thomas
Date Time Of Last Edit: 2022-09-16 19:39:27

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

Login

Login Page - Create Account