Login Page - Create Account

Support Board


Date/Time: Tue, 15 Apr 2025 14:01:36 +0000



Subject: Compilation Issues with sc.AddStudyToChart in ACSIL Custom Study

View Count: 81

[2025-03-31 18:00:53]
User936941 - Posts: 28
We’re encountering persistent compilation errors with a custom ACSIL study (ICTTradingStrategyV1.cpp) when using sc.AddStudyToChart. Locally (Sierra Chart on D:\SierraChart, Visual Studio 2022), we get C2197: too many arguments for call with the three-argument form (sc.AddStudyToChart(int, const char*, int)), and remotely (build.sierrachart.com), it previously failed with type mismatch errors. Switching to the s_AddStudy struct approach resulted in C2039: 'StudyName' is not a member of 'n_ACSIL::s_AddStudy' errors, suggesting a mismatch with the sierrachart.h definition. We’ve referenced the ACSIL documentation (ACSIL Interface Members - Functions), which lists sc.AddStudyToChart as accepting three arguments, but our local and remote builds indicate inconsistent function signatures. Troubleshooting included testing both forms, verifying syntax, and ensuring header inclusion, yet the errors persist. Could you clarify the correct sc.AddStudyToChart signature for our Sierra Chart version and assist with resolving this?
Private File
[2025-03-31 18:26:22]
User431178 - Posts: 646
which lists sc.AddStudyToChart as accepting three arguments

Are you sure about that?
There is only one version, one that accepts n_ACSIL::s_AddStudy.
Where is the three-argument version?

Switching to the s_AddStudy struct approach resulted in C2039: 'StudyName' is not a member of 'n_ACSIL::s_AddStudy' errors
Because n_ACSIL::s_AddStudy has no "StudyName" member, it's "ShortName".

ACSIL Interface Members - Functions: sc.AddStudyToChart()

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

Login

Login Page - Create Account