Support Board
Date/Time: Sun, 22 Dec 2024 19:24:29 +0000
ACSIL QUESTION DYNAMIC HEADERS
View Count: 1122
[2015-05-22 06:06:08] |
enemyspy - Posts: 306 |
Hi, I have made some modifications to the writebardatatofile study in order to instead output study subgraphs. I have replaced the float references to the OHLC arrays, with the following omitting everything except the key changes: SCSFExport scsf_WriteSGDatatofile(SCStudyInterfaceRef sc) { SCInputRef Separator = sc.Input[0]; SCInputRef UseGMTTime = sc.Input[1]; SCInputRef DateFormat = sc.Input[2]; SCInputRef OutputMilliseconds = sc.Input[3]; SCInputRef StudyReference1 = sc.Input[4]; } if(sc.SetDefaults) { StudyReference1.Name = "Subgraph Input 1"; sc.Input[4].SetChartStudySubgraphValues(1,1,12); return; } SCFloatArray SGInput1; sc.GetStudyArrayUsingID(StudyReference1.GetStudyID(),StudyReference1.GetSubgraphIndex(), SGInput1); //These references are later used to define the string variables below in the exact same way that the original study is done So in the Header section which I have currently modified to look like this: SCString fileHeader; switch(Separator.GetInt()) { case 0: fileHeader = "Date Time SGInput1\r\n"; break; case 1: fileHeader = "Date, Time, SGInput1\r\n"; break; case 2: fileHeader = "Date\Time\SGInput1\r\n"; break; } Is there a way to make the Header references Dynamic based on references to the subgraphs in the original study that I am pulling the SG arrays from so that I do not have to customize them for every application I require this study for? Date Time Of Last Edit: 2015-05-22 06:09:43
|
[2015-05-23 03:53:15] |
Sierra Chart Engineering - Posts: 104368 |
Currently there is no way to get a Subgraph name from another study in ACSIL. Longer-term this capability will be developed. We could quickly add a function to do this, but we really want to add comprehensive and organized support for something like 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 Date Time Of Last Edit: 2015-05-23 03:54:14
|
[2015-05-23 04:20:11] |
enemyspy - Posts: 306 |
I may try writing a function for to do it for learning purposes, and because it would be easier longer term. But I was also thinking that I would have to build it in to each indicator being used, a couple of which I did not write myself or understand. I am wondering if I should create a class file, and build a function which somehow automatically pulls the .name as strings from each indicator. Would it be possible with an approach like this or am I way off base. |
[2015-05-24 06:39:32] |
Sierra Chart Engineering - Posts: 104368 |
Really we have to add a function for you to do this. That really is the only practical way. Let us see what we can 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2015-05-24 18:32:12] |
enemyspy - Posts: 306 |
ok thank you I appreciate your consideration of this, especially considering I doubt it is a very in demand feature. Also if you have a quick and dirty solution, that does not take too much of your time, and then I cannot get it to work. I certainly will not expect additional support to be provided.
|
To post a message in this thread, you need to log in with your Sierra Chart account: