this.ignoreLastPeriod = ignoreLastPeriod;
if (ignoreLastPeriod) {
shortAveragePeriods++;
longAveragePeriods++;
}
ITradingSchedule tradingSchedule = new CalendarTradingSchedule(tradingCalendar);
shortAveragingTail = new TimeSeriesTail<IOHLCPoint>(tradingSchedule, shortAveragePeriods);
longAveragingTail = new TimeSeriesTail<IOHLCPoint>(tradingSchedule, longAveragePeriods);
}