Given a data frame of prices like the following:
price 2017-03-02 24.0 2017-03-03 27.0 2017-03-06 23.0 2017-03-07 21.0 2017-03-08 22.0 2