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
get settings from property window by code [SOLVED]
-
- Posts: 30
- Joined: 24 Oct 2013
- Has thanked: 9 times
- Been thanked: 3 times
- 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
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.
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.
-
- Posts: 30
- Joined: 24 Oct 2013
- Has thanked: 9 times
- Been thanked: 3 times
Re: get settings from property window by code
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
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
- 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]
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
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
-
- Posts: 30
- Joined: 24 Oct 2013
- Has thanked: 9 times
- Been thanked: 3 times