Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 22:25:08 +0000



[Programming Help] - loading data from instruments outside study

View Count: 435

[2022-07-05 20:42:02]
Trader_Rob - Posts: 18
Hello!

I'm developing a custom study to delta hedge options. I'm referencing data for an option contract, as well as a treasury note.

I receive the bid/ask/lasttradedprice by filling a s_SCBasicSymbolData structure for each symbol.

When I add the study to a chart, the prices for these symbols are 0. However, if I open an intraday chart for these symbols, the correct price values are returned. I assume that the .scid files for the symbols are referenced/opened when I create their respective charts, allowing my study to fill the s_SCBasicSymbolData structures.

Is this assumption correct? How could I load the data for these symbols when my study starts up? These symbols won't always be the same, so the study needs to automatically get the data on its own.


Also, I found that the study: "Add Additional Symbol" induced the same behavior. I wanted to look at the source code for it, but my search in ACS_Source didn't find anything. Could you point me to where it is located?

Thank you for your time!

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

Login

Login Page - Create Account