public static double Value(TimeSeries input, int index, int length, BarData option) { if (index >= length - 1 + input.FirstIndex) { return(Math.Sqrt(SMV.Value(input, index, length, option))); } else { return(double.NaN); } }
public static double Value(DoubleSeries input, int index, int length) { return(SMV.Value((TimeSeries)input, index, length, BarData.Close)); }
protected override void Calculate(int index) { double Data = SMV.Value(this.fInput, index, this.fLength, this.fOption); this.Add(this.fInput.GetDateTime(index), Data); }