Support Board
Date/Time: Tue, 26 Aug 2025 05:25:54 +0000
Post From: Custom Study Compiles and Loads, but Function Never Executes (No Logging or Orders)
[2025-08-18 17:42:38] |
User792880 - Posts: 5 |
Hi Support, I successfully compiled the log_test.cpp file using your example (the one with sc.Index == 100), and the build completed without errors. I then applied the custom study (DEBUG: AutoTrade Trigger) to a chart, enabled both Auto Trading - Global and Auto Trading - Chart, and started a replay using Trade → AutoTrade System Replay BackTest. However, no trades were triggered, and more importantly, the Message Log remains completely empty — I don’t even see "Study initialized" or "Tick update" messages. It seems the script isn’t running at all, even though it’s applied to the chart. I’ve confirmed: The study appears in the Studies list and is active. The DLL is compiled and listed under Analysis → Add Custom Study. Replay is set to start well before bar index 100. I’ve added a bar numbering study and confirmed the chart reaches/passes index 100. I also tried lowering the index check to 10 and recompiling — still no logs or trades. Is there something I might be missing to get the study to execute? Could this be related to the way the DLL is registered or initialized? Thanks for your help. |