streak {avfintools}R Documentation

Streak

Description

Counts the number of days the open price has moved consecutively Negative and positive streaks are represented by their sign

Usage

streak(df)

Arguments

df

Dataframe with price data.

Value

Returns a 1 x # of columns in df dataframe

Examples

streak(tail(SPYdaily, 200))

[Package avfintools version 0.1.0 Index]