Login Page - Create Account

Support Board


Date/Time: Sat, 15 Mar 2025 16:07:50 +0000



[Programming Help] - SCStudyFunctions.cpp modification of funcitons

View Count: 568

[2022-07-27 02:21:13]
User857150 - Posts: 11
Hello!

I was trying to add my functions in the file ACS_Source->SCStudyFunctions.cpp. However, upon adding them, I could not use them in the custom study (.cpp) file because the function was simply not found.
I also added the function to the headers.

How to add functions in SCStudyFunctions.cpp?

How does the development process look like in Sierra Chart? How do the developers of SC see it?

For instance, i can create my own dll file with functions inside and link them with the rest ACS_Source folder, or is it better to use static libraries? WHat is your suggestion?
[2022-07-27 17:55:29]
JohnR - User831573 - Posts: 320
I'm not an expert C++ dev, I'm self taught, but I create many of my own studies. I would keep your 'stuff' out of files that are part of SC. They may update them from time to time, and your updates would be lost. I create my own .DLL for all of my code. You can create your own header files if you have structures, or other 'things'.

Just one opinion. There are others here that are much better than me at this. I'm slowly getting better.

JohnR
[2022-07-28 06:50:34]
Trader_Rob - Posts: 18
I'm in the same boat as JhonR, self-taught, and have been doing this for a few months.

Definitely keep your custom studies out of the standard sierra chart ones.

I suggest making a DLL file for groups of studies that are similar so that you can have common functions that they share. For example, I have an options dedicated DLL for everything that deals with trading options.

Go to New/Open Custom Studies File under Analysis to make a new DLL

This page has everything you need to know to get over that initial learning curve
How to Build an Advanced Custom Study from Source Code

Also if you aren't already, I highly recommend using VisualStudio for development. SC supports using the VS debugger which is a huuuuuge time saver. Just open the ACS_Source folder with VS to edit your DLL.
Here's how to Set up the Debugger:
Step-By-Step ACSIL Debugging
Date Time Of Last Edit: 2022-07-28 06:55:57

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

Login

Login Page - Create Account