Support Board
Date/Time: Mon, 30 Jun 2025 21:54:19 +0000
[Programming Help] - GetStudyLineUntilFutureIntersectionByIndex() 😜
View Count: 701
[2020-09-30 17:07:26] |
User253985 - Posts: 23 |
Can you help? I'm having problems with the Function sc.GetStudyLineUntilFutureIntersectionByIndex() ACSIL Interface Members - Functions: sc.GetStudyLineUntilFutureIntersectionByIndex() Below makes SierraChart crash. There is no sample code for me to look at either. Any help would be appreciated. Thank you :) // choose spreadsheet to put data on const char* SheetCollectionName = "IntersectionTester"; const char* SheetName = "Intersection"; void* SheetHandle = sc.GetSpreadsheetSheetHandleByName(SheetCollectionName, SheetName, false); int LineID = 1; int Intersected = 0; int c = 1; for (int b = sc.ArraySize; b >= 0; b--) { sc.SetSheetCellAsDouble(SheetHandle, 3, c, Subgraph_Price[b]); sc.SetSheetCellAsDouble(SheetHandle, 2, c, b); /* int GetStudyLineUntilFutureIntersectionByIndex( int ChartNumber, int StudyID, int Index, int& r_LineIDForBar, int& r_StartIndex, float& r_LineValue, int& r_ExtensionLineChartColumnEndIndex); */ int intersect = sc.GetStudyLineUntilFutureIntersectionByIndex( 1, 1, b, LineID, b, Subgraph_Price[b], // comes from SCSubgraphRef Subgraph_Price = sc.Subgraph[0]; Intersected ); sc.SetSheetCellAsDouble(SheetHandle, 4, c, intersect); //puts data on spreadsheet c++; //puts info on next row of spreadsheet Date Time Of Last Edit: 2020-10-01 16:15:58
|
To post a message in this thread, you need to log in with your Sierra Chart account: