Learn R Programming

TTR (version 0.24.4)

chaikinVolatility: Chaikin Volatility

Description

Chaikin Volatility measures the rate of change of the security's trading range. Developed by Marc Chaikin.

Usage

chaikinVolatility(HL, n = 10, maType, ...)

Value

A object of the same class as HL or a vector (if try.xts fails) containing the Chaikin Volatility values.

Arguments

HL

Object that is coercible to xts or matrix and contains High-Low prices.

n

Number of periods for moving average.

maType

A function or a string naming the function to be called.

...

Other arguments to be passed to the maType function.

Author

Joshua Ulrich

Details

The Chaikin Volatility indicator defines volatility as an increase in the difference between the high and low.

References

The following site(s) were used to code/document this indicator:
https://www.fmlabs.com/reference/ChaikinVolatility.htm
https://www.metastock.com/Customer/Resources/TAAZ/?p=120

See Also

See EMA, SMA, etc. for moving average options; and note Warning section. See TR for another volatility measure.

Examples

Run this code

 data(ttrc)
 volatility <- chaikinVolatility(ttrc[,c("High","Low")])

Run the code above in your browser using DataLab