コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public static double Value(DoubleSeries input, int index, int length)
 {
     return(SMV.Value((TimeSeries)input, index, length, BarData.Close));
 }
コード例 #3
0
        protected override void Calculate(int index)
        {
            double Data = SMV.Value(this.fInput, index, this.fLength, this.fOption);

            this.Add(this.fInput.GetDateTime(index), Data);
        }