Support Board
Date/Time: Wed, 15 Jan 2025 15:25:25 +0000
In ACSIL get a list of all open charts and their studies
View Count: 2106
[2017-07-30 17:50:02] |
User735389 - Posts: 189 |
How do i get a list of all currently open charts, with their corresponding chart number? Along the same lines, for a given chart, how do i get a list of all studies + names?
|
[2017-07-31 18:15:13] |
Sierra Chart Engineering - Posts: 104368 |
This is not so well supported right now but longer-term there are improvements planned. There are currently these functions available: sc.GetChartName() sc.GetStudyNameFromChart() You really just have to iterate through chart numbers starting at 1 and study ID starting at 1 and stop when there are no longer any charts or studies available with the specified number. 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: 2017-07-31 18:16:04
|
[2017-07-31 18:30:28] |
User735389 - Posts: 189 |
If i remember correctly, isn't it possible to have gaps in the numbering? For example, if i opened 3 charts, then closed chart 2, the GetChartName will return empty, even though there are more charts. I think the same thing can happen with studies. Is there a way to just get the total number of charts and studies? Right now my iterator allows for a number of "missed" charts or studies before determining that I have iterated through all the charts/studies to compensate for the gaps. |
[2017-07-31 18:44:50] |
Sierra Chart Engineering - Posts: 104368 |
Yes this is a detail that we did not explain and figured you would recognize. So you probably would want to stop iteration when you have maybe a gap of 10. Is there a way to just get the total number of charts and studies?
No not currently.
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: 2017-07-31 18:45:43
|
[2017-07-31 18:53:20] |
User735389 - Posts: 189 |
bummer
|
To post a message in this thread, you need to log in with your Sierra Chart account: