Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 09:21:19 +0000



Post From: Forcing a chart recalculation within ACSIL

[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