Support Board
Date/Time: Mon, 30 Jun 2025 07:09:31 +0000
[Programming Help] - Access custom study from code?
View Count: 1300
[2021-06-23 02:39:09] |
skellington - Posts: 14 |
Hi, I'm writing an ACSIL custom study and I want to access non-built-in studies in the code the same way you can access build-in studies like: sc.SimpleMovAvg(result, Subgraph_SimpMovAvg, sc.Index, 5); For example, I'd like to access the "Intraday Intensity Oscillator by Tick With Filters" which is in the User Contributed Studies DLL and there is no apparent code way to get to it. Thanks! Date Time Of Last Edit: 2021-06-23 03:50:58
|
[2021-06-23 16:14:35] |
User90125 - Posts: 715 |
Try googling it next time. First response when I did it was this: Offering To The Community: Intraday Intensity Oscillator With Filters (and By Tick) | Post: 63835 Should have some code for it in there (.cpp) attached. |
[2021-06-23 17:31:13] |
skellington - Posts: 14 |
Thanks, that is an option when you have the source code. But I also want to access studies that are not built-in even if I don't have the source code. IIO was just an example. Even with source code, it's not a trivial integration because you have to adjust all of the subgraphcs/inputs/etc. When you use the built-ins like sc.SimpleMovAvg(result, Subgraph_SimpMovAvg, sc.Index, 5); they are self contained. |
[2021-06-24 06:37:25] |
User310645 - Posts: 49 |
There is nothing stopping you creating your own dll of functions that you can call in whatever way you like. Just link your sierra study code to it like any normal c++ program. Thats what the previous answer could have been telling you. If you have the study source code you can extract the calculation part of the code and put it in your own dll. Once this is done hook it into your own study code passing whatever parameters are necessary. |
[2021-06-24 07:14:06] |
binaryduke - Posts: 378 |
ACSIL Programming Concepts: Using or Referencing Study/Indicator Data in an ACSIL Function specifically Add the study to the chart and then get the Study Subgraph data by using the sc.GetStudyArrayUsingID function. Use this method when there is no Intermediate Study Calculation Function available for the particular study or indicator that you want to calculate and use the data of. This is going to be the case when you are using studies developed by outside developers or are using Advanced Custom Studies that do not have an Intermediate Study Calculation Function.
|
[2021-06-24 13:12:45] |
skellington - Posts: 14 |
Thanks everyone. I think I understand the various pros and cons and available options now.
|
To post a message in this thread, you need to log in with your Sierra Chart account: