show indicator's plots and data when it loads as an object?  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

show indicator's plots and data when it loads as an object?

Postby Ram » 04 Jan 2015

Hi,

when a strategy loads an indicator that implements and calculate some plots as an object:

Code: Select all

x_Ind = AddIndicator("Some_Indicator")


however when it loads as an object I cant see the plots data nor the plots drawings.. is there any way to tell MC to make that object visible? the only way I can do that is to load the same indicator to the chart as a study...

Best,
R.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: show indicator's plots and data when it loads as an obje

Postby Henry MultiСharts » 05 Jan 2015

Hello Ram,

When an indicator is loaded as an object in the code - that is possible to use the data prepared by the indicator for calculations, it will not do any plots itself. If you want the data to be plotted you need to do the "Plot" in your code, or apply the required indicator to the chart.

Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Re: show indicator's plots and data when it loads as an obje

Postby Ram » 06 Jan 2015

Got it, one more question then, when creating an object this way:

Code: Select all

x_Ind = AddIndicator("Some_Indicator")
The parent can read/set data of the child object, is it possible for the child object to read/set data of the parent? something like this:

Code: Select all

If Me.ChildState = True Then
X = Me.Parent.Plots(0).Values(0)
End If
Thanks,
R.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: show indicator's plots and data when it loads as an obje

Postby Henry MultiСharts » 12 Jan 2015

The parent can read/set data of the child object, is it possible for the child object to read/set data of the parent?
Unfortunately that is not possible.

Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Re: show indicator's plots and data when it loads as an obje  [SOLVED]

Postby Ram » 12 Jan 2015

Got it, Thx.


Return to “MultiCharts .NET”