public static double Value(TimeSeries input, int index, int length, EIndicatorStyle style) { if (index < length + input.FirstIndex) { return(double.NaN); } double num1 = 0.0; double num2 = PDI.Value(input, index, length, style); double num3 = MDI.Value(input, index, length, style); if (num2 + num3 != 0.0) { num1 = 100.0 * Math.Abs(num2 - num3) / (num2 + num3); } return(num1); }
public static double Value(TimeSeries input, int index, int length) { return(MDI.Value(input, index, length, EIndicatorStyle.QuantStudio)); }