Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 18:16:31 +0000



USING THIRD PARTY DLLs IN SIERRA CHART

View Count: 1913

[2016-12-20 08:27:01]
michelh - Posts: 159
Hi SC Engineering,

I am trying to use a 3rd party dll to create a custom study for SC. The 3rd party dll is already compiled so I do not have the source code. I have some general questions about this and would appreciate your guidance.

1) This 3rd-party DLL was build using Visual Studio 2008 (C++) on an 32-bit Windows platform.
2) I use Sierra Charts on 64-bit platform.
3) The 3rd-party DLL accepts a string input, integer and double input parameters, integer and double arrays, and returns integer and double array references.
4) I plan to invoke the DLL functions at the close of each bar.

I have the following questions :
1) What is the best way interface with a DLL from ACSIL ? Should I use a wrapper to encapsulate the features of the DLL ?
2) Are there any potential Unicode issues between ACSIL and interfacing with the DLL ?
3) The indicator will be run on larger number of charts concurrently. Does Sierra Charts or ACSIL have any rules or guidelines on multi-threaded DLLs ?
4) If the DLL takes too much time to process, will it freeze the Sierra Charts terminal, or are the DLL functions called from a separate thread ?
5) Will using exception handling (try-catch) slow down the ACSIL indicator ?
[2016-12-20 09:14:18]
Sierra Chart Engineering - Posts: 104368
1. Refer to:
ACSIL Programming Concepts: Making Function Calls to External DLLs

2. No. Just make sure you pass the proper type of strings which the function is expecting. Either single byte or Unicode.

3. Multithreading can be a problem. Study functions are called on the main thread of Sierra Chart. Really this question is impossible for us to answer because we do not know exactly what the DLL is doing.

4. Yes the main thread of Sierra Chart would freeze.

5. No we would not think so.
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-12-20 09:14:41

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

Login

Login Page - Create Account