Login Page - Create Account

Support Board


Date/Time: Sun, 11 May 2025 19:03:40 +0000



ACSIL storage of a strings list/array

View Count: 2817

[2016-03-15 23:07:09]
User553714 - Posts: 184
Hi,

I am aware that you can declare global variables of string/char arrays as part of a DLL but I was wondering if you can do this locally within a function in a persistent manner? I don't believe you can do this with persistent variables as a array/string/char type don't exist? I am trying to store a list of symbols (i.e. a watchlist) locally within a function which don't get overwritten or changed when a function returns. I considered using a "sc.StorageBlock" but this only allows for 512 bytes and longer watchlists will exceed this. I also looked at Input/Subgraph arrays but I don't think these are for that purpose, rather they are for calculations.

A solution is to use a Global variable with FreeDLL=0 but when you do this it makes it harder to build the DLL when changes have been made i.e. you have to exit and restart SC, during development this gets tiresome.

At the moment I am continually reading from a file and storing in a global string array with freeDLL=1, although this will have performance issues. Off course I can set freeDLL=1 after development which will allow for persistent storage.

My preference is to try to store locally within a function a list of strings in a persistent manner. Is there a way to do this that I haven't found?

Regards
[2016-03-16 01:23:41]
Sierra Chart Engineering - Posts: 104368
Refer to:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#DynamicMemoryAllocations

You may want to allocate an array of fixed length strings.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2016-03-17 02:56:42
[2016-03-17 02:56:52]
Sierra Chart Engineering - Posts: 104368
We made a correction to the prior post.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account