Learn R Programming

avfintools (version 0.1.0)

volatility_freq: Frequency plot of Range, as well as maximum Upward and Downward Movement

Description

a plot_ly plot

Usage

volatility_freq(df, tick_name, cumulative = FALSE, hideprints = FALSE)

Value

Frequency plot where you can find intraday volatility (range), maximum upside (Upward Movement), maximum downside (Downward Movement) on a cumulative percentile basis

Arguments

df

Dataframe with daily data

tick_name

The ticker so the graph is correct

cumulative

Default is FALSE, turn to TRUE for a cumulative plot.

hideprints

if set to FALSE, shows summary statistics

Examples

Run this code
volatility_freq (SPYdaily, "SPY")
volatility_freq (SPYdaily, "SPY", cumulative = TRUE)
volatility_freq (SPYdaily, "SPY", hideprints = TRUE)

Run the code above in your browser using DataLab