Support Board
Date/Time: Wed, 30 Apr 2025 07:35:14 +0000
[Programming Help] - Issue with sc.GetSymbolDataValue()
View Count: 66
[2025-04-25 15:38:20] |
LTSys2 - Posts: 25 |
Hi, The bid price being returned from... sc.GetSymbolDataValue(SYMBOL_DATA_BID_PRICE, order.Symbol, 0, 0);
Is adding 2 extra digits to the price? The real price is 5514.00 but the function call returns 551400.00? Is there some setting in SC to get this to return the correct price? TIA |
[2025-04-25 19:18:37] |
Sierra_Chart Engineering - Posts: 19383 |
The price values with that function call will be unadjusted. Get this value with that same function: SYMBOL_DATA_DISPLAY_PRICE_MULTIPLIER And multiply the return value with the price values to get the correct price. 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-04-25 19:19:15
|
[2025-04-25 19:28:21] |
LTSys2 - Posts: 25 |
Thanks... this worked. Here is the code in case anyone comes across the same issue. double multiplier = sc.GetSymbolDataValue(SYMBOL_DATA_DISPLAY_PRICE_MULTIPLIER, order.Symbol, 0, 0); double bid = sc.GetSymbolDataValue(SYMBOL_DATA_BID_PRICE, order.Symbol, 0, 0) * multiplier; Date Time Of Last Edit: 2025-04-26 03:14:23
|
[2025-04-26 03:49:46] |
Sierra_Chart Engineering - Posts: 19383 |
Yes this is correct.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: