Hi! I have a big set of historical data on stock forecasts and prices. These stocks should be equally divided into ten portfolios based on the forecasts. In the next step the real outcome of these portfolios should be calculated based on the prices. The portfolios should also be rebalanced each month with regard to changes in forecasts. I think my biggest issue right is how to structure the data in my excel-file. Company, date, stock price, forecast. Should I do it in two steps manually or is it possible to do it all at once?
Summary of what I need to do:
1. Divide all stocks up in 10 portfolios based on the forecasts
2. Calculate the actual return based on the prices of the stocks
3. Do 1) and 2) for every new month to constantly rebalance the portfolios to account for changes in forecasts.
As a beginner at Stata all help is appreciated!
Regards
Summary of what I need to do:
1. Divide all stocks up in 10 portfolios based on the forecasts
2. Calculate the actual return based on the prices of the stocks
3. Do 1) and 2) for every new month to constantly rebalance the portfolios to account for changes in forecasts.
As a beginner at Stata all help is appreciated!
Regards
Comment