Login Page - Create Account

Support Board


Date/Time: Mon, 16 Jun 2025 14:44:48 +0000



[Programming Help] - Hiding Chart & Sub-Instance Functionality in ACSIL

View Count: 294

[2025-04-24 21:20:06]
User438120 - Posts: 10
Two Questions:

1) Is it possible to hide the chart I've applied my ACSIL study to without opening a new chart? I reviewed the sc.OpenChartOrGetChartReference() function but it seems it can only hide a new chart, unless I'm missing something. I've enabled Destroy Chart Windows When Hidden and use ACSIL to initiate a backtest, but still have to use a keyboard shortcut to manually hide the chart after the backtest starts. I also saw the ACSIL documentation on interaction with menus, control bar buttons, and pointer events but wasn't able to find a control bar option for Hide Window.

2) Is there any ACSIL functionality for getting information on and controlling sub-instances, e.g. get the sub-instance number of the chart the study is currently applied to, open a new chart in a new sub-instance, etc...? I use the Instances to Run on Startup option to open all of the sub-instances I'll need but any additional functionality would be helpful.
[2025-05-05 02:53:37]
User438120 - Posts: 10
A little background for why I need the sub-instance #: I set my sub-instances up by symbol (e.g. main instance is NQ, 1st sub-instance is ES, 2nd sub-instance RTY, etc...) and I'd like to setup a map with the instance # as the key and the symbol as its value so I can develop strategies from my main instance and then push the study collection to all sub-instances which would get the instance # and then apply the correct symbol and start running a backtest. I'd prefer maintaining the sub-instance setup as is because I'm running tick based backtesting going all the way back to 2011 or the earliest available tick data for each symbol and I'm trying to distribute the processing load as much as possible. If there's a better way to accomplish what I'm after, I would greatly appreciate any suggestions.
[2025-05-06 03:19:28]
User438120 - Posts: 10
I'm fairly inexperienced so there were some simple solutions to my questions, comments below if anyone reading this needs help:

1) I found the below post on how to use keyboard shortcuts in ACSIL:
Using Keyboard Shortcuts in ACSIL

2) I'm using the <filesystem> library to get the parent folder (which lists the instance #) of the sub-instance's data folder - example path below:
C:\SierraChart\SierraChartInstance_2\Data\

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

Login

Login Page - Create Account