Support Board
Date/Time: Fri, 10 Jan 2025 12:24:00 +0000
Cannot add Custom study
View Count: 1744
[2016-09-13 00:48:59] |
bala - Posts: 74 |
1. Created source (Mytest1.cpp) 2. Compiled the code (Mytest1.dll has been generated) 3. It is in C:\SierraChart\Data and can be seen in explorer 4. Trying to add study by - 'Analysis -> studies -> Add custom study' . My study doesn't show in any list. Can you please help? |
[2016-09-13 01:27:09] |
Sierra Chart Engineering - Posts: 104368 |
How did you compile this file? Did you do it through Analysis >> Build Custom Studies DLL?
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2016-09-13 11:12:43] |
bala - Posts: 74 |
That is correct - I did use " Analysis >> Build Custom Studies DLL". Here is the screen output from latest compiling: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - Starting build of Custom Studies Source files: Mytest1.cpp. -- 06:06:43 C:\WINDOWS\system32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat" C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" Mytest1.cpp Creating library Mytest1.lib and object Mytest1.exp Generating code Finished generating code -- End of Build -- 06:06:45 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The above compile has created Mytest1.dll in C:\SierraChart\Data (By the way it's a simple program to print "Hello World" into the log) |
[2016-09-13 17:20:00] |
Sierra Chart Engineering - Posts: 104368 |
Therefore, what this means is that either there was a problem reading the file which will be logged in the Message Log: http://www.sierrachart.com/index.php?page=doc/MessageLog.html Or there are no study functions contained within the DLL file. All study functions must begin with scsf_ Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2016-09-14 00:29:23] |
bala - Posts: 74 |
I am impressed! The problem was the function not being named scsf_XXXX. I renamed the function and it wrote to the log file with "Hello World". Thanks, Bala |
To post a message in this thread, you need to log in with your Sierra Chart account: