Support Board
Date/Time: Fri, 28 Feb 2025 10:39:07 +0000
Post From: Inconsistent Profile Index Documentation
[2021-08-09 20:39:22] |
ForgivingComputers.com - Posts: 1015 |
The documentation for sc.GetNumPriceLevelsForStudyProfile() (ACSIL Interface Members - Functions: sc.GetNumPriceLevelsForStudyProfile()) says: ProfileIndex: The zero-based index of the volume profile relative to the end of the chart. 0 equals the latest profile in the chart at the end or rightmost side. This needs to always be set to a positive number.
However the documentation for sc.GetStudyPeakValleyLine() (ACSIL Interface Members - Functions: sc.GetStudyPeakValleyLine()) says: ProfileIndex specifies the zero-based index of the profile to obtain the Peak or Valley line from. Effective with version 1843, this can be a negative number. In this case -1 will reference the last profile in the chart. -2 references the second to last profile in the chart and so on.
So Always Positive in one case and negative in the other? It appears sc.GetNumPriceLevelsForStudyProfile() works with negatives. |