/// <summary> /// Calculate the the average of the current periods /// </summary> /// <returns></returns> protected virtual double AveragePeriods() { return(Periods.Average(p => p.Close)); }