Login Page - Create Account

Support Board


Date/Time: Mon, 10 Nov 2025 11:53:38 +0000



Custom Study Menu Items (Order & Nesting)

View Count: 398

[2025-09-14 23:02:29]
User688525 - Posts: 355
Hello Sierra,
I have added a couple of custom studies to a chart which also add menu items to the right-click menu.

I have two questions:
1) How is the sort order defined as I am finding that despite the study load order, one of the custom studies is adding a menu item within the menu items from another study. For example:
- Menu Item #1 (Study #1)
- Menu Item #2 (Study #1)
- Menu Item #3 (Study #1)
- Menu Item #1 (Study #2)
- Menu Item #4 (Study #1)
- Menu Item #5 (Study #1)

2) Is it possible to nest menu items instead of listing them sequentially, as I can then group menu items for each study? For example:
- Menu Item #1 (Study #1)
- Sub-Menu Item #1 (Study #1)
- Sub-Menu Item #2 (Study #1)
- Sub-Menu Item #3 (Study #1)
- Sub-Menu Item #4 (Study #1)
- Sub-Menu Item #5 (Study #1)
- Menu Item #1 (Study #1)

Thank you
[2025-09-17 15:11:59]
Sierra_Chart Engineering - Posts: 21358
We need time to look into this.
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
[2025-10-21 22:28:46]
Sierra_Chart Engineering - Posts: 21358
As we are looking through this, are each of the studies using unique text, different from other studies, for the menu commands?

Basically the ordering is going to be according to the integer identifier assigned to the menu command.
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
[2025-10-24 07:03:06]
User688525 - Posts: 355
Hello Sierra,
Yes, each of the studies uses menu item text from other studies.

I have found that the calculation order is higher for one of the studies even though it is placed lower. I have read Chart Studies: How Calculation Order of Studies Is Determined which explains the calculation order.

Interestingly, if I reverse the study order, then the calculation order also reverses, meaning, study 4 has a calculation order of 3 but when reversed, study 3 then has a calculation order of 4. This also changes the menu order.

Is there a way to specify the calculation order?

Cheers
Date Time Of Last Edit: 2025-10-24 10:26:51
[2025-10-24 19:18:51]
Sierra_Chart Engineering - Posts: 21358
The calculation order is affected by this ACSIL variable:
ACSIL Interface Members - Variables and Arrays: sc.CalculationPrecedence

All of the different custom studies on the same chart, are sharing the same chart menu, and when they use the exact same MenuText parameter in the function sc.AddACSChartShortcutMenuItem, they are sharing the same menu command. The same menu command integer identifier is returned to each of them. You will need to use unique MenuText for each study to keep them separate.

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
[2025-10-24 19:45:21]
User688525 - Posts: 355
Hello Sierra,
Thank you for the sc.CalculationPrecedence function reference.

If I set both custom studies to STD_PREC_LEVEL, will they then be calculated based on based on their position in the Analysis >> Studies >> Studies to Graph, or will this still be overridden by the four levels of precedence outlined on the "Chart Studies: How Calculation Order of Studies Is Determined" page?

*Update: Adding "sc.CalculationPrecedence = LOW_PREC_LEVEL;" to one of the studies has resolved the issue, and adding "sc.CalculationPrecedence = VERY_LOW_PREC_LEVEL;" to other studies beneath the study has resolved the issue. The underlying issue seems to be "Rule #7: Do any of the study's inputs reference another study?" in "How Calculation Order of Studies Is Determined" as more than one study is referencing the same study.
Date Time Of Last Edit: 2025-10-24 21:50:06
[2025-10-24 21:23:28]
Sierra_Chart Engineering - Posts: 21358
There are many complex rules and that is all documented. We cannot answer this type of question.

It is well outside the scope of our support to be asked a question like this. And answer it. We would need the actual chart and do an in-depth analysis of what is happening. Which we will not do.
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: 2025-10-24 21:23:46
[2025-10-24 21:50:28]
User688525 - Posts: 355
Sierra, see the Update above.

Cheers

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

Login

Login Page - Create Account