Support Board
Date/Time: Wed, 12 Feb 2025 05:28:01 +0000
Issues with sc.GetBasicSymbolData
View Count: 3741
[2017-08-15 21:19:30] |
T29_Dev1 - Posts: 22 |
We started using GetBasicSymbolData and we have a few issues with it: 1. s_SCBasicSymbolData::PriceFormat contains incorrect price format (for ex. I saw 4950 instead 2) 2. I can't see L2 in s_SCBasicSymbolData until I open DoM window for the symbol 3. it's working on 1568 and not working on 1598 version - all fields in s_SCBasicSymbolData == 0 |
[2017-08-15 21:42:25] |
|
1. This does not make sense. There must be some structure member misalignment. Make sure you are using the current Sierra Chart header file, and using the current version of Sierra Chart. There should be no trouble with this whatsoever. It is simply impossible for there to be anything functionally wrong with this in Sierra Chart. We see no reason to even run a test because we know everything would work correct with this. 2. Yes this is correct. You need to set: ACSIL Interface Members - Variables and Arrays: sc.UsesMarketDepthData 3. Sierra Chart needs to be connected to the data feed and you need to be using a symbol that provides current quote data from the data feed. Also make sure you recompile the study function for the current version. It will not work if compiled before version 1576 and a notice is provided about this. 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 Date Time Of Last Edit: 2017-08-15 21:54:59
|
[2017-08-15 22:34:07] |
onnb - Posts: 662 |
2. Yes this is correct.
You need to set: ACSIL Interface Members - Variables and Arrays: sc.UsesMarketDepthData We need to subscribe to many charts for L2 data. Using the method above, we would need to add a study to each chart. Is it possible for you to add an api to set that for a remote chart? Date Time Of Last Edit: 2017-08-15 22:36:04
|
[2017-08-15 22:41:00] |
|
OK we know how to solve this. We will add another integer flag variable to the function to request the market depth data. Really we have to create a new function for this. 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 Date Time Of Last Edit: 2017-08-15 22:41:40
|
[2017-08-17 19:57:57] |
onnb - Posts: 662 |
following up on #1 / #3 #3 works ok after recompile #1 - we will follow up on this after further testing on our end OK we know how to solve this. We will add another integer flag variable to the function to request the market depth data.Really we have to create a new function for this.
In which build is this?
|
[2017-08-17 20:07:44] |
|
This will be in version 1599.
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-05-04 13:09:46] |
TedMar - Posts: 190 |
OK we know how to solve this. We will add another integer flag variable to the function to request the market depth data.
Really we have to create a new function for this. its this funktion sc.GetBasicSymbolDataWithDepthSupport ? how i can access to Symbol DepthLevels?? i can nothing find in s_SCBasicSymbolData Date Time Of Last Edit: 2019-05-04 14:10:35
|
[2019-05-06 20:38:56] |
|
You can use that function but this really is the newer one: sc.GetSymbolDataValue(SymbolDataValuesEnum ValueToReturn, const SCString& SymbolForData = SCString(), bool SubscribeToMarketData = false, bool SubscribeToMarketDepth = false); Did you want to access market depth data for a different symbol or the symbol of the chart the study is applied to? 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-05-06 22:31:33] |
TedMar - Posts: 190 |
Did you want to access market depth data for a different symbol or the symbol of the chart the study is applied to?
i want market depth data for a different symbol , like s_SCBasicSymbolData structure.
|
[2019-05-07 04:41:41] |
|
Ok we will need to add new ACSIL functions to support this.
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-05-08 21:01:22] |
Ackin - Posts: 1865 |
Ok we will need to add new ACSIL functions to support this.
that would be useful+1 |
[2020-09-27 02:50:50] |
onnb - Posts: 662 |
sc.GetSymbolDataValue(SymbolDataValuesEnum ValueToReturn, const SCString& SymbolForData = SCString(), bool SubscribeToMarketData = false, bool SubscribeToMarketDepth = false); Should the above function be working in replay? |
[2020-09-27 09:27:30] |
|
The answer is yes but we need to know what the specific issue you are having is.
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 |
[2020-09-27 16:51:11] |
onnb - Posts: 662 |
double ask_price = sc.GetSymbolDataValue(SymbolDataValuesEnum::SYMBOL_DATA_ASK_PRICE, "EURUSD", true, false);
I'm making this call and getting return value 0. I tried this both on the same symbol that the chart is applied to and a I tried a remote symbol with same result. |
[2020-09-27 22:48:56] |
onnb - Posts: 662 |
One more note, connected to a live feed it works fine
|
[2020-09-28 10:05:48] |
|
We cannot reproduce any problem with this. During a chart replay that line of code does provide a value. And yes you must be connected to the data feed because that is where the data is coming from.
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: