CMF {TTR} | R Documentation |
Chaikin Money Flow compares total volume over the last n
time periods to total volume
times the Close Location Value (CLV) over the last n
time periods. Developed by Marc
Chaikin.
CMF(HLC, volume, n = 20)
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. |
n |
Number of periods to use. |
Chaikin Money Flow is calculated by taking dividing the sum of the Chaikin Accumulation /
Distribution line over the past n
periods by the sum of volume over the past
n
periods.
A vector containing the Chaikin Money Flow values.
When Chaikin Money Flow is above/below +/- 0.25 it is a bullish/bearish signal. If Chaikin Money Flow remains below zero while the price is rising, it indicates a probable reversal.
Josh Ulrich
The following site(s) were used to code/document this indicator:
http://www.fmlabs.com/reference/ChaikinMoneyFlow.htm
http://www.linnsoft.com/tour/techind/cmf.htm
http://stockcharts.com/education/IndicatorAnalysis/indic_ChaikinMoneyFlow1.html
data(ttrc) cmf <- CMF(ttrc[,c("High","Low","Close")], ttrc[,"Volume"])