Learn R Programming

QuantTools (version 0.5.3)

Stochastic: Stochastic

Description

Stochastic oscillator shows position of price in respect to its range over n past values.

Usage

stochastic(x, n, nFast, nSlow)

Arguments

x
high, low, close data.frame or numeric vector
n
window size
nFast
fast smooth
nSlow
slow smooth

Value

data.table with columns k_fast, d_fast, d_slow

See Also

Other technical indicators: bbands, crossover, ema, roll_lm, roll_percent_rank, roll_range, roll_sd, roll_volume_profile, rsi, sma