Support Board
Date/Time: Tue, 26 Aug 2025 05:24:07 +0000
Post From: Custom Study Compiles and Loads, but Function Never Executes (No Logging or Orders)
[2025-08-04 17:19:39] |
User792880 - Posts: 5 |
Hi Support, I’m developing a custom study DLL using Sierra Chart version 2776 (64-bit). The study compiles successfully using the official sierrachart.h from ACS_Source and produces a cleansmt_final_64.dll. It appears in the “Add Custom Study” window and adds to the chart without error. However, the study function never appears to execute. I’ve confirmed the following: ✅ The DLL is built with Visual Studio 2022 and placed in the correct /Data directory ✅ The chart is receiving live data (GCZ25_FUT_CME) and bar timestamps are updating ✅ sc.AutoLoop = 1; and sc.UpdateAlways = 1; are set in sc.SetDefaults ✅ The study is running in Trade Simulation Mode ❌ No messages from sc.AddMessageToLog() appear in the Message Log ❌ No orders are placed, even when logic is forced to trigger ❌ A minimal test study that logs on every bar also shows no activity I’ve also confirmed that the correct 64-bit DLL is being compiled and loaded, and I’ve tried renaming the 32-bit version to eliminate confusion. Still, nothing logs and the function never appears to run. Is there anything I may be overlooking regarding DLL discovery or study execution under version 2776 (64-bit)? Thanks for your help. Jack |