Support Board
Date/Time: Tue, 26 Nov 2024 06:59:26 +0000
sc.SetChartStudyTransparencyLevel not working
View Count: 564
[2023-10-14 01:51:20] |
Mark Lewis - Posts: 25 |
This new function isn't working for me. if (sc.SetDefaults) { sc.SetChartStudyTransparencyLevel(sc.ChartNumber, sc.Input[0].GetStudyID(), 45); } Also, I haven't found any documentation other than a few references on the support boards. Thanks! |
[2023-10-14 17:48:24] |
Mark Lewis - Posts: 25 |
I got it to work using the code below. I'm thinking the study ID isn't available when sc.SetDefaults code is run. if (sc.StudyGraphInstanceID != 0 && sc.Index == 0) { sc.SetChartStudyTransparencyLevel(sc.ChartNumber, sc.StudyGraphInstanceID, 72); } Hope that helps someone else :) |
[2023-10-14 20:05:25] |
Mark Lewis - Posts: 25 |
Ok, so the last post works but overwrites changes to transparency made by the user. Where should sc.SetChartStudyTransparencyLevel() be called to set a default and allow user changes? |
[2023-10-14 20:45:22] |
Sierra_Chart Engineering - Posts: 17179 |
This is the code to use: sc.SetChartStudyTransparencyLevel(sc.ChartNumber, sc.StudyGraphInstanceID, 72);
However, currently this is not going to work in the sc.SetDefaults code block. We are adding support for that but it is not so simple. 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: 2023-10-14 20:45:31
|
[2023-12-30 06:38:44] |
SavantTrader - Posts: 110 |
Dear SC Engineering: On 2023-10-14 you mentioned that sc.SetChartStudyTransparencyLevel would not work in the sc.SetDefaults code block, and that you were adding support for it. As we move into 2024, can you please give me a status update on supporting it in sc.SetDefaults, please. Thank you. |
[2023-12-30 09:03:32] |
Sierra_Chart Engineering - Posts: 17179 |
From what we see support has been added to use that function in the sc.SetDefaults code block. Go ahead and try. And we have confirmed, that it actually does work. 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: 2023-12-30 09:08:31
|
To post a message in this thread, you need to log in with your Sierra Chart account: