I'm trying to convert an indicator from 6.5 to 7.0. I'm having trouble with a particular line of code:
dailyBars = Data.Bars.GetBars(
Bars.Instrument,
new Period(PeriodType.Day, 1),
Bars.From,
Bars.To,
(Session) Bars.Session.Clone(),
Data.Bars.SplitAdjust,
Data.Bars.DividendAdjust);
When I try to convert this to 7.0, it says that Period needs a new parameter, MarketDataType.
I'm trying to understand which MarketDataType I'm supposed to use, I'm guessing either MarketDataType.Last or MarketDataType.LastClose. Can someone explain to me the relevance of what the MarketDataType has for Period?
thanks,
Steve
Comment