Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 09:00:08 +0000



Forcing a chart recalculation within ACSIL

View Count: 2440

[2013-04-07 07:00:50]
joshtrader - Posts: 488
I am using SetStudyVisibilityState(int studyID, int visibleState) to hide/show a study (strangely enough, visibleState set to 1 hides, and 0 shows).

However, the chart requires a recalculate to properly reflect the changes (right now for example, markets are closed, and when I click the custom menu item I have created, the study is not hidden because the chart is not being recalculated).

1) So, how can I force a recalculate from within my code? I have tried setting sc.updateAlways to 1, but that does not seem to have any effect here.

2) If I have a study that uses transparent (inefficient) graphics in another chart being copied to my chart using the study/price overlay study, and if the study/price overlay study is hidden, will I see a performance decrease, even though it is hidden?

3) Is there a way to put a check mark beside a custom menu item created with sc.AddACSChartShortcutMenuItem() to show which item is currently selected?
Date Time Of Last Edit: 2013-04-07 07:03:20
[2013-04-07 08:34:30]
Sierra Chart Engineering - Posts: 104368
(strangely enough, visibleState set to 1 hides, and 0 shows).
Fixed.

1. The underlying problem has been fixed.

2. No.

3. We will see.
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
[2013-04-07 23:43:46]
joshtrader - Posts: 488
Thanks for fixing this so quickly. On a related note regarding the SetStudyVisibilityState() function, is there a getStudyVisibilityState(int studyID)? I don't see documentation for it, but I don't see another way to know if the study is visible to begin with, which would be a good thing to know in certain cases.
[2013-04-26 23:56:09]
joshtrader - Posts: 488
Just doing a bump on this -- is there a way for me to check from ACSIL code whether a study is currently hidden or visible?
[2013-04-29 18:09:10]
Sierra Chart Engineering - Posts: 104368
3. This capability has been added. Refer to this page:
http://www.sierrachart.com/index.php?l=doc/doc_MouseAndMenuInteractionFromACStudy.html#scSetACSChartShortcutMenuItemDisplayed


4. We will add sc.GetStudyVisibilityState
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
[2013-04-29 18:27:50]
joshtrader - Posts: 488
3. Thank you, I have been using this the last few days in my code and it works very well.

4. Even more thank you! Do you know if this will make the next prerelease?
[2013-04-29 20:34:31]
Sierra Chart Engineering - Posts: 104368
4. Yes
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

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

Login

Login Page - Create Account