I want to get the start date of a bar history. How can I do that? I tried bars.DateTimes[0] but this depends on the date range of the backtest. Is there a way to get the actual start date of the time series no matter what date range is selected?
I noticed that I missed "first" in the title of the post...
I noticed that I missed "first" in the title of the post...
Rename
QUOTE:You mean start of a BarHistory.
actual start date of the time series
That will depend on the provider, but you can request a Daily history of "All Bars" like this, where bars is a reference to the current BarHistory.
CODE:
BarHistory allbars = GetHistoryUnsynched(bars.Symbol, HistoryScale.Daily); //then ... allbars.DateTimes[0];
Yes that's what I'm looking for. Thanks @Cone.
Your Response
Post
Edit Post
Login is required