Test My Legs Guides

Test a strategy with AI: describe it in plain words

Test with AI turns a strategy written in plain words into a plan made only of things the app can do, then runs that plan day by day on the real historical option prices. Here is one run from start to finish: a put credit spread on SPX, opened again and again from January to March 2023.

1. Start a test, then press Test with AI

Start a test on the first day you want, as for any backtest. This example starts on Tuesday 3 January 2023 with $100,000. Then press Test with AI in the top bar. The window opens with the test day as the start; pick the end date (here 31 March 2023) and describe the strategy in your own words:

Sell a put credit spread on SPX, 30 delta, about 30 days out. Close it at 50% profit or at 21 days to expiry, then open a new one.

2. Read the plan before anything runs

Press Make the plan. The app shows what it understood, in plain words, and nothing has traded yet:

The Test with AI window with the strategy typed in and the plan below it: open a Credit spread on SPX, puts, about 30 days to expiry, sold leg at delta 30, hold one at a time, close at 50 percent of the credit or at 21 days to expiry
The plan for 3 January to 31 March 2023, in plain words. Run is only one choice: you can change the words and make the plan again.

If what you typed is not something the app can do, the window says so instead of guessing. Free accounts get 10 Test with AI runs; making the plan does not use one, pressing Run does.

3. Press Run and watch it play out

Run closes the window and presses Next day for you, once a second. Pause, Resume and Stop sit beside Next day. While it is paused, everything on the page is that day's real numbers, and you can look at any of it:

The account on 1 February 2023 during the paused AI run: the third credit spread, CS-3, short 3920 put and long 3840 put, up 1,150 dollars
Paused on 1 February 2023: the third spread, CS-3, is up $1,150 on a $1,680 credit. When the run went on, it closed it that day at its 50% target.

4. What the run did

Over 62 trading days the plan opened nine spreads, each about 30 days out with the sold put near 30 delta. Each row below is one spread, with the prices it actually filled at:

SpreadOpenedPuts (sold / bought)CreditClosedWhyP&L
CS-13 Jan3,710 / 3,62520.1510 Jan50% made+$1,105
CS-211 Jan3,855 / 3,77518.6020 Jan21 days left+$440
CS-323 Jan3,920 / 3,84016.801 Feb50% made+$1,140
CS-42 Feb4,065 / 3,99013.9010 Feb21 days left−$930
CS-513 Feb4,025 / 3,92519.7522 Feb21 days left−$2,155
CS-623 Feb3,910 / 3,82018.853 Mar21 days left+$485
CS-76 Mar3,950 / 3,87515.1015 Mar21 days left−$2,030
CS-816 Mar3,850 / 3,75019.1024 Mar21 days left+$190
CS-927 Mar3,880 / 3,80015.9531 Mar50% made+$935

Added up, the nine spreads lost $820; with commissions the account ended the run at $99,140.22. SPX started at 3,820.86 and was at 4,105.54 on the last day, so the market rose over the three months, yet two sharp dips (to 3,981.59 on 22 February and 3,891.08 on 15 March) fell on the days two spreads had to close at 21 days to expiry. Those two losses and CS-4's together outweighed the six winners.

What this example shows

This example is one real run of Test with AI in Test My Legs on the recorded SPX option prices of January to March 2023. It is a backtest: it shows what happened on those days, not what will happen next.

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

Start now