Пример #1
0
 protected override void Init()
 {
     this.name        = "ADXR (" + this.length + ")";
     this.description = "Average Directional Index Rating";
     base.Clear();
     this.calculate = true;
     base.Detach();
     this.adx = new ADX(this.input, this.length, this.style);
     base.Attach();
 }
Пример #2
0
 public static double Value(ISeries input, int index, int length, IndicatorStyle style = IndicatorStyle.QuantStudio)
 {
     if (index >= 3 * length - 1)
     {
         double num  = ADX.Value(input, index, length, style);
         double num2 = ADX.Value(input, index - length + 1, length, style);
         return((num + num2) / 2.0);
     }
     return(double.NaN);
 }
Пример #3
0
		protected override void Init()
		{
			this.name = "ADXR (" + this.length + ")";
			this.description = "Average Directional Index Rating";
			base.Clear();
			this.calculate = true;
			base.Detach();
			this.adx = new ADX(this.input, this.length, this.style);
			base.Attach();
		}