Support Board
Date/Time: Mon, 25 Nov 2024 15:43:42 +0000
Post From: ACSIL - Couple of questions on sc.GetStudyArrayUsingID
[2016-11-05 22:22:19] |
ejtrader - Posts: 688 |
SC team - Running into an issue with GetArraySize() as it seems to return the value much smaller than GetNearestMatchForDateTimeIndex() function. Would you please let me know if GetArraySize function is correct? I understand that this is somewhat of a programming help. But this is very simple form and unable to understand the reason why this would return smaller size. All functions are built-in functions. Appreciate if you could check and confirm if there is indeed an issue with SCGraphData.GetArraySize() function or not. Just trying to determine the exact number of elements in ReferenceArrays and assuming ReferenceArrays.GetArraySize() is the correct function to use for this purpose. SCGraphData ReferenceArrays; sc.GetChartBaseData(sc.ChartNumber, ReferenceArrays); int RefDataIndex = sc.GetNearestMatchForDateTimeIndex(sc.ChartNumber, sc.Index); SCString Message; Message.Format("GetArraySize: %d", ReferenceArrays.GetArraySize()); sc.AddMessageToLog(Message, 0); Message.Format("RefDataIndex: %d", RefDataIndex); sc.AddMessageToLog(Message, 0); PS: Please do not mark it as programming help as I am really stuck on this - and just not able to think of a reason for this behavior. Thanks. Date Time Of Last Edit: 2016-11-05 22:37:50
|
sc_GetArraySize_issue.jpg / V - Attached On 2016-11-05 22:21:30 UTC - Size: 27.13 KB - 295 views |