Test My Legs Guides

Manual vs automatic options backtesting

There are two ways to test an options idea on the past. You can step through history yourself, one trading day at a time, deciding as you go. Or you can write the rules down and let software run them over years of data. They answer different questions.

Automatic backtesting: fixed rules over many dates

A rules-based backtester takes a recipe and applies it to every entry date in its data. The entry is usually set by delta and days to expiry: "sell a 30-delta put and buy a 20-delta put, about 45 days out". The exit is one of a few fixed rules: a profit target (close at half the credit), a stop loss (close when the loss reaches some multiple of the credit) or a number of days held. Many such tools do not roll at all: a trade opens, and one of the exits closes it. Some are offered by a brokerage and need an account there. You get totals over hundreds of trades quickly.

Manual backtesting: one day at a time

In a manual backtest you open a position on a past date and press Next day, seeing each day's real prices without knowing what comes next. Every roll, close or hold is your decision with only what that day showed.

A manual decision on real prices

Here is the kind of moment a fixed rule decides for you, and a manual backtest makes you decide. On Monday 15 July 2024, with SPX at 5,625.88, a put credit spread was opened in Test My Legs with the ready-made Credit spread's own values: sell the 5535 put and buy the 5445 put, both expiring 30 August 2024 (46 days out). It filled at 46.95 and 31.00, a credit of 15.95 or $1,595. The app showed a maximum loss of $9,000 (the 90-point width, before the credit).

Then Next day, one trading day at a time:

DaySPXSpread P&L
Tue 16 Jul 20245,660.80+$265
Fri 19 Jul5,503.88−$1,465
Wed 24 Jul5,438.40−$2,550
Wed 31 Jul5,535.50−$1,240
Fri 2 Aug5,333.05−$4,200
Mon 5 Aug5,169.30−$5,405

On 5 August, 25 days before expiry, SPX was below both strikes. The spread was valued at 70.00 of its 90-point width: the 5535 put at 365.95 against the 5445 put at 295.95.

The account on 5 August 2024 with the CS-1 group: the short 5535 put and the long 5445 put, both expiring 30 August, and an unrealized loss of 5,405 dollars
5 August 2024: each leg's price and P&L, and the spread's −$5,405.

Now you choose, with only what that day showed. Close it and take the loss. Hold it for the 25 days left. Or roll it: tick both legs, press Roll leg(s)…, tick flat to keep the same strikes and type how many days out the new expiry should be. The preview prices the roll before anything fills: moving both legs to 19 September 2024 would cost about 9.15 at mid, or $915, in exchange for more time.

The roll preview on 5 August 2024: the long 5445 put and the short 5535 put each rolled from 30 August to 19 September 2024 at the same strike, with each leg's best, mid and worst price
The roll staged on 5 August 2024: each leg's new expiry and the price range it would work in.

This example stops at the decision on purpose: which choice was right depends on days you have not seen yet. In the app you press Execute or Cancel, keep pressing Next day, and can go back to 5 August to try the other choices.

The other guides are manual backtests too: an SPX iron condor in June 2024, a put credit spread on the same dates, a TQQQ spread in May 2022 and an iron condor through the 2008 crash.

When each fits

The two also work together: step through a few dates by hand until you know what your trade does on a good day and a bad one, then test the rule you settled on across many dates. Then go back and step through the worst stretch the totals show, by hand.

In Test My Legs

Test My Legs is built for the manual kind: real recorded option prices (SPX and XSP from 2007, TQQQ and SOXL from 2010), one trading day at a time, with a preview before every fill, rolls, closes and adjustments on any day, and the option to go back to any day you have played and try another choice. It is free to start.

It can also run a written rule for you. With Test with AI you describe a strategy in plain words, read the plan the app makes of it, and press Run: it plays the plan out day by day over the dates you pick, on the same real prices, and you can pause and look at any day on the way. The Test with AI guide walks through one run.

The example above is one real run in Test My Legs on the recorded SPX option prices of July and August 2024. Backtests describe the past under simplified assumptions. They do not predict future results, and nothing here is investment advice.

Try it on another date yourself. Test My Legs is free: pick a past day and step through it.

Start now