Support Board
Date/Time: Thu, 03 Dec 2026 12:42:15 +0000
ACSIL Adding/removing multiple studies
View Count: 348
| [2026-10-13 23:55:36] |
| User553714 - Posts: 186 |
|
At the moment there are sc.AddStudyToChart() & sc.RemoveStudyFromChart() which work fine but they recalculate each time a study is added to the chart which is not desirable when adding many studies. Can you please consider adding sc.AddStudiesToChart() & sc.RemoveStudiesFromChart() which would allow you to add multiple study names (an array?) all at once with a single FullRecalculation after they are added. I am aware of study collections but this does not suit my needs due to regular compilation of studies. |
| [2026-10-14 01:36:41] |
| Sierra_Chart Engineering - Posts: 25539 |
|
We understand the problem. We will have a solution to this out in the next release. There is nothing special that you would need to do and no need for new functions. These are already done in a batch anyway. On a delay. We are just going to delay the recalculate. 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 |
| [2026-10-14 23:08:58] |
| Sierra_Chart Engineering - Posts: 25539 |
|
The above change has now been released. Update to the current version. Let us know how it works.
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 |
| [2026-10-15 02:07:10] |
| User553714 - Posts: 186 |
|
I am having a few issues with the new versions; sc.AddStudyToChart works better; When I add the studies via custom button click for the very first time, you can see them added onto the chart and then it will flash during the recalculation and my lines appear. However after removing and adding via button click for a 2nd time, the studies are added to the chart but the recalculation does not occur and I have to manually recalc (chart studies >> ok) to get lines to appear sc.RemoveStudyFromChart is far more problematic for me as I get CPU exceptions (probably due to dangling pointer issues but I am unsure without knowing the recalculation sequence during removal) I am correctly calling sc.LastCallToFunction and using delete to release dynamic memory for each study and I had no issue with CPU exceptions on the old version of the function. I would greatly appreciate you reinstate the old function versions as I had very stable systems based on those which is far more important than having to deal with multiple recalculations. If you're willing to save the current versions with new names I would continue testing and will likely use a combination; probably the new version of sc.AddStudyToChartNew, and the old version of sc.RemoveStudyFromChart which for my use case is probably best. Otherwise I will just use the older versions for stability reasons. |
| [2026-10-15 03:28:28] |
| Sierra_Chart Engineering - Posts: 25539 |
|
We will revert the changes. But this is surprising unless charts are being closed by ACSIL. And we now realize if a chart is being closed, due to the delayed recalculation, Sierra Chart could be trying to perform calculations on an invalid chart pointer.
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: 2026-10-15 03:28:37
|
To post a message in this thread, you need to log in with your Sierra Chart account:
