Support Board
Date/Time: Sun, 11 May 2025 21:21:42 +0000
Copy S
View Count: 948
[2018-01-07 07:02:15] |
User563013 - Posts: 11 |
I am trying to copy data out from a different study, I access the data with sc.GetStudyArraysFromChartUsingID which needs a SCGraphData variable to copy data into. The problem is now I need to use it as an SCFloatArray. Neither TempArray1 or TempArray2 receives the value (at least in the visualstudio debugger. How can I copy SCGraphData to an SCFloatArray? SCGraphData Temp;
sc.GetStudyArraysFromChartUsingID(sc.ChartNumber, 1, Temp); SCFloatArray TempArray1 = Temp.InternalAccessBaseDataArray(sc.ArraySize - 1); SCFloatArray TempArray2 = Temp[sc.ArraySize-1]; |
[2018-01-07 09:44:27] |
|
This is how you would do it: SCGraphData StudyGraphData;
sc.GetStudyArraysFromChartUsingID(sc.ChartNumber, 1, StudyGraphData); // Get reference to first subgraph SCFloatArrayRef Array1 = StudyGraphData[0]; // Get last value in array float LastValue = Array1[Array1.GetArraySize() - 1]; 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: 2018-01-07 10:09:13
|
To post a message in this thread, you need to log in with your Sierra Chart account: