Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 00:15:33 +0000



Post From: How to access to the SCStudyInterfaceRef object from inside a thread?

[2025-02-18 16:13:50]
LTSys - Posts: 68
Is is possible to get access to the "SCStudyInterfaceRef sc" object from inside a thread?

This "SCStudyInterfaceRef sc" object is passed to the SCSFExport functions within the study... but I would like to get access to it from a thread that is running on a timed interval.

For example...

void ReadPositions() {

SCStudyInterfaceRef sc = // How to access it? I can't pass it as a parameter because I need to get the latest version from inside the running thread.

s_SCPositionData position;

sc.GetTradePosition(position);

// more logic here
}

Is this possible or is this a design limitation in Sierra Chart studies?

TIA
Date Time Of Last Edit: 2025-02-19 17:20:05