StochOscillator: StochOscillator

Description Usage Arguments Value Author(s) References Examples

Description

Compute stochastic oscillator

Usage

1
StochOscillator(close, high, low, n = 14, k = 3)

Arguments

close

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

high

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

low

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

n

integer, length of each period of analysis

k

integer, length of the smoothing factor

Value

vector or xts, historical series of stochastic oscillator value

Author(s)

Paolo Montemurro <montep@usi.ch>

References

George C. Lane, , 1950.

Examples

1
2
3
4
data(TWTR)
StochOscillator(TWTR$Close,TWTR$Low,TWTR$High)
data(BAC)
StochOscillator(BAC$Close,BAC$Low,BAC$High)

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