Login Page - Create Account

Support Board


Date/Time: Wed, 12 Feb 2025 14:14:56 +0000



Post From: WhenI Click Chart>>Recalculate sc.GetNumLinesUntilFutureIntersection() Index value Doubles

[2020-10-21 11:12:06]
User253985 - Posts: 23

int Index = 0;
Index = sc.GetNumLinesUntilFutureIntersection(sc.ChartNumber, sc.Input[1].GetStudyID()) -1;
sc.SetSheetCellAsDouble(SheetHandle, 5, 1, Index);

Is above a programming Error on my behalf or is there a fault with the function?
When I Click Chart>>Recalculate the value of Index is added again.

Example. Index Value is 100 and after clicking Chart>>Recalculate it becomes 200, then 300, then 400 etc....
Why is this?
does anyone know?

Thanks