Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 04:01:11 +0000



SCSFExport function: name without scsf_ prefix and with spaces?

View Count: 918

[2016-06-27 06:12:12]
binaryduke - Posts: 360
Is is possible to present a custom study name in the 'Add Study' window through the SCSFExport function that does not have the scsf_ prefix and uses spaces, as with the User-Contributed Studies?

Right now my line reads:
SCSFExport scsf_My_Study_Name(SCStudyGraphRef sc)


The documentation states:
The very top line of all study functions need to be defined like the following:
SCSFExport scsf_UniqueFunctionName(SCStudyInterfaceRef sc)

Where UniqueFunctionName is the name that you give your function which must be unique from all other study functions in your advanced custom study source code file. Important Note: your function must always begin with the prefix scsf_.

Is there a means to achieve study name presentation like that within the User Contributed Studies dll?

Many thanks.
[2016-06-27 06:54:32]
Sierra Chart Engineering - Posts: 104368
Yes of course. You need to set sc.GraphName. This is considered one of the most basic things the study should do.
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-06-27 07:29:56]
binaryduke - Posts: 360
I have this set within the SetDefaults section of the study:

if (sc.SetDefaults)
{
    sc.GraphName = "My Custom Study";
    sc.GraphShortName = "Custom Study";
    sc.GraphRegion = 0;
    sc.GraphDrawType = GDT_CUSTOM;
    sc.AutoLoop = 1;
    sc.FreeDLL = 0;
(etcetc)
}

however what appears in the Add Study window is the name provided after SCSFExport scsf_My_Custom_Study(SCStudyGraphRef sc)

i.e. scsf_My_Custom_Study
Date Time Of Last Edit: 2016-06-27 07:31:54
[2016-06-27 07:56:56]
Sierra Chart Engineering - Posts: 104368
Something is not right. This is extremely unusual to see this. The only reason you would see the actual function name is if sc.GraphName is not set or set to an empty text string.
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-06-27 07:57:52]
Sierra Chart Engineering - Posts: 104368
Try creating a new DLL with a single and simple function where you set sc.GraphName. There simply should be no trouble with this at all.
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

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account