Learn R Programming

avfintools (version 0.1.0)

streak: 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)

Value

Returns a 1 x # of columns in df dataframe

Arguments

df

Dataframe with price data.

Examples

Run this code
streak(tail(SPYdaily, 200))

Run the code above in your browser using DataLab