Support Board
Date/Time: Thu, 28 Nov 2024 22:48:10 +0000
ACSIL - sc.GraphRegion
View Count: 1933
[2016-05-28 11:49:11] |
User64630 - Posts: 19 |
SC Team - I have a problem with sc.GraphRégion and appreciate if you can provide some answer: I created a Custom Study SCDLLName"Example" with 3 SCSFExport : - SCSFExport scsf_A : sc.GraphRegion = 0 (Chart Region 1 : Main price) - SCSFExport scsf_B : sc.GraphRegion = 1 (Chart Region 2) - SCSFExport scsf_C : sc.GraphRegion = 1 (Chart Region 2) but SCSFExport scsf_C is draw in GraphRegion = 2 (Chart Region 3) Thks |
[2016-05-28 12:19:40] |
Sierra Chart Engineering - Posts: 104368 |
Refer to: https://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#NotAllowingStudySubgraphSettingsChanges The section linked to is about study Subgraphs, but it generally applies in this case and to anything you do not want changed. 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 |
[2016-05-30 10:11:00] |
User64630 - Posts: 19 |
thks for your reponse When I created a Custom Study SCDLLName"Example" with 3 SCSFExport : - SCSFExport scsf_A : sc.GraphRegion = 0 (Chart Region 1 : Main price) : and not modifiable by the user interface and it's ok - SCSFExport scsf_B : sc.GraphRegion = 1 (Chart Region 2) : and not modifiable by the user interface and it's ok - SCSFExport scsf_C : sc.GraphRegion = 1 (Chart Region 2) : and not modifiable by the user interface but not ok but SCSFExport scsf_C is draw in GraphRegion = 2 (Chart Region 3) but i want this scsf_C applies in GraphRegion 1 as expected in the settings and not in GraphRegion 2. I hope I'm clear enough in explaining my problem. Thks |
[2016-05-31 07:49:35] |
Sierra Chart Engineering - Posts: 104368 |
We are testing 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2016-06-01 00:26:27] |
Sierra Chart Engineering - Posts: 104368 |
We tested this and the Chart Region does work properly when always set in the study function. It is set to Chart Region 2 in this particular case: /*==========================================================================*/ SCSFExport scsf_TestFunction3(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Test Function 3"; sc.AutoLoop = 1; sc.FreeDLL = 0; sc.StudyVersion = 1; sc.Subgraph[0].Name = "Test"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE; return; } sc.GraphRegion = 1; sc.Subgraph[0].Data[sc.Index] = sc.Close[sc.Index]; } 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 |
[2016-06-01 03:11:19] |
User64630 - Posts: 19 |
Ok thks i'll test
|
[2023-03-20 11:15:57] |
User92573 - Posts: 530 |
Dear Support I have posted a question regarding this in another thread but this is newer. This solution does not work for me whether the sc.GraphRegion = 1 is set in sc.SetDefaults or the study function as suggested above. if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "My Syudy for Region 1"; sc.ValueFormat = VALUEFORMAT_INHERITED; sc.AutoLoop = 1; sc.GraphRegion = 1; // this still places the study in the last region + 1 sc.CalculationPrecedence = LOW_PREC_LEVEL; / return; { // do processing sc.GraphRegion = 1; // this still places the study in the last region + 1 Any help appreciated. Many thanks. Date Time Of Last Edit: 2023-03-20 11:16:50
|
[2023-03-21 01:02:52] |
ForgivingComputers.com - Posts: 960 |
Your last curly bracket is backward. if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "My Syudy for Region 1"; sc.ValueFormat = VALUEFORMAT_INHERITED; sc.AutoLoop = 1; sc.CalculationPrecedence = LOW_PREC_LEVEL; return; } // do processing sc.GraphRegion = 1; // now this is below the setdefaults block. Date Time Of Last Edit: 2023-03-21 01:03:06
|
[2023-03-21 20:18:19] |
User92573 - Posts: 530 |
Yes the curly bracket wasn't in my code it was just an error I made when I typed the reply. Sierra Chart engineering was this definitely tested when region 1 was already occupied with another study? I'm only getting a problem when the region 1 + etc etc already has a study. Irrespective of where I place "sc.GraphRegion = 1" it still display's in the next region i.e GraphRegion 2, despite the being nothing related to GraphRegion 2 in my code... only region 1. Many thanks. Date Time Of Last Edit: 2023-03-21 20:20:03
|
[2023-03-21 22:28:22] |
John - SC Support - Posts: 36350 |
We just tested to make absolutely sure, and when we have sc.GraphRegion outside of the sc.SetDefaults code block, the study gets drawn to the specific region that we have in the code, even if another study is already there, it then draws it with the other study.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-03-22 01:40:22] |
User90125 - Posts: 715 |
John, Can this persistent setting of sc.GraphRegion outside of the sc.SetDefaults code block be overridden by a user-selectable Chart Region when the study is selected? Date Time Of Last Edit: 2023-03-22 11:58:47
|
[2023-03-22 09:32:33] |
User92573 - Posts: 530 |
No, its not working for me irrespective of where it's placed. Please see the thread below as after starting this request I realised I had missed an earlier thread. I've continued this question in the following. How to set ChartRegion of study correctly? Current position is that I am still trying to resolve this. I cannot seem to get the outcome expected although a long time ago I'm sure that I had no issue setting GraphRegion in defaults. Currently wherever I place it it still looks for the next available region and places the study there. Please add any further comments in the other thread.
|
To post a message in this thread, you need to log in with your Sierra Chart account: