It's great to be able to backtest algorithms, but I'm always thinking about the costs involved if I were to go live:
- Commission
- Slippage
- Taxes
We have models for commission and slippage, but no way to model taxation costs. To mimic the benchmark you'd be buying and holding the SPY, which means you'd only have to pay long-term capital gains when you liquidate the position at the end. With many of the algorithms we simulate you're buying and selling assets throughout the year and each time you sell you add to your short-term capital gains (most likely) bill for the next year. Then, once a year, you have to liquidate a portion of the portfolio to pay your tax bill and that leaves you with less capital to trade with.
I know tax rates can be tricky to calculate, because they're different year-to-year and depend on activities outside of your trading. But, I think it'd be great if the backtester had a simple model we could use to at least estimate the effect of taxes on an active trading strategy as compared to a buy-and-hold strategy.
Any thoughts?