Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 04:18:15 +0000



ASCIL: Find all chart numbers in a Chartbook

View Count: 1237

[2016-10-10 06:49:09]
User129630 - Posts: 22
I have a Chartbook with many charts. I want to find out (or gather) all the chart numbers in the Chartbook. I can't seem to find any way to do this using the ASCIL functions. Please advise.
[2016-10-10 07:08:38]
Sierra Chart Engineering - Posts: 104368
There is not a way to do this, but this function may be helpful:
sc.GetHighestChartNumberUsedInChartBook
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-10-14 09:13:05]
bjohnson777 (Brett Johnson) - Posts: 284
SC Dev's: Y'all were talking earlier this year about an ACSIL array being added for the open charts in a chartbook. Has this progressed any? What is the expected completion time?

My various index creator programs will use this heavily. I'm also having some problems when trying to access an already open chart window, but a duplicate is opened instead (same time frame). I don't have the time to troubleshoot that right now, though.
[2016-10-14 09:40:54]
Sierra Chart Engineering - Posts: 104368
No we have not done the improvements to ACSIL that we expected to. We are really very behind with development.

We would expect probably to have this out hopefully by the end of the second quarter of 2017.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2016-10-14 09:41:07
[2024-01-05 01:10:06]
User900285 - Posts: 94
Hello,

Sorry for bringing back an old post but I determined that there is something relevant worth bringing up here.

I have determined that sc.GetHighestChartNumberUsedInChartBook() is not a reliable way to obtain the number of charts in a chartbook. What I have seen is that with some chartbooks if a chart is removed, sometimes a chart number can be missing. For example I have a chartbook with 5 charts in it and the highest chart number is #6 and chart #2 is missing.

I have 5 charts total and if I iterated over the number of charts obtained from the sc.GetHighestChartNumberUsedInChartBook() function, it would cause an extra iteration which could cause undefined behavior where an invalid chart number is passed in to another function.

What could solve this is if the chart numbers would automatically adjust themselves whenever a chart is removed from the chartbook.
[2024-01-05 08:02:00]
User431178 - Posts: 541
it would cause an extra iteration which could cause undefined behavior where an invalid chart number is passed in to another function.

I highly doubt any of the built-in functions would cause undefined behavior if passed a non-existent chart number.
If it is your own function causing undefined behavior then that would be on you to figure out.

There is already a function to check if a chart number exists in a given chart book - sc.IsChartNumberExist()

What could solve this is if the chart numbers would automatically adjust themselves whenever a chart is removed from the chartbook.
Automatically break any chart references and linked drawings any time you delete a chart, that sounds like a really great idea...
[2024-01-05 08:35:17]
User900285 - Posts: 94
Was not aware of this function so thank you, will be using it.

For every 15 ideas 1 might be totally wrong, you caught me on a bad one.

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

Login

Login Page - Create Account