- Joined
- 10/4/11
- Messages
- 77
- Points
- 18
hi all,
I am trying to write some code to download from bloomberg and automatically create a time series of future prices which automatically are rolled over. i am using the following packages:
rbloomberg, to download the different series from bloomberg
TimeWarp, to find the 8th day before the expiration
with this 2, it is very easy to treat the data in excel (through a pivot table with all the different contracts in columns and the timeseries is created by offsetting the column by one at every roll over day). I was wondering is anyone has written some code in R on how to perform the above calculation, using any other packages or any other guidance.
thanks in advance,
I am trying to write some code to download from bloomberg and automatically create a time series of future prices which automatically are rolled over. i am using the following packages:
rbloomberg, to download the different series from bloomberg
TimeWarp, to find the 8th day before the expiration
with this 2, it is very easy to treat the data in excel (through a pivot table with all the different contracts in columns and the timeseries is created by offsetting the column by one at every roll over day). I was wondering is anyone has written some code in R on how to perform the above calculation, using any other packages or any other guidance.
thanks in advance,