cyborgoddess
Registered User.
- Local time
- Today, 02:51
- Joined
- Sep 2, 2004
- Messages
- 19
I've been trying for two years to find a fast way to calculate montly returns for a universe of financial figures. I start out at a set value, (say $10,000) calculate a return based on that month's price change, then paste that number into a table. For the next month, I take that new value, calculate it against the next month's price change to create yet another new value and so on. Each month has roughly 10,000 entries that need to be calculated and I have to do it for 3 and 5 year time frames (so repeat the process 36 and 60 times).
Right now I am using a module that calls a series of SQL Statements to align the data (previous month's return plus new month's price change) then I use a loop to repeat the process 36/60 times.
The problem is that it takes forever, like 16 hours to calculate the returns. I know this isn't an easy project, but is there a better way?
Thanks,
Amy
Right now I am using a module that calls a series of SQL Statements to align the data (previous month's return plus new month's price change) then I use a loop to repeat the process 36/60 times.
The problem is that it takes forever, like 16 hours to calculate the returns. I know this isn't an easy project, but is there a better way?
Thanks,
Amy