ATR: Average True Range

Description Usage Arguments Value Author(s) References Examples

Description

Compute the Average True Range Indicator

Usage

1
ATR(close, low, high, n = 14)

Arguments

close

vector or xts, historical series of the close price for each interval

low

vector or xts, historical series of the lowest prices for each interval

high

vector or xts, historical series of the highest prices for each interval

n

integer, length of each period of analysis

Value

vector or xts, historical series of ATR value

Author(s)

Paolo Montemurro <montep@usi.ch>

References

Wilder J. Welles (1974), New Concepts in Technical Analysis Systems.

Examples

1
2
data(BAC)
ATR(BAC$Close,BAC$Low,BAC$High)

giovannikraushaar/TradingIndicatoR documentation built on May 20, 2019, 12:14 p.m.