Login Page - Create Account

Support Board


Date/Time: Thu, 31 Oct 2024 10:12:33 +0000



Post From: How do I change the inputs of a Study added through AddStudy.

[2023-11-21 00:28:20]
KylieV1618 - Posts: 67
Ive added a Market Profile programmatically to my chart.
That works fine...but I need to make adjustments to its parameters.


n_ACSIL::s_AddStudy AddStudy;
AddStudy.ChartNumber = sc.ChartNumber;
AddStudy.StudyID = 141;
AddStudy.ShortName = "Market Profile";
    

How do I get the Unique study ID for this study/subgraph, to make adjustments to its inputs??
I want to change its Right Align, Volume Graph Period Type, Ticks Per Volume Bar, and Peak/Valley Sensitivity.
As well as get access to its
sc.GetStudyPeakValleyLine

I tried this...

int studyID = sc.AddStudyToChart(AddStudy);
sc.SetChartStudyInputInt(sc.ChartNumber, studyID, 32, 1);

But that doesn't work.
please let me know how to make adjustments to the Study after I add it to the chart.
I can't seem to find the relevant documentation
Date Time Of Last Edit: 2023-11-21 00:29:38