apply study Symbol and Frame

Questions about MultiCharts .NET and user contributed studies.
shivax
Posts: 90
Joined: 02 Sep 2013
Has thanked: 37 times

apply study Symbol and Frame

Postby shivax » 18 Jul 2014

hallo...i'm new user in mc.net
i ask a question for expert programmer in mc.net:

is possibile to create a study for a symbol and the associated frame (ex: Trend(APPL,30))
and use the return value of the previous indicator on another indicator?
(I do not want to display but only use its value)

I ask you this question because reading the documentation of mc.net i have not read such examples mentioned above



i try to open this file globals.zip
(viewtopic.php?f=19&t=45280)
but give me error
Attachments
Immagine12.png
Immagine12.png (13.68 KiB) Viewed 560 times

User avatar
Henry MultiСharts
Posts: 9066
Joined: 25 Aug 2011
Has thanked: 1256 times
Been thanked: 2911 times

Re: apply study Symbol and Frame

Postby Henry MultiСharts » 18 Jul 2014

Hello shivax,

Please refer to this post for information. You may also find this information useful.

As for globals.zip - please re-download the file. It works ok on my end.

shivax
Posts: 90
Joined: 02 Sep 2013
Has thanked: 37 times

Re: apply study Symbol and Frame

Postby shivax » 14 Aug 2014

is possibile to create a study for a symbol and the associated frame (ex: Trend(APPL,30))
and use the return value of the previous indicator on another indicator?
(I do not want to display but only use its value)
i read all link this argument but i don't see how i use Trend(APPL,30) (30 minutes is a frame bars) plot in a chart with 15 minutes frame (is an example)


In your post
viewtopic.php?f=19&t=12593#p100345

You write this example :
protected override void Create() {
plot1 = AddPlot();
m_adx_indic = (ADX)AddIndicator("ADX");
m_adx_indic.length = 20;
}


but does not change the frame indicator that call...
i want plot a indicators with 30 minutes frame in a chart with 15 minutes bars frame

User avatar
Henry MultiСharts
Posts: 9066
Joined: 25 Aug 2011
Has thanked: 1256 times
Been thanked: 2911 times

Re: apply study Symbol and Frame

Postby Henry MultiСharts » 14 Aug 2014

At the moment there is no direct way to do that. We are considering AddIndicator interface extension for subchart indicator calculation to MultiCharts 9.1 beta 1.

That is possible to plot a subchart and calculate the study on it, or use the data loader to load the data. In order to transfer the data into a signal you need to use GlobalVariables/Native C# Solution for Global Storage.

shivax
Posts: 90
Joined: 02 Sep 2013
Has thanked: 37 times

Re: apply study Symbol and Frame

Postby shivax » 14 Aug 2014

but if I wanted to use only the variables without plot on a different frame ... it would be possible? or should I always use global variables

User avatar
Henry MultiСharts
Posts: 9066
Joined: 25 Aug 2011
Has thanked: 1256 times
Been thanked: 2911 times

Re: apply study Symbol and Frame

Postby Henry MultiСharts » 14 Aug 2014

but if I wanted to use only the variables without plot on a different frame ... it would be possible? or should I always use global variables
This will be the same situation.


Return to “MultiCharts .NET”