Ejemplo n.º 1
0
 public static double Value(ISeries input, int index, int length, BarData barData = BarData.Close)
 {
     if (index >= length - 1)
     {
         return(Math.Sqrt(SMV.Value(input, index, length, barData)));
     }
     return(double.NaN);
 }
Ejemplo n.º 2
0
        protected internal override void Calculate(int index)
        {
            if (this.calculate)
            {
                this.Calculate();
                return;
            }
            double num = SMV.Value(this.input, index, this.length, this.barData);

            if (!double.IsNaN(num))
            {
                base.Add(this.input.GetDateTime(index), num);
            }
        }