Average Directional Movement Index Rating (ADXR) free


Average Directional Movement Index Rating (ADXR) is a smoothed version of ADX indicator and is used as a rating of the Directional Movement while smoothing out ADX values.


How to install
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgocTrader
using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
    [Indicator(IsOverlay = false, AccessRights = AccessRights.None)]
    public class ADXR : Indicator
        [Parameter(DefaultValue = 14)]
        public int interval { get; set; }

        [Output("ADXR", Color= Colors.Turquoise)]
        public IndicatorDataSeries adxr { get; set; }
        [Output("DiMinus", Color= Colors.Red)]
        public IndicatorDataSeries diminus { get; set; }
		[Output("DiPlus", Color= Colors.Blue)]
        public IndicatorDataSeries diplus { get; set; }

		private DirectionalMovementSystem adx;
        protected override void Initialize()
            adx = Indicators.DirectionalMovementSystem(interval);

        public override void Calculate(int index)
			adxr[index] = (adx.ADX[index] + adx.ADX[index-interval])/2;
			diminus[index] = adx.DIMinus[index];
			diplus[index] = adx.DIPlus[index];