Support Board
Date/Time: Mon, 21 Apr 2025 18:01:41 +0000
[Programming Help] - Calling custom studies in custom studies
View Count: 211
[2025-02-11 20:26:11] |
atariaf - Posts: 12 |
This could be a dumb question, but is it possible to call a custom study (say, an indicator) inside another custom study (the one holding strategy logic) without having to attach the indicator to the chart and use GetStudyByName() or something?
|
[2025-02-16 18:39:25] |
ForgivingComputers.com - Posts: 1042 |
No. A study cannot provide data to another study if it is not attached to a chart in the same chartbook. However, you can use this function to add a study from another study: ACSIL Interface Members - Functions: sc.AddStudyToChart() |
[2025-02-18 05:26:03] |
seandunaway - Posts: 348 |
i don't see why you couldn't use win32's LoadLibrary() and GetProcAddress(), persist the pointer to the desired study function and call it with a reference to the SCStudyInterface https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibrarya https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getprocaddress |
To post a message in this thread, you need to log in with your Sierra Chart account: