streak | R Documentation |
Counts the number of days the open price has moved consecutively Negative and positive streaks are represented by their sign
streak(df)
df |
Dataframe with price data. |
Returns a 1 x # of columns in df dataframe
streak(tail(SPYdaily, 200))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.