Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 07:41:08 +0000



Post From: Problem with compiled custom study name always showing as - Custom DLL Study | CalcOrder -

[2024-10-29 04:43:55]
User321619 - Posts: 26
After compilation of custom study cpp file, the study added to the list of studies always shows as "Custom DLL Study | CalcOrder". Even though SCDLLName and function name are completely different and modified multiple times, the name of study in the list remains same. Screenshots are attached.

Full description of problem: Everything has been working fine for couple of days as I was developing custom study. I was able to test and make changes numerous times and was almost done with the study. However, today a peculiar problem started. Once I compiled and added study to chart it showed up as name "Custom DLL Study | CalcOrder". Even though I do not have that name in my file. So, to eliminate any other problems, I created a small sample study with just couple of lines of code. It gives the same result. I also installed local cpp compiler and tried using that. Same results. I do not know what to do. Additionally, the study I was developing stopped showing inputs when the study was loaded on chart. So, something is definitely wrong.

Please advise.

(In image attached AddedStudy.png, the added study is #1)

Here is the code for sample study:

#include "sierrachart.h"

SCDLLName("Magic Study DLL")

//This is the basic framework of a study function.
SCSFExport scsf_AbraKaDabra(SCStudyInterfaceRef sc)
{
if (sc.SetDefaults)
{
//Code in this section
sc.SendOrdersToTradeService = 0;
sc.FreeDLL = 1;
sc.GraphName = "Autotrade";
sc.AutoLoop = 1; // Enable autoloop
return;
}
// Data processing code  
}

Date Time Of Last Edit: 2024-10-29 07:23:43
imageAddStudy.png / V - Attached On 2024-10-29 04:39:07 UTC - Size: 72.12 KB - 34 views
imageAddedStudy.png / V - Attached On 2024-10-29 04:39:12 UTC - Size: 67.57 KB - 28 views
imageCustomStudyOnChart.png / V - Attached On 2024-10-29 04:39:16 UTC - Size: 72.4 KB - 36 views