get settings from property window by code  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
gvandenbosch
Posts: 30
Joined: 24 Oct 2013
Has thanked: 9 times
Been thanked: 3 times

get settings from property window by code

Postby gvandenbosch » 02 Jan 2014

Hi,

Is there any way to get the settings from the property window of the instrument by code.

Like the chosen session type, days back, starting date etc... ?

Cheers,
Gerard

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

Re: get settings from property window by code

Postby Henry MultiСharts » 06 Jan 2014

Hello Gerard,

Unfortunately there is no way to access the settings from the property window of the instrument.
You can get the starting date of the data series by accessing the date of the bars of the data series.

gvandenbosch
Posts: 30
Joined: 24 Oct 2013
Has thanked: 9 times
Been thanked: 3 times

Re: get settings from property window by code

Postby gvandenbosch » 08 Jan 2014

Hi Henry,

It is not really about only the starting date.
Also about which session, default, 24/5 or 24/7.

For some of my indicators I do a lot of calculation on history data, and looking for a way to keep those calculations in order to speed up the process when the same data set is accessed more than one time.
But if I calculated for default session it would be invalid in a 24/5 session because there is also data outside of it.

Cheers,
Gerard

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

Re: get settings from property window by code  [SOLVED]

Postby Henry MultiСharts » 08 Jan 2014

Hello Gerard,

I am sorry for misinformation. Acutally that is possbile to access both - selected session template and data range:
Please refer to SessionName and DataRequest at this page: 4.2_Data_Access

gvandenbosch
Posts: 30
Joined: 24 Oct 2013
Has thanked: 9 times
Been thanked: 3 times

Re: get settings from property window by code

Postby gvandenbosch » 08 Jan 2014

Thanks, I'll go try it out.


Return to “MultiCharts .NET”