/// <summary>
 /// Initializes a new instance of the ExponentialMovingAverage class
 /// </summary>
 /// <param name="period">The period to calculate the ExponentialMovingAverage for</param>
 public ExponentialMovingAverage(int period)
 {
     this.Values = null;
     this.minimumPoints = period;
     this.valuesReceived = 0;
     this.ema = new Library.ExponentialMovingAverage(period);
     this.Keys = new string[1];
     this.Values = new double[1];
     this.Keys[0] = "EMA(" + period + ")";
 }
        /// <summary>
        /// Initializes a new instance of the RelativeStrengthIndex class.
        /// </summary>
        /// <param name="period">The period to calculate the RelativeStrengthIndex for</param>
        public RelativeStrengthIndex(int period)
        {
            this.Values = null;
            this.minimumPoints = period + 1;
            this.valuesReceived = 0;
            this.Keys = new string[NUMBEROFKEYS];
            this.Values = new double[NUMBEROFKEYS];
            this.Keys[0] = "RSI(" + period + ")";

            this.gains = new FDMTermProject.Library.ExponentialMovingAverage(period);
            this.losses = new FDMTermProject.Library.ExponentialMovingAverage(period);
            this.previousPoint = null;
        }