Support Board
Date/Time: Tue, 04 Nov 2025 08:13:07 +0000
Inconsistent Profile Index Documentation
View Count: 626
|   [2021-08-09 20:39:22]     |  
| ForgivingComputers.com - Posts: 1153 | 
| 
                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.  | 
        
|   [2021-08-11 11:46:12]     |  
|   |  
| 
                We are checking on this.
                 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  | 
        
|   [2021-08-11 11:48:36]     |  
|   |  
| 
                The documentation is correct. The implementation does match the documentation.
                 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  | 
        
To post a message in this thread, you need to log in with your Sierra Chart account:
