Average Directional Movement Index Rating (ADXR) free

by qualitiedx2 in category Trend at 17/02/2012
Description

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.

ADXR

37309 downloads
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];
        }
    }
}
Comments

3210436 - December 19, 2018 @ 21:24

dejar 3 meses 

3210436 - January 30, 2020 @ 16:39

asociarme a  socios  omar alfonso rodriguez borja cc 72158895 de barranquilla col

2.5