I have a trouble calculating monthly returns on stocks. I have daily closing prices and need to get monthly returns from them sticking to the last observation, not the first one.
I mean the following. For example my observations start at the 1st of January and end at the 15-th of March. I need to calculate returns (like stock/stock(-1)-1) on stock from the 15-th of January till the 15-th of February and from the 15-th of February till the 15-th of March. When I just convert daily prices to monthly ones, I get 1 Jan - 1 Feb and 1 Feb - 1 March returns. I hope that you understand what I mean. I need to use monthly returns, but want to include the most recent data in calculations.
Would you be so kind to help me with this
