Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 06:44:32 +0000



[Programming Help] - Using ACSIL to change symbol when invalid symbol is entered?

View Count: 244

[2023-09-12 14:35:16]
User584005 - Posts: 27
Im using a custom study to change tickers on some charts programmatically. Occasionally an invalid ticker makes its way in from my data and blacks out the chart. I then have to manually enter a valid ticker to get it to start using the script again. Is there a good way to do a check to make sure data is coming through and if not default to another ticker?
[2023-09-12 18:30:34]
User584005 - Posts: 27
This custom study im using programmatically changes the Symbol by way of sc.DataFile = CellString + ".scid";
The underlying CellString changes every minute or so but because the Symbol was invalid the chart has no bars and the study doesn't update. So I need to know of a way to force the chart to update reloading the CellString when the symbol prior was invalid.

I tried a few commands like sc.UpdateAlways = 1; but my understanding of this is basic at best and nothing seems to work.

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

Login

Login Page - Create Account