Average Directional Movement Index Rating : This function is contained within the Momentum Indicators set of indicators.
Returns a 1-Column range.
outReal (Doubles).
(Reference -
http://www.tadoc.org,
http://www.ta-lib.org).
The Time_Period parameter determines the number of data points that the function will conduct it's analysis upon before moving on.
Thus if the value of the Time_Period parameter is 30, the first 30 points will be read, the analysis performed, then the 1st point is dropped and the 31st point added, analysis performed once again, then the 2nd point dropped and the 32nd point added, analysis performed etc... The Time_Period parameter almost acts as a sliding window, where the window size determines the amount of data that the analysis will be conducted upon.
The returned range will always be the size of the original range, minus the size of the Time_Period (the window).
This function requires the input of a Technical Analysis memory data table object key, which must have been produced via a call to
MakeHistoricalDB(). This function would have returned a string 'KEY' which is to be passed to the 'Key' parameter of this function.
The C# example below contains all the sub-function calls leading up to this function call. As a result, the example can contain a lot of code.
The VB.NET, J#, C++.NET, Java, Excel VBA, Visual Basic 6 (via COM) and C++ examples below contain function code stubs for the calls leading up to this function call. However, the function call for this function is displayed.
You can easily reproduce the stub functions code from the
C# example.
Copyright (c) 2003-2007 CapeTools - All Rights Reserved.