Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 23:24:46 +0000



[User Discussion] - Using ACSIL to change another chart's symbol

View Count: 2103

[2014-04-09 17:26:10]
joshtrader - Posts: 508
I can use sc.OpenChartOrGetChartReference(), sc.GetChartBaseData(), and sc.GetBasicSymbolData() to access another chart's information. However, how can I use ACSIL to change the symbol of another chart?

edit: I also see here ( http://www.sierrachart.com/index.php?l=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scDataFile ) that I can set sc.DataFile to change a symbol and so perhaps this is an option, but how do I do this from another chart's study?
Date Time Of Last Edit: 2014-04-09 17:33:38
[2014-04-09 18:00:24]
joshtrader - Posts: 508
Trying to think through this and posting here for reference.

One possible way to do this is, instead of pushing the change (having chart A change chart B's symbol), to pull the change (have chart B poll chart A and change its own symbol). This could be done with persistent variables.

So for example, set a persistent var in chart A that contains info about the symbol that B should change to (encoded in an integer for example). Chart B checks to see if this persistent variable has changed. It if has, change its own symbol.

If you have a better suggestion I would like to hear it -- this is a bit of a kludge and I would like a cleaner way if possible.
[2015-07-01 12:48:47]
wwwingman - Posts: 185
I wonder if it is possible to read a quote spreadsheet from ACSIL.
If this was possible, you would be able to set the symbols in quote spreadsheet, and with one chart open sequentially all the symbols and make whatever you are looking to compute.

-- W.
[2019-09-09 02:29:33]
seandunaway - Posts: 348
Did you find a cleaner way?
[2024-12-17 05:52:20]
User900285 - Posts: 98
There could be a function added that matches the existing sc.GetChartSymbol function, it could be named sc.SetChartSymbol.

ACSIL Interface Members - Functions: sc.GetChartSymbol()
Date Time Of Last Edit: 2024-12-17 05:52:45
[2024-12-20 18:23:05]
gtaranti - Posts: 94
Maybe it's a little offtopic, but in order to confirm my understanding on this :

There are 2 functions

sc.GetChartSymbol(int chartNo)
sc.GetTradeSymbol()


Do these correspond to the following Chart settings window values?
Symbol
Trade and Current Quite Symbol

Thanks.
[2024-12-20 19:04:12]
gtaranti - Posts: 94
OK, I found out that there are two interface member variables:

sc.Symbol ACSIL Interface Members - Variables and Arrays: sc.Symbol
sc.TradeAndCurrentQuoteSymbol ACSIL Interface Members - Variables and Arrays: sc.TradeAndCurrentQuoteSymbol

that are the ones I need.

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

Login

Login Page - Create Account