Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 12:28:41 +0000



[User Discussion] - Getting price for a security other than what's on the chart

View Count: 803

[2017-06-19 04:35:03]
User972044 - Posts: 154
Hello there,

I have a chart that's displaying a security X but I need to also trade the option on security X according to a certain price that cannot be displayed with a chart using ASCIL codes. How do I get the most up-to-date bid & ask price of the option using ASCIL codes in addition to the price of security X? What functions, methods or etc. do I use?

I hope my question is clear. Let me know if you need clarification.

Thank you.
Date Time Of Last Edit: 2017-06-19 04:36:35
[2017-06-19 05:28:29]
Sierra Chart Engineering - Posts: 104368
This is the relevant documentation for this:
ACSIL Programming Concepts: Accessing Current Symbol Data for Other Symbols
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
[2017-06-19 06:13:19]
User972044 - Posts: 154
The documentation states the function to be used is sc.GetBasicSymbolData(). But from the code example stated in the documentation, it seems it is only able to get the daily price data. So if I have this study function in ASCIL codes that is loaded on a 5-min. chart let's say, it would give me the most recent price within the last 5 min.?

Thanks for the prompt response.
Date Time Of Last Edit: 2017-06-19 06:20:10
[2017-06-19 07:01:26]
Sierra Chart Engineering - Posts: 104368
Here is the documentation for that function:
sc.GetBasicSymbolData()

It will provide all of the latest data including the current Bid and Ask prices.
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
[2017-06-19 18:57:33]
User972044 - Posts: 154
I already read that documentation. Would sc.GetBasicSymbolData() give intraday prices if it's loaded on an intraday chart? That's what I would like to know. Because the documentation only gives an example for daily prices and I checked the sc.GetBasicSymbolData() structure members in the scsymboldata.h file as instructed in that documentation, I only found the structure member for daily prices.

Please confirm. If you don't know, can you please ask someone who does. I don't mind waiting.

Thank you for your assistance.
Date Time Of Last Edit: 2017-06-19 18:58:08
[2017-06-20 06:10:29]
Sierra Chart Engineering - Posts: 104368
give intraday prices
We do not know exactly what is meant by 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
[2017-06-20 07:13:41]
User972044 - Posts: 154
If I have the ASCIL code with sc.GetBasicSymbolData() loaded on a 5-min. chart, would the most recent price be from the last 5 min. or from yesterday? Because from the sample code from the documentation and the structure members in the scsymboldata.h file, it only gave daily prices. This is a repeat of my question from Post #3 above. And also I need the most recent bid and ask price? Would this function give those prices as well?

Please confirm. If you don't know, can you please ask someone who does. I don't mind waiting.

Thank you for your assistance.
Date Time Of Last Edit: 2017-06-20 07:14:56

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

Login

Login Page - Create Account