I have a database with stock prices, where I wanted to apply a for loop from the second row, in order to compute how manu consecutive days there was a bear or bull trend, so