Options Backtester: test option strategies on historical option prices

Pick a stock or ETF and an options strategy, say when to open and close each trade, and see how it would have done, trade by trade, on our own end-of-day option prices going back to 2015. Then save it, and track the strategy from today on in a portfolio.

The options backtester is included with Market Chameleon Premium.

Options backtester results for selling 30-day SPY puts every week for three years: total profit, win rate, trades, average per trade, biggest dip and profit over time compared with owning 100 shares
Example from the backtester: selling a 30-day SPY put every week for three years, closing at expiration. Hypothetical results.

Strategies you can backtest

Choose the days to expiration and the strike by delta (for example a 0.30-delta put about a month out), and the wing distance for spreads and iron condors.

Sell a put (cash-secured)Collect premium; you may have to buy the stock at the strike.
Covered callOwn 100 shares and sell a call against them for income.
Buy a callA bet the stock rises; you can lose only what you pay.
Buy a putA bet the stock falls, or protection; you can lose only what you pay.
Bull put spread (credit)Sell a put, buy a lower one: collect premium with a capped loss.
Bear call spread (credit)Sell a call, buy a higher one: collect premium with a capped loss.
Bull call spread (debit)Buy a call, sell a higher one: a cheaper bet on a rise.
Bear put spread (debit)Buy a put, sell a lower one: a cheaper bet on a fall.
Iron condorSell a put and a call, buy further-out wings: profit if the stock stays in a range.
Short strangleSell a put and a call: profit if the stock stays in a range (losses are not capped).
Long straddleBuy the at-the-money call and put: profit from a big move either way.

When to trade and when to close

  • Every week or every month - a new trade on a fixed schedule, entered at the open, at midday or at the close.
  • Around earnings - open a set number of days before each earnings date and close after it, or skip any trade that would be open over earnings.
  • After large option trades - follow the day's biggest option purchases in a stock (for example every $1 million call buy) and see what copying them would have done.
  • Only in the right conditions - limit trades to days when implied volatility rank is high or low.
  • Exits - take profit at a share of the premium, cut losses with a stop, close a set number of days before expiration, hold for a fixed number of days, or let the options expire.

Prices you could really have traded at

Run a backtest at the midpoint between the bid and the ask, or with real fills: buy at the ask and sell at the bid, only in options with a tradable market (a bid and an ask above zero and a spread no wider than $0.10 or 25% of the midpoint) and enough liquidity (open interest of 100 or more, or volume of 10 or more). With real fills an exit waits for a day the option can actually be traded, and commissions come off every trade - so a strategy that only works on paper shows up as one.

What you see

The bottom lineTotal profit or loss for one contract per trade, the win rate, and the average profit per trade.
RiskThe biggest dip from a high point, the best and worst trades, and the profit factor (dollars won per dollar lost).
A fair comparisonThe same period's result for simply owning 100 shares, on the profit-over-time chart.
Every tradeEntry and exit dates, strikes, prices, days held and why each trade was closed.

Save strategies and track them live

Save any backtest, then add it to a portfolio. From the next trading day the portfolio runs the same rules forward on end-of-day prices with real fills, next to the backtest's own record, so you can see whether a strategy keeps doing what the history said. Market Chameleon keeps example portfolios too, from income strategies to earnings plays.

Example backtests you can open as a member

  • AAPL - buy 60-day calls every month
  • SPY - follow $1M put buys
  • NVDA - follow $1M call buys
  • NVDA - straddle into earnings
  • MSFT - iron condor over earnings
  • AAPL - iron condor over earnings
  • SPY - 45-day iron condor, take half
  • SPY - covered calls every month
  • QQQ - sell 30-day puts every week, take half
  • SPY - sell 30-day puts every week, take half

Questions and answers

What is an options backtester?

An options backtester replays an options strategy on past market data to show how it would have done: every trade it would have opened and closed, the profit or loss of each, and the total over the test period. Market Chameleon's backtester does this for U.S. stocks and ETFs using our own historical option prices.

What data does the Market Chameleon options backtester use?

End-of-day option prices - bid, ask and closing prices for every listed option - for U.S. stocks and ETFs since January 2015, together with daily stock prices, earnings dates and our record of large option trades. Trades can be entered at the open, at midday or at the close.

How are option trades filled in the backtest?

Two ways. At the midpoint between the bid and the ask, or with real fills: buying at the ask and selling at the bid, only in options with a tradable market (a bid and an ask above zero and a spread no wider than $0.10 or 25% of the midpoint) and enough liquidity (open interest of 100 or more, or volume of 10 or more). With real fills an exit waits for a day the option can actually be traded. Commissions are taken off every trade.

Which option strategies can I backtest?

Sell a put (cash-secured); Covered call; Buy a call; Buy a put; Bull put spread (credit); Bear call spread (credit); Bull call spread (debit); Bear put spread (debit); Iron condor; Short strangle; Long straddle. Choose the days to expiration and the strike by delta, plus the wing distance for spreads and iron condors.

Can I backtest trades around earnings or after large option trades?

Yes. Besides opening a trade every week or every month, you can open one a set number of days before each earnings date and close it after, or follow the day's largest option trades - for example every $1 million call purchase in a stock - and see how copying them would have worked.

Can I track a strategy after the backtest?

Yes. Save a backtest, then add it to a portfolio. From the next trading day the portfolio runs the same rules forward on end-of-day prices with real fills, so you can compare how the strategy does from here on with what the backtest showed. Market Chameleon keeps example portfolios of its own.

Who can use the options backtester?

The backtester is included with Market Chameleon Premium. The guide to how it works, with worked examples, is free for everyone.

Is a backtest a prediction or investment advice?

No. Backtest and portfolio results are hypothetical: no trades were placed and no money was invested, and past results, actual or hypothetical, do not guarantee future results. They are for research and education, not a recommendation to buy or sell any security.

Test your strategy before you trade it

The options backtester, its portfolios and every Premium report and screener are included with Market Chameleon Premium. Read the guide to the backtester to see exactly how it works, with worked examples.

Important: hypothetical results, not investment advice. The backtests and portfolios on these pages are hypothetical. They show what a set of rules would have done on historical and end-of-day option prices; no trades were placed and no money was invested. Portfolios apply the same rules going forward from the day they were added, using end-of-day prices; they are not real accounts and do not reflect actual trades.

Hypothetical or simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Since the trades have not been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. Results reflect the fill and commission assumptions stated with each test and may not reflect taxes, margin requirements, early assignment, dividends or other costs.

Stock and option trading involves risk that may not be suitable for all investors. Options involve risk and are not suitable for all investors; before trading options, read Characteristics and Risks of Standardized Options.

This information is provided for informational and educational purposes only and should not be construed as investment advice, or as a recommendation to buy or sell any security or to follow any strategy or portfolio. Neither Market Chameleon nor any other party makes warranties regarding results from its usage. Past performance, actual or hypothetical, does not guarantee future results. Please consult a financial advisor before executing any trades.

Market Data Delayed 15 Minutes