Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 20:26:38 +0000



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

View Count: 1878

[2014-04-09 17:26:10]
joshtrader - Posts: 439
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: 439
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: 213
Did you find a cleaner way?

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

Login

Login Page - Create Account