Support Board
Date/Time: Tue, 04 Nov 2025 13:23:40 +0000
Working with double type array?
View Count: 1476
|   [2019-11-08 10:09:50]     |  
| GiovanniD - Posts: 41 | 
| 
                Is there a way to define ad use double type arrays? There is a SCFloatArrayRef but not a SCDoubleArrayRef. I see that the time-date use a double arrays, but if I am not mistaken, they are read only and it is not possible to write in them.. Thank's  | 
        
|   [2019-11-08 10:18:33]     |  
| GiovanniD - Posts: 41 | 
| 
                Why double? I attach 2 images where you can see an indicator that I have programmed in PRT time ago and that I can't to carry on Sierra because I believe the float type is not enough for that indicator.. I made several attempts as you can see in the image.. but I am not satisfied ..  | 
        
|          |  
|   [2019-11-11 04:03:25]     |  
|   |  
| 
                Your custom study will have to allocate its own memory for this: ACSIL Programming Concepts: Dynamic Memory Allocations Within Study Instance Or use persistent variables: ACSIL Interface Members - Functions: sc.GetPersistentInt() 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  | 
        
|   [2019-11-11 10:41:05]     |  
| GiovanniD - Posts: 41 | 
| 
                ok, the explanations are clear, but unfortunately they do not solve the problem. In my indicator I need of several calculation of the standard deviation in double format. The compiler has indicated to me that the internal calculation function asks for a float vector at the output: StdDeviation (SCFloatArrayRef In, SCFloatArrayRef Out, int Index, int Length) So I think that the only possibility that I have is to create a function for the calculation of the standard deviation that returns double values, I imagine that there is not an internal function that returns these values, right?  | 
        
|   [2019-11-11 11:45:41]     |  
| GiovanniD - Posts: 41 | 
| 
                Ok, I done a my standard deviation function and works, but let me know if there is a more immediate solution. Thank's  | 
        
To post a message in this thread, you need to log in with your Sierra Chart account:
