Moving Average Convergence/Divergence : This function is contained within the Momentum Indicators set of indicators.
Returns a 3-Column range.
outMACD (Doubles).
outMACDSignal (Doubles).
outMACDHist (Doubles).
(Reference -
http://www.tadoc.org,
http://www.ta-lib.org).
The Fast_Period and Slow_Period parameters determines the number of data points that the function will conduct it's analysis upon before moving on.
Thus if the value of the Fast_Period or Slow_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... Both the Fast_Period and Slow_Period parameters act as sliding windows, where the window size determines the amount of data that the analysis will be conducted upon.
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.