Support Board
Date/Time: Fri, 18 Apr 2025 04:51:32 +0000
Post From: Subject: Compilation Issues with sc.AddStudyToChart in ACSIL Custom Study
[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 |