Support Board
Date/Time: Sat, 23 Nov 2024 17:12:54 +0000
Accessing sc.Subgraph[].Arrays[][] from a different chart or study
View Count: 2338
[2013-07-24 22:15:58] |
golding - Posts: 18 |
SC, The documentation indicates that a subgraph's extra arrays are for internal use, but I would like to access them from a 2nd, different study on a different chart, coded in another DLL. So study 2 (scsf_study2) on chart 2 wants to read subgraph extra arrays internal to study 1 (scsf_study1), chart 1. Does sc.GetStudyArraysFromChart( chartNum, studyID, graphData ) return pointers to the subgraphs themselves (BaseData[x] ), without performing a physical copy from source to destination study? The following code compiles, altho I haven't tested it. Assuming this is pointer-based, then the code should work and be much more expedient. sc.GetStudyArraysFromChart( chartNum, studyID, sgArrays15secAgent ) ; SCFloatArrayRef StudyArray = sgArrays15secAgent[0]; SCSubgraphRef sgRef = (SCSubgraphRef) sgArrays15secAgent[2]; SCFloatArrayRef myArray = sgRef.Arrays[0]; thx in advance, JG |
[2013-07-25 04:49:59] |
Sierra Chart Engineering - Posts: 104368 |
This will not work properly. We would have to add a function to be able to get the extra study arrays from another chart or study. We will see about that.
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 |
[2013-07-25 11:38:31] |
Sierra Chart Engineering - Posts: 104368 |
This function will be added to the next release: sc. GetStudyExtraArrayFromChartUsingID(int ChartNumber, int StudyID, int SubgraphIndex, int ExtraArrayIndex, SCFloatArrayRef ExtraArrayRef); 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: 2013-07-25 11:38:51
|
[2013-07-25 15:55:51] |
golding - Posts: 18 |
SC, Thanks - to echo what others have said: Excellent customer support, and IMHO, one of the best customer/trader experiences on the internet. Esp. for C++ traders...... JG |
[2013-07-25 15:59:16] |
ganz - Posts: 1048 |
jgolding +1 |
[2013-07-27 01:57:06] |
Sierra Chart Engineering - Posts: 104368 |
This is now released. Although it has not yet been tested. Please test and let us know.
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: 2013-07-27 01:57:33
|
[2013-07-27 16:35:56] |
golding - Posts: 18 |
Tried this with 2 different Arrays; no problems found. thx again for the quick turnaround |
[2013-07-30 22:41:20] |
maxpi - Posts: 181 |
Little doubt that Sierrachart's support is not the fastest and high level. Kudos! That, however, doesn't make me much of a programmer. Could somebody use sc.GetStudyExtraArrayFromChartUsingID in a sentence for me [provide example code]? I have version 997 and can't even get things to build. I don't understand the use of ExtraArrayRef. I suppose that SCFloatArrayRef would refer to a subgraph where I was placing the data gotten from another chart, no? |
[2013-07-30 23:05:26] |
maxpi - Posts: 181 |
I dl'd the prerelease and it will build if I don't use the ExtraArrayRef term: SCFloatArrayRef ReceivedDataFromOtherChart =sc.Subgraph[5]; sc.GetStudyExtraArrayFromChartUsingID(1, 1, 0, 0, ReceivedDataFromOtherChart ); I guess I can make sense out of it... |
[2013-07-30 23:12:11] |
Sierra Chart Engineering - Posts: 104368 |
You need to update to the latest prerelease. Here is a very simple example: SCFloatArray ExtraArrayFromChart ; sc.GetStudyExtraArrayFromChartUsingID(1, 1, 0, 0, ExtraArrayFromChart); if (ExtraArrayFromChart.GetArraySize()>0) { } 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: 2013-07-30 23:13:37
|
[2013-08-02 01:44:34] |
maxpi - Posts: 181 |
The font is horked up in the documentation for this new function
|
[2013-08-02 03:02:48] |
Sierra Chart Engineering - Posts: 104368 |
This has been corrected.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: