Percentage Price Oscillator : 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 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.
- Key parameter
Key to an already created HistoricalDB object
- withHeaders parameter
Display header information with the output range?
- withDates parameter
Display the Dates column along with the output range?
- withData parameter
Display the 'Open', 'High', 'Low', 'Close' and 'Volume' columns along with the output range?
- FieldName parameter
The FieldName within the Historical DB that you wish to apply the analysis upon.
- Fast_Period parameter
Number of period for the fast MA (Default=12)
- Slow_Period parameter
Number of period for the slow MA (Default=26)
- MA_Type parameter
Type of Moving Average: 0=SMA, 1=EMA, 2=WMA, 3=DEMA, 4=TEMA, 5=TRIMA, 6=KAMA, 7=MAMA, 8=T3 (Default=SMA)
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.