I have a confession to make: I am a recovering CPA. Please don't tell anyone.

But you don't have to be a CPA to figure out how we calculate our daily, monthly, yearly and annualized returns in our backtester.

Let's take a simple example, a backtest for a long IBM call, the default backtest in Wheel. Run the backtest without changing any default parameters, click on the backtest name to see the report, and hit the Download button in the top right hand corner.

You will get a zip file in your Downloads folder and you want to open the zip and click on the folder called 'Strategy Outputs'. In that folder will be OptionReturns.csv, OptionStats.csv and OptionTrades.csv.

TotStratP&L\$ of (\$2,541.80) which it does. Let's turn our attention to Jan 2007 return of -1.14%. How is that calculated?

The daily return for 1/5/2007 was -0.36% =~(\$1.55-\$1.875-\$0.01)/\$98.31. As in the following pic, in cell B3 the 1/5/2007 daily return from the file OptionReturns.csv matches. Do this for each day in January and sum the daily returns and you get -1.14%, matching the Jan '07 returns in the OptionStats.csv above.

The annual return for 2007 is just adding up the months starting with -1.14% for January and ending with -0.94% for December and getting 4.31%.

To get the overall annualized return for the strategy of -1.46%, get an average of all the monthly returns, here -.12% and multiply that average monthly return by 12 to annualize and get -1.46% matching the OptionStats number.

Aug
07

New Backtest Feature: Enter Trades Based on Premium Divided by Strike Difference

For spread strategies, you can now define the premium compared to the strike difference for...