Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 14:58:53 +0000



[Programming Help] - Create my own ACSIL functions

View Count: 974

[2018-08-11 21:39:13]
bradh - Posts: 854
I would like to create my own functions similar to the way sc.Functions work. How do I add my own functions to my studies to make my code more modular? Do I need to declare it in the headers section and then define it in the Data Processing section?
Date Time Of Last Edit: 2018-08-11 22:11:50
[2018-08-13 08:44:12]
Marmany - Posts: 303
Bradh, you simply write and call a study function. As illustrated in attached - adapted from published SC study.
attachmentSwingHighAndLow.cpp - Attached On 2018-08-13 08:42:51 UTC - Size: 5.48 KB - 317 views
[2018-08-13 12:42:45]
bradh - Posts: 854
Bradh, you simply write and call a study function. As illustrated in attached - adapted from published SC study.

Thank you Marmany. I think the part that threw me "_S" as part of the function name, and the "sc" as part of the parameter list. I assume those are required.

I will give it a try!

BradH
[2018-08-13 17:06:35]
Sierra Chart Engineering - Posts: 104368
Here is the relevant documentation:
ACSIL Programming Concepts: Passing ACSIL Interface Members Structure To Secondary Function

C++ Functions
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