Support Board
Date/Time: Thu, 01 Jan 2026 09:19:30 +0000
Upcoming change to using double instead of float or int
View Count: 55
| [2025-12-31 12:44:07] |
| curious16 - Posts: 15 |
|
I read your announcement (ThreadID=103365) that you want to (or rather have to) move from integer volumes to supporting fractional volumes, and you plan to do this by moving to using double precision instead of float (single precision) for all the sc.Subgraph[] arrays. I fully understand that such fundamental changes sometimes are necessary. However, I must admit I am worried about forcing all data to be handled as 8 byte double precision instead of 4 byte float. For the vast majority of all data items the extra precision is not needed and causes overhead - extra storage, slower loading times, slower processing etc. SC is such a well-written, efficient application, really an exception in a world of poorly engineered, unnecessarily fat software. It would be a pity to see it being bulked up to accommodate some fairly edge-case scenarios. One idea which may perhaps be worth considering is to allow for different data types, e.g., to allow some sc.Subgraph arrays to be <int> or <float> while others are <double>. Of course there is advantage in having a uniform sc.BaseDataIn[][] array of arrays (e.g. addressing multiple values of the same bar using strides), but it seems that most data processing is done on the individual arrays. I often find that having some arrays set to integer would be helpful - maybe this major change is an opportunity to go beyond fixed <float> subgraphs. You surely will consider keeping SC as efficient as possible. Please keep up the excellent work and, if possible, provide options that allow for avoiding using <double> everywhere. Thanks for your great work and all the best for the New Year. |
| [2025-12-31 15:38:56] |
| Sierra_Chart Engineering - Posts: 22129 |
|
We will do testing to see if it would be slower: slower loading times, slower processing etc.
Before the post, we have considered what you are saying, but still at the very least the array used for volume/quantity values must be a double. That is really essential for accuracy. I often find that having some arrays set to integer would be helpful This is why using doubles is better because a double, has enough precision, to represent a four byte integer without any loss or imprecision.Using options when it comes to low-level data arrays adds too much complexity. This is not something that we would do. 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, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2025-12-31 15:39:16
|
To post a message in this thread, you need to log in with your Sierra Chart account:
