Sample QQQ Backtest

For this backtest, we’re going to select QQQ as the ticker to test, and we are going to backtest a double calendar. We’ll be backtesting selling a call & put at 3 DTE, and buying the same strikes at 5 DTE. These backtests simulate a more complex style trade, with the Greeks (and legs of the trade!) going multiple directions!

Let’s enter Friday mornings at 9:45. (Reminder, to select Friday just click Weekly=> F on the frequency dropdown.

Our PT will be 30%. We’re not going to set a stop loss right now (more on that later). We’re also going to use a profit action—this simulates scaling out of a trade. At 20% profit, we’ll close half the position.

Now, let’s look at the exit conditions.

Instead of using a SL, we’ll have an early exit. Additionally, we’ll put some guide-rails around movement, in this case exiting the trade if the short leg (either put or call) goes 1 “past” (-1 in the below fields) on the underlying QQQ.

Finally, we’ll add some “standard” misc options, including slippage, commissions and more, as below!

Then we’ll run the test!

Here is the result!

Now, let’s save the backtest.

Since we enabled sharing we now have a link that other subscribers can use the view our backtest: https://optionomega.com/share/jotBiMA6SNAP03brD6zD

Once we’ve named and saved the backtest, we can now something neat– we can run a portfolio of multiple tests!

Let’s do a portfolio!

We’ll start with backtest we just created: https://optionomega.com/share/jotBiMA6SNAP03brD6zD and put it in a portfolio with a second backtest that we have saved: https://optionomega.com/share/wMO4VijkjmfMBnbjzyAv Tip: If somebody shares you a link like this, just click “New Backtest” and re-run the backtest yourself—you can then save or modify it however you would like!

Now that we have 2 backtests saved, let’s click, Portfolio= > New Portfolio

We’re going to select both tests—and run them at a 20% allocation, from May 16th 2022 to July 17th, 2023. Note—with portfolio, the dates you select in the portfolio screen, as well as allocation and max contracts, will OVERRIDE the test conditions.

Run it and there you go—your first portfolio! It’s no problem to combine tickers, different styles, etc. of backtests in a portfolio.

In a portfoio you can now easily review the individual strategies, along with the trade log (all the trades from all the individual strategies), as well as the combined daily P/L and drawdown for all the strategies together. Finnaly, the portfolio may be saved and shared in the same way as the backtests!

As always, we have plenty more resources on our YouTube channel.

This one on portfolios is a good place to start, and here’s one specifically on portfolio allocation.

Last updated