Login Page - Create Account

Support Board


Date/Time: Tue, 15 Apr 2025 14:08:50 +0000



Cannot get this small program to compile.

View Count: 111

[2025-03-28 21:08:00]
User216417 - Posts: 1
Hi Sierra Chart Support,

I'm using version 2747 and attempting to build a custom study that accesses stochastic values from another study using:

SCFloatArrayRef KArray = sc.Subgraph[0].Data;
SCFloatArrayRef DArray = sc.Subgraph[1].Data;

sc.GetStudyArrayUsingIDFromChartIDStudyID(sc.ChartNumber, StochasticStudyID.GetInt(), 0, KArray);
sc.GetStudyArrayUsingIDFromChartIDStudyID(sc.ChartNumber, StochasticStudyID.GetInt(), 1, DArray);

However, the remote build consistently fails with the following error:

error: invalid initialization of non-const reference of type 'SCFloatArrayRef' from an rvalue of type 'int'

I’ve ensured:

I'm using SCFloatArrayRef from sc.Subgraph[x].Data

min and max macros are properly undefined

No incorrect type assignments or parameter mismatches

Is there something in version 2747 or the remote build server that may cause this behavior? I’d appreciate your guidance on what’s going wrong.

Thank you!
attachmenttriggeredtrailingstopautobuy.cpp - Attached On 2025-03-28 21:04:46 UTC - Size: 4.54 KB - 23 views
Attachment Deleted.
[2025-03-28 21:48:30]
User719512 - Posts: 307
Have you seen:
ACSIL Interface Members - Functions: sc.GetStudyArrayFromChartUsingID()

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

Login

Login Page - Create Account