ADXR

Modified on 2008/04/13 14:57 by Administrator — Categorized as: Standard Indicators

Syntax

public static ADXR Series(WealthLab.Bars bars, int period)

Parameter Description

Bars The Bars object
period Indicator period

Description

ADXR stands for Average Directional Movement Index Rating, and is a component of the Directional Movement System developed by Welles Wilder. This system attempts to measure the strength of price movement in positive and negative directions, as well as the overall strength of the trend. The ADXR component is simply a special type of moving average (WilderMA) applied to the ADX indicator.

The ADXR can be used to determine if price movement is sufficiently directional to be worth trading. In other words, use the ADXR as a filter to trade with trend following tools.

Interpretation


Calculation

ADXR = ( ADX(today) + ADX(n days ago) ) / 2

Example

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { // Flag ADX/ADXR CrossOvers for(int bar = 20; bar < Bars.Count; bar++) { if( CrossOver( bar, ADX.Series( Bars, 14 ), ADXR.Series( Bars, 14 ) ) ) SetBackgroundColor( bar, Color.FromArgb(255, 227, 231) ); } } } }