Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Continuously updating chart for stock prices

Status
Not open for further replies.

Marco123

Programmer
Dec 31, 2010
23
GB
Hi All,

I am trying to create a chart in Excel VBA that continuously updates with (historical) stock prices and P&L for backtesting a trading strategy. The user will be able to see the chart update i.e. the graph moving up or down and P&L change accordingly.

Essentially, I would like to create/code the functionality seen in this video clip.


It doesn’t need to be quite as sophisticated as in this clip but I am looking to create a chart that the user can see updating, and old data will eventually “drop off” at the back of the chart, as shown in the clip.

I am fairly competent at VBA, and my first thoughts would be to create a graph in VBA, then run a loop that automatically updates the data, and have some kind of delay (application.wait etc) so the user can see the chart changing.

Any ideas?
 


hi,

Did you visit his site and download his file?

What have YOU tried so far?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Unfortunately it’s not free to download that backtesting spreadsheet shown in the clip. Moreover, even if I did there is still a chance the VBA code could be password protected.

Though, I have tried at a very basic level pretty much what I mentioned in my previous post and it appears to work.
 



Well than I guess it's your loss.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top