powered by
Counts the number of days the open price has moved consecutively Negative and positive streaks are represented by their sign
streak(df)
Returns a 1 x # of columns in df dataframe
Dataframe with price data.
streak(tail(SPYdaily, 200))
Run the code above in your browser using DataLab