Login Page - Create Account

Support Board


Date/Time: Sat, 15 Mar 2025 16:19:50 +0000



sc.PriceValueToTicks() function can't handle negative values

View Count: 371

[2022-07-21 18:06:24]
DabbaDo - Posts: 148
This method returns an unsigned int, so it returns UINT_MAX (almost) when given a negative price (e.g. from TICK-NYSE)

Maybe not a bug, but a bit surprising.

FWIW,
Dale
[2022-07-21 19:30:10]
Sierra Chart Engineering - Posts: 104368
Will check.
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
[2022-07-21 20:25:11]
Sierra Chart Engineering - Posts: 104368
We are going to update the function to return a 64-bit signed integer.
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:

Login

Login Page - Create Account