Support Board
Date/Time: Tue, 22 Apr 2025 18:36:24 +0000
[Programming Help] - hello world
View Count: 266
[2024-12-28 20:05:10] |
User59879 - Posts: 77 |
I have been trying to compile my first ACSIL function, but I'm a bit lost tbh the remote compiler seems happy, there are no errors, and a DLL is saved in the Data directory, so far so good but how do I know if the DLL is being loaded? and where can I find my function / study? I have been clicking "Add Custom Study" in the Studies window, but all I see there are the standard Sierra functions ... I'm probably missing or misunderstanding something simple would be great to have a simple "Hello World" program that, once compiled, just pops up a message box "Hello World", just an idea |
[2024-12-28 22:31:55] |
ForgivingComputers.com - Posts: 1042 |
Make sure your CPP file name does not have any spaces in it. That can keep the file from appearing in the Add Custom Study window. The attached will not say Hello World, but it will draw a line through the close of every bar. Date Time Of Last Edit: 2024-12-28 22:33:40
|
![]() Attachment Deleted. |
[2024-12-29 00:14:57] |
Tony - Posts: 565 |
After you clicked "Add Custom Study" button, did you see these: " Custom Studies and Examples (SierraChartStudies_64.dll v2713) User Contributed Studies (UserContributedStudies.dll v2551) " or more? if you could post your .cpp code, we can take a close look. |
[2024-12-29 07:51:47] |
User59879 - Posts: 77 |
Thank you both for your reply, that helped me to fix the problem. Turns out I was running the ARM64 version (I'm on an M2 under Parallels), and the Remote Compiler produced an ARM64 DLL (seems ok), however for some reason those ARM64 DLLs do not show up in the Add Custom Study box, all I see there is Sierra's standard indicators. However if I run the non-ARM64 standard version of Sierra, then the Remote Compiler produces a non-ARM64 dll (of course), and those DLLs do show up in the Add Custom Study box So it seems to me that I can only use the standard Sierra version or my custom indicators won't show up, unless there is a way to change this? On another note: I don't really notice and speed difference between the standard non-ARM64 and the ARM64 versions of Sierra; does it really matter which one I run under Parallels on an M2? |
[2024-12-29 16:33:40] |
Tony - Posts: 565 |
@User59879 It depends on your setups, I only have one chart, one symbol and 3 studies, running Sierra on a 2015 iMac (Intel CPU), with Linux Mint, the CPU usage always below 4%, I don't need a M2 at all. For some folks running dozens of charts and 10+ studies on each chart, that would be a complete different story. I know there are couple of guys successfully compile ARM custom studies, there were multiple discussions related to this topic. Good luck! |
[2025-01-03 21:08:34] |
ForgivingComputers.com - Posts: 1042 |
Turns out I was running the ARM64 version (I'm on an M2 under Parallels), and the Remote Compiler produced an ARM64 DLL (seems ok), however for some reason those ARM64 DLLs do not show up in the Add Custom Study box, all I see there is Sierra's standard indicators.
I was under the impression that the Remote Compiler always creates x64 code not ARM. I tested this on my Mac M4 Mini, and it compiles a file with _ARM as part of the DLL. However, it does not show up in either Sierra Chart implementation. I did a test and renamed the DLL to remove the _ARM part, and it shows up in the x64 version, so the name does not match the processor architecture. |
[2025-01-03 21:28:28] |
User59879 - Posts: 77 |
yes, this confused me as well ... but I got it all working now using SierraChart_64.exe :-) by the way I'd be happy to share my ACSIL code somewhere, just as an example, in case there is a place to share ACSIL code somewhere |
To post a message in this thread, you need to log in with your Sierra Chart account: