Learn R Programming

TTR (version 0.24.4)

CLV: Close Location Value

Description

The Close Location Value (CLV) relates the day's close to its trading range.

Usage

CLV(HLC)

Value

A object of the same class as HLC or a vector (if try.xts fails) containing the Close Location Values of a High-Low-Close price series.

Arguments

HLC

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

Author

Joshua Ulrich

Details

The CLV will fall in a range of -1 to +1. If the CLV is +/-1, the close is at the high/low; if the CLV is 0, the close is directly between the high and low.

References

The following site(s) were used to code/document this indicator:
https://school.stockcharts.com/doku.php?id=technical_indicators:accumulation_distribution_line

See Also

See chaikinAD, which uses CLV.

Examples

Run this code

 data(ttrc)
 clv <- CLV(ttrc[,c("High","Low","Close")])

Run the code above in your browser using DataLab