Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 08:45:57 +0000



Quantity precision not exact

View Count: 231

[2023-03-03 11:38:55]
User251043 - Posts: 46
Hi,

I send a Limit Buy order to the Exchange server and it is accepted and filled later.

The order amount is 0.005, and the server accepts it perfectly; later the order is filled (0.005). The problem is this: my SC terminal insists that the quantity is not 0.005 (the one I typed, the one sent to the server and the one executed in reality), but SC shows me an order fill of 0.004999999999999999, so SC thinks there's a remaining quantity of 8,6e-19. SC recalculate the e-19 as "filled" and then types an order fill triangle of 8,6e-19, so when I open a position of 0.005, instead of seeing 1 triangle, I see 2 triangles. See the attached file. It's very difficult to review the session.

What can I adjust in settings to avoid having that e-19 positions? I suppose it's a problem about floating numbers, but it's quite difficult to follow the session.

Thank you very much.
imageimagen_2023-03-03_123126346.png / V - Attached On 2023-03-03 11:31:28 UTC - Size: 7.01 KB - 69 views
Attachment Deleted.
[2023-03-03 11:40:59]
Sierra_Chart Engineering - Posts: 17225
We need to add a new setting to control the number of decimal places. We will work on that.
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: 2023-03-03 11:41:33

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account