Login Page - Create Account

Support Board


Date/Time: Tue, 26 Aug 2025 05:21:57 +0000



Post From: Custom Study Compiles and Loads, but Function Never Executes (No Logging or Orders)

[2025-08-25 21:34:09]
User792880 - Posts: 5
Hi Support,
Thanks for your earlier replies and suggestions. I wanted to follow up because I’m still stuck on a core issue: the Message Log is always empty when running a custom study, even though the DLL compiles and loads without error.

Here’s the full context:
I’m running Sierra Chart under Parallels on an M1 MacBook Air. I’ve confirmed I am launching the ARM64 executable (SierraChartARM64.exe).
I initially struggled with compiling, since the Visual Studio environment didn’t include the ARM64 toolchain. After adding the correct components, I can now build with:

cl /LD log_test.cpp /I"C:\SierraChart_New\ACS_Source" /link /OUT:"C:\SierraChart_New\Data\log_test.dll"

and verify the output as machine (ARM64) using dumpbin.
I’ve cleaned up duplicates and confirmed only log_test.dll exists in the /Data folder.
I also updated Sierra Chart to the required version (≥ 2779). The DLL now loads successfully on startup (Message Log shows Loaded custom studies DLL: log_test.dll at least once when I first switched to the ARM64 build).
But now the main problem:
Once the study is added to a chart, no further log messages ever appear.
Even a minimal study that should log "Study initialized." and "Tick update" on every bar produces nothing.
No trades are executed during Replay, even with Auto Trading (Global + Chart) enabled in Simulation Mode.
A “visibility patch” version of the script that draws on-chart labels and fires alerts also shows no output, which suggests the study function isn’t being called at all.
To summarize what’s been confirmed:
Study compiles cleanly with the official sierrachart.h
DLL is ARM64, in the correct folder, and selectable under Add Custom Study
AutoLoop = 1 and UpdateAlways = 1 are set
Trade Simulation Mode and Replay are enabled
Auto Trading is enabled (Global and Chart)
No execution of study code (no logs, alerts, or orders) once it’s on the chart
The strange part is that in an earlier ARM64 run (before I recompiled everything cleanly with the batch file) the Message Log was at least full of activity, but after fixing the environment and headers, it is now consistently blank. It seems like Sierra Chart is loading the DLL but not actually calling the study function.
Could this be related to Parallels, or is there something about how the ARM64 build discovers/executes studies that I may be missing? Any guidance would be greatly appreciated — at this point I mainly need to confirm that the study execution pipeline is working at all.

Thanks