Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

roll_range

Rolling Range


Description

Rolling range is minimum and maximum values over n past values. Can be used to identify price range.

Usage

roll_range(x, n)

roll_quantile(x, n, p)

roll_min(x, n)

roll_max(x, n)

Arguments

x

numeric vectors

n

window size

p

probability value [0, 1]

Value

roll_range returns data.table with columns min, max
others return numeric vector

See Also


QuantTools

Enhanced Quantitative Trading Modelling

v0.5.7.1
GPL-3
Authors
Stanislav Kovalevsky
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.