Support Board
Date/Time: Wed, 15 Jan 2025 16:21:32 +0000
How to find symbol for option
View Count: 3166
[2017-06-03 22:49:17] |
User972044 - Posts: 154 |
Hi there, I am trying to display quotes and option chains for an option. I am with IB and I do have market data subscription for all options but when I go to "File-Find a Symbol", I cannot find options in the choice, just stocks, CFD's and etc. Please help. Thank you. |
[2017-06-06 06:57:05] |
Sierra Chart Engineering - Posts: 104368 |
The Interactive Brokers options symbol format is documented here: Interactive Brokers Symbols: Options Format Option chains are not supported in Sierra Chart. 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-06 07:17:28] |
User972044 - Posts: 154 |
I have visited the link already and am aware of the format of option symbols for IB. My question is how do I pull up these option symbols in Sierra Charts let's say for a chart? If you go to "File - Find a symbol" in Sierra Charts, you don't see a category for "Option", so how do I pull up an option in Sierra Charts? That's my question. Thanks |
[2017-06-06 08:30:42] |
Sierra Chart Engineering - Posts: 104368 |
You cannot. You must manually enter the symbols. This is explained on this page: Interactive Brokers 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-25 22:02:01] |
User972044 - Posts: 154 |
The Interactive Brokers options symbol format is documented here:
Interactive Brokers Symbols: Options Format Can those symbols be in C++ string format or do they have to be in SCSTRING format when I use them in my ACSIL codes? Thanks |
[2017-06-26 15:23:05] |
Sierra Chart Engineering - Posts: 104368 |
This question does not make sense. A symbol text string is a text string. The object type it is assigned to or contained in, is irrelevant. This is not a question that makes any sense being asked to begin with. 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-06-26 15:23:36
|
[2017-06-26 17:15:41] |
User972044 - Posts: 154 |
What I am trying to ask is what variable types of text string does s_SCNewOrder::Symbol take when I need to use this function, is it SCSTRING, C++, const* char ? Sierra Charts chooses to create another class SCSTRING to be used for text strings in certain study functions, class structure members and etc. instead of just allowing the more intuitive and comprehensive C++ string class to be used and sometimes it insists on const* char to be used, so I need to ask in order to program accordingly. May I make a suggestion to you? When you are not able to understand a user's question, can you please just ask the user to clarify instead of just dismissing user's question as "does not make sense"? Many times, I have to simplify my question because when my question is too long and too specific, you won't understand either. So if the question is too simple and you need more information, just ask the user to clarify. Much appreciated. Anyway, I think I found the answer, am testing it right now just to be sure. Date Time Of Last Edit: 2017-06-26 17:20:40
|
[2017-06-26 17:50:39] |
Sierra Chart Engineering - Posts: 104368 |
What I am trying to ask is what variable types of text string does s_SCNewOrder::Symbol take
It does not matter. It can be a plain C++ string or a SCString or a C++ string class when using the c_str() function.
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-06-27 18:17:54
|
[2017-06-26 19:57:04] |
User972044 - Posts: 154 |
Well actually it does. For the study function sc.GetBasicSymbolData(Symbol,BasicSymbolData, true), the first parameter "Symbol" can only take const char*. I tried to pass a C++ string to it and I received an compiling error saying that the parameter is of the wrong type and cannot be converted. I had to use a const char*; I couldn't even use SCSTRING. So maybe for s_SCNewOrder::Symbol, it does not matter but for the sc.GetBasicSymbolData(Symbol,BasicSymbolData, true) function, it does, that's why I asked. I actually would love it that it does not matter either for that "Symbol" parameter for the sc.GetBasicSymbolData(Symbol,BasicSymbolData, true) study function because I wanted to pass a whole bunch of option symbols with different strike price to that function to get different prices and I couldn't; I had to use const char* and please correct me if I am wrong, const char* is a pointer to an immutable variable, a constant that cannot be changed. I had to use a different constant for each different option just because of the different strike price or choose to be stuck with just one option symbol. So if you tell me that const char* is the same as any text string that's extracted with the c_str() method from the C++ string class, then I would love to try it with the sc.GetBasicSymbolData(Symbol,BasicSymbolData, true) study function. Anyway, thanks for the reply. Date Time Of Last Edit: 2017-06-26 22:12:45
|
[2017-06-27 18:19:13] |
Sierra Chart Engineering - Posts: 104368 |
Refer to the examples here: http://www.sierrachart.com/index.php?page=doc/ACSILProgrammingConcepts.html#FunctionsThatUseConstantCharacterPointerOrSCStringParameters 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-27 20:55:21] |
User972044 - Posts: 154 |
Appreciate the addition in documentation to clarify but as far as I know "AddMessageToLog" is a function sc.AddMessageToLog() according to the documentation sc.AddMessageToLog() not just "AddMessageToLog". I don't know if that "sc" before the function name makes a difference. Thanks Date Time Of Last Edit: 2017-06-27 20:55:50
|
[2017-06-27 21:06:03] |
Sierra Chart Engineering - Posts: 104368 |
Yes that is true. We just quickly put that together this morning. We will correct the documentation.
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: