How To Use Excel For Trading

By Jeff McCombe


Excel is widely used by hedge funds and professional traders to manage trades, calculate P&L, compute buy and sell signals, and much more. These capabilities are available to the average trader, many of whom already use charting software to help with their trade strategies, often with limited success. Including Excel in your trading workflow process can deliver high value in terms of profitability, discipline and consistency. There are a few things you need to learn, but it is achievable with a little effort and the benefits can be very significant to your bottom line.

There are many ways to use Excel for trading, and your first consideration should be narrowing down your intended use of the tool. Will you use it to compute trading signals? Is your interest importing data automatically into Excel? How about calculating profits, drawdowns, risk and other analytics? Do you have many open positions you need to track? Would you like to integrate Excel with a charting platform? Are you interested in automating your workbooks with VBA to increase speed and accuracy?

Bringing price and volume data into a spreadsheet automatically is one way to implement Excel for trading. This uses DDE links to a price data database, either an internal or vendor provided database. DDE links are efficient and can capture fast moving prices (with certain limitations relevant to algorithmic trading). Importing price and volume data into Excel with web query functionality is an alternative to DDE links. This works if you want to capture a smaller volume of prices or economic data from websites like Yahoo Finance, Google Finance, etc. You can also import data into Excel using the Data from Other Sources function. This connects to SQL Server, MS Analysis Services, XML files and ODBC -- this is a good option for the technically minded.

Excel for trading depends on data. Once that's imported, what will you do with the data? Good options are watch lists, blotters, P&L statements, portfolio trackers, trade logs and heat maps. These can be used for intraday or historical analysis, trading performance, risk and trade management. Analytics like delta, drawdown, maximum adverse excursion, maximum profit realized or stop loss points can be calculated and displayed. There are unlimited uses of Excel for trading so feel free to let your imagination flow.

You should spend some time planning your spreadsheet designs before you implement Excel for trading. A good modular design helps understand the data flows and makes testing for accuracy much easier. Being able to find what you need when you need it is critical during a trading session. Several simple spreadsheets linked together can often be better and more efficiency than a single large spreadsheet with multiple tabs. It really depends on your preference and your system resources available. As you build out your spreadsheets keep in mind that it's easier to manage small workbooks and the tend to run faster. Whether you have single or multiple workbooks, each spreadsheet should have a specific purpose. A few caveats: external links can become corrupted and slow things down so be careful with them. More than 15,000 rows of data can slow Excel down. Make sure you back things up regularly. Charts should be used sparingly for intraday use, as your charting program is probably much better at this than Excel and charts tend to bloat your files.

Considering these factors beforehand will help you put together the best Excel for trading layout to achieve your specific needs.




About the Author: