chaikinOscillator {TTR} | R Documentation |
The Chaikin Oscillator is an oscillator applied to the Chaikin Accumulation / Distribution line.
chaikinOscillator(HLC, volume, ma.slow = list("EMA", n=10), ma.fast = list("EMA", n=3), percent=FALSE)
HLC |
Object able to be coerced to a matrix, which contains High-Low-Close prices. |
volume |
Vector or matrix of volume observations corresponding to the HLC object. |
ma.slow |
A list whose first component is a string containing the slow moving average function name; additional parameters may also be specified as named components. |
ma.fast |
A list whose first component is a string containing the fast moving average function name; additional parameters may also be specified as named components. |
percent |
logical; if TRUE , the percentage difference between the slow and fast moving
averages is returned, otherwise the difference between the respective averages is returned. |
The Chaikin Oscillator is calculated similarly to other price oscillators: by subtracting a slow moving average of the A/D line from a fast moving average of the A/D line.
A vector containing the Chaikin Oscillator values.
When the Chaikin Oscillator crosses above (below) zero, it indicates a buy (sell) signal. Also look for price divergence to indicate bullish or bearish conditions.
Josh Ulrich
The following site(s) were used to code/document this indicator:
http://www.fmlabs.com/reference/ChaikinOscillator.htm
http://www.equis.com/Customer/Resources/TAAZ/?c=3&p=41
http://stockcharts.com/education/IndicatorAnalysis/indic_ChaikinOscillator.html
See EMA
, SMA
, etc. for moving average options; and note Warning
section. Also see CLV
, chaikinAD
, and oscillator
.
data(ttrc) oscillator <- chaikinOscillator(ttrc[,c("High","Low","Close")], ttrc[,"Volume"])