Support Board
Date/Time: Tue, 26 Nov 2024 15:19:40 +0000
[Locked] - Edit Source Code for an existing Study to create a new study
View Count: 835
[2023-11-09 13:20:38] |
User165160 - Posts: 19 |
Can I get access to existing studies source code. I would like to edit that source code to create a new modified version of the study. Specifically, the ZigZag indicator. Is this possible? If so, can you point me to any information on doing this. Thanks |
[2023-11-09 13:52:20] |
kas64h - Posts: 87 |
You should already have it. Go to your SierraChart folder, and then the ACS_Source folder, and open the studies7.cpp file. Simply copy the scsf_ZigZagStudy code PLUS the two functions immediately above it - AccumulateZigZagVolume and CreateZigZagLineLabel You should then have everything you need! |
[2023-11-09 18:29:47] |
User165160 - Posts: 19 |
Thank-you. Couple of Questions: 1: Can I just copy the sscsf_ZigZagSudy function, edit it and paste it in the same file with an adjusted function name? Will that then appear as a new study option for charts? 2: Do I then have to recompile the file or rebuild anything. Or it that all automatically handled? Thanks, |
[2023-11-09 19:19:04] |
kas64h - Posts: 87 |
From your comments, I'm assuming you have no experience of building your own studies or using ACSIL. You have to create your own cpp file and copy/paste/modify the code accordingly to suit your needs - you CANNOT simply edit and paste within the existing files, in fact you should not be modifying them at all!!! I think it best you either familiarize yourself with the Sierra documentation on creating and building your own studies using ACSIL (it's not that difficult if you have any kind of coding background), or you employ the services of a developer to code the study / studies you require. I know from experience the ZigZag Indicator study can be one of the trickier studies to modify depending on what it is you're trying to achieve (I created my own), but at the end of the day c++ and ACSIL are pretty flexible, and with a little effort just about anything is possible. Hope this helps. Date Time Of Last Edit: 2023-11-09 19:20:07
|
[2023-11-09 20:31:06] |
User165160 - Posts: 19 |
thanks again. I will take a look at the Sierra documentation on creating and building my own studies using ACSIL.
|
[2023-11-10 22:23:00] |
Sierra_Chart Engineering - Posts: 17181 |
Refer to this page: How to Build an Advanced Custom Study from Source Code 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, use 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: