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
Starting Date of Data Range Loaded on a Workspace
- 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
Hello eegroup,
Isn't all of that the same thing?
Or do you mean you need to get the value that has been specified in Format->Instrument->Settings->Data Range?
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
If yes then according to your description you have access to the data you need.to be able to tell what the starting date is, of the data that the user has actually loaded on the Chart/Workspace.
Or do you mean you need to get the value that has been specified in Format->Instrument->Settings->Data Range?
Re: Starting Date of Data Range Loaded on a Workspace
Hi Henry,Or do you mean you need to get the value that has been specified in Format->Instrument->Settings->Data Range?
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
- 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
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.Hi Henry,Or do you mean you need to get the value that has been specified in Format->Instrument->Settings->Data Range?
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