I've worked with Excel for a long time, but my data has almost always been "flat." I want to create a kind of trading workbook though, and I have a feeling I'm going to need to use VBA.
This is what I envision: A "price table" which has a first row connected to an API or DB which provides current prices etc. The table would be about 30 rows deep. Let's say that the data feed row is #2.
What I want to do is have the data in row 2 move down to row 3 every time row 2 updates. And of course, the old row3 moves down to row 4... until we reach the last row (say 32). At that point the oldest data falls off the table, as it is no longer needed.
Assuming I can get the database/price feed working, what would be the best approach for updating the table in the fashion I describe above? It's fine with me if we put a timer in the solution, so that the updates are every 15 minutes, rather than every time the dynamic first row updates.
Other parts of the workbook would read the table and perform various calculations to assist with trading decisions.
So I'll be interested in your advice here.
Thanks!
Bookmarks