How to analyze forex data

This Excel how to analyze forex data downloads historical Forex data from the Internet. You can ask for bid, ask and mid rates for a range of historical currencies. The spreadsheet is easy to use.

You simply enter two three-letter currency symbols, two dates, and specify whether you want the bid, ask or mid price. Now you can analyze and plot the forex data using all of Excel’s functionality. As an example, the spreadsheet plots the exchange rate data. If you wanted, you could easily add Bollinger Bands to the plot. I’d appreciate a link to investexcel. This is free Forex data that we’re downloading, and in no way shape or form compares with paid services. Using the VBA programming principles used in the spreadsheet, you can easily use other tools, like Access databases, instead of Excel.

You may also be interested in this spreadsheet which downloads historical stock prices from Yahoo straight into Excel. The spreadsheet is in Excel 2010 format. Update 29th July 2011: I’ve removed the password. Enjoy, and please come back and let me know what cool Forex applications you’ve made with it. I’ve added an option to request the bid, ask or mid price. I am interested in working this code into an existing workbook I have made. This looks like an awesome tool and will do most of what I need it to do.

How can I go about getting that password for the VBA code though so I can validate a few things? Let me know what you super cool applications you come up with! It looks like a terrific tool to use with excell. I’ve just tried the spreadsheet in Excel 2010 and it works perfectly for me. When you loaded the spreadsheet in Excel, did you give the macro permission to run? To Currency and re-running over and over?

Win, and it works as expected. I found your code very useful and have embedded it into one of my sheets. I would suggest updating the connection on each refresh rather than creating a new one as all of the connections will be refreshed on open unless this property is turned off on creation. It is possible to modify to show the open, high, low, and close? I only had a problem using it on a german Excel version as the decimal separator was not correctly recognized. This could be overcome letting Excel know which character to recognize as the decimal separator. Thanks a lot, you saved me plenty of time.

Thanks a lot for this very useful tool! I’d be looking at buying a commercial service, so thanks a lot! One question: is there any way to get this thing to update automatically without pressing the button? Thank you for this very useful program. One thing I want to do is input either daily or weekly in the parameters box. I would like to do this from the Parameters box but it doesn’t seem to work even though I have declared the variable in the code as you have done. Thank you so much for this.

I still get the Bid price. As Maria reported, it’s not giving the mid market rates. I think the URL you are building in the macro is an old one. I tried to re-write the macro building a new URL which appears to work but then the section of code which creates the data sheet breaks. Any chance you could have a look? I guess the bit I’m not quite unlocking is how your code saves the table as comma separated values.

So I sort of figured it out. The URL you used builds a link to a download file, whereas the one I posted above links you to a table on a web page. Plus, if you use bid, ask, or mid it does return different numbers. OANDA has changed its website in the past days. I am using a macro I built from scratch 2 years ago but I cannot find a good source website now to get exchange rates. Are you providing the daily average? Your sheet provides results also for the weekends although FOREX is not open then.

I double checked today again and I am getting weekend results. If you could spare a moment to address these I would be very appreciative. It’s awesome to get codes ready for updated sheets. However, I am also looking if there is any possibility to get the rates from Oanda. On a particular date, if we need exchange rate for these many currencies.