Starting Date of Data Range Loaded on a Workspace

Questions about MultiCharts and user contributed studies.
eegroup
Posts: 78
Joined: 04 Aug 2008
Has thanked: 11 times
Been thanked: 9 times

Starting Date of Data Range Loaded on a Workspace

Postby eegroup » 01 Jan 2014

Is there any way in which we have access to the Starting Date (or Starting DateTIme stamp) of the Data Range that is loaded on a workspace, inside of a PowerLanguage Indicator and/or Signal/Strategy?

We find that we can get access to the DateTime stamp of the left most bar displayed on the chart, using the aiLeftDispDateTime attribute of the GetAppInfo command, but this does not provide exactly to what we would like to have access to. We would like to be able to tell what the starting date is, of the data that the user has actually loaded on the Chart/Workspace.

Many thanks!
eegroup

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

Re: Starting Date of Data Range Loaded on a Workspace

Postby Henry MultiСharts » 02 Jan 2014

Hello eegroup,

Isn't all of that the same thing?
the Starting Date (or Starting DateTIme stamp) of the Data Range that is loaded on a workspace
the DateTime stamp of the left most bar displayed on the chart
to be able to tell what the starting date is, of the data that the user has actually loaded on the Chart/Workspace.
If yes then according to your description you have access to the data you need.

Or do you mean you need to get the value that has been specified in Format->Instrument->Settings->Data Range?

eegroup
Posts: 78
Joined: 04 Aug 2008
Has thanked: 11 times
Been thanked: 9 times

Re: Starting Date of Data Range Loaded on a Workspace

Postby eegroup » 03 Jan 2014

Or do you mean you need to get the value that has been specified in Format->Instrument->Settings->Data Range?
Hi Henry,

Yes, that is exactly what we are seeking access to, the starting date of the data range specified on the workspace in the Format-->Instrument-->Settings-->Data Range-->From Date input parameter.

Screenshot attached.

Thanks,
eegroup
Attachments
From Date Range Parameter.PNG
From Date Range Parameter
(37.61 KiB) Downloaded 376 times

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

Re: Starting Date of Data Range Loaded on a Workspace

Postby Henry MultiСharts » 03 Jan 2014

Or do you mean you need to get the value that has been specified in Format->Instrument->Settings->Data Range?
Hi Henry,

Yes, that is exactly what we are seeking access to, the starting date of the data range specified on the workspace in the Format-->Instrument-->Settings-->Data Range-->From Date input parameter.

Screenshot attached.

Thanks,
eegroup
There is no access to this information from the code. It will be more useful to operate with the actual data you have loaded on the chart with the help of CurrentBar, MaxBarsBack and Symbol_CurrentBar.


Return to “MultiCharts”