Backtest a 0DTE options strategy without writing code
The rules fit in a sentence. Type the sentence, and the assistant writes the strategy, tests it against hosted minute-level option chains, and reads the result back.
Same-day SPX strategies are simple to describe and awkward to test. Sell a 16-delta condor at 10:00, take half the credit, stop at twice it, flatten before the close. And then testing that means either writing code against an options dataset you do not have, or trusting somebody else's screenshot.
Here the sentence is the input. The assistant that comes with the app turns it into a real strategy, and when what it wrote will not run, it is told exactly what is wrong and fixes it, with nobody in the middle.
First it shows you its plan. Say go, and it writes the strategy, runs the backtest and reads the numbers back. It can test SPX, XSP, RUT, SPY, QQQ and IWM over their full history.
What to put in the sentence
A request is a paragraph of ordinary English, with no syntax to learn. It does have to be specific: a vague request comes back with a strategy that is technically what you asked for and not at all what you meant.
Five things are worth saying out loud. You do not have to say them in this order, or in one message; the assistant will ask about anything you leave out.
- 01
The underlying, and that it is same-day
Name the index or ETF and say 0DTE, or same-day. Without it you will get whichever expiry the assistant thinks you meant, and on SPX that is a different strategy entirely.
“a 0DTE SPX iron condor”
- 02
When it opens
Either a clock time or a condition. The assistant handles both, and the difference is really whether your rule has a trigger or a schedule. A condition can watch the index itself, an opening range you define, or any of the indicators below.
“enter at 11:00 ET, only when RSI(14) is between 47 and 53”
- 03
What it opens, and where the strikes go
The structure, and how you want its strikes chosen. Delta is the usual language for a same-day position, but a distance from spot, a fixed strike or a target credit all work.
“sell 8-delta calls and puts with 20-point wings”
- 04
What gets it in, and what gets it out
A minimum credit is what decides whether a fill is worth taking at all. Then the exits: a profit target, a stop, and (on a same-day position especially) a time.
“require at least 0.75 dollars of credit, stop at 3x the credit, close at 15:45 ET”
- 05
The window, and the question
Give it dates to test over and ask it something. The question at the end is what gets the result read back to you, and asking to be told honestly whether it made money is a fair thing to ask.
“backtest it from 2021-01-04 to 2023-12-29 and tell me how it did”
Say when it closes. A 0DTE position that reaches the bell does not politely expire worthless. It settles, and if it settles in the money it settles against you at whatever the index does in the last minutes. A profit target and a stop only fire when the position reaches them. A time exit fires regardless, so on a same-day strategy it is what keeps the last minutes of the session inside the rule you tested. Ask for one, and the assistant will hold you to it.
For a whole request with every part spelled out, see the SPX 0DTE morning-trend credit spread in the example strategies: the prompt word for word and the backtest it produced.
The same questions come before any backtest, with or without an assistant. Before you backtest, make the strategy precise goes through them one at a time.
The indicators it knows
A same-day rule often turns on an indicator: wait for RSI to sit in a band and for two moving averages to agree, or want them confirming a breakout before trading it. You do not pick these from a menu. You name them in the sentence, the same way you would say them out loud.
So the list below answers whether the assistant can express your rule. There are eleven, and this is all of them.
Moving averages
- SMASimple moving average: every minute in the window counts the same.
- EMAExponential moving average, weighted towards the most recent minutes.
- WMAWeighted moving average, falling off linearly rather than exponentially.
- HMAHull moving average: smoother than the others and quicker to turn.
Momentum
- RSIRelative strength index, the usual way to say overbought or oversold.
- ROCRate of change: how far price has moved over the window, as a percentage.
- MOMMomentum: the same move in points rather than percent.
Dispersion
- Standard deviationHow far price has been ranging over the window, the plain measure of how busy the session is.
- Z-scoreHow far price sits from its own mean, counted in those standard deviations.
The two with their own settings
- Bollinger BandsA period and a standard-deviation multiplier. Ask for the upper, middle or lower band, or for %B (where price sits between them).
- MACDA fast, a slow and a signal period. Ask for the line, the signal, or the histogram between them.
Any of them can be compared against the index itself, against a plain number, or against another indicator. A moving average crossing another moving average is two operands, not a special case. The comparison is one of above, below, crossesAbove, crossesBelow, and the last two mean what they say: crossing is an event on the minute it happens, not a state that stays true afterwards. Stack as many conditions as you like and every one of them has to hold. They combine with AND, so each one you add makes the strategy trade less.
The unit that catches people out: indicator periods here are in minutes, not days. Ask for a 20-period moving average on a same-day strategy and you get one twenty minutes old. That is the right unit for a position whose whole life is one session. But a rule carried over from a daily chart needs translating rather than copying, and the assistant will take the number you give it at its word. If you mean the daily chart, say so in the sentence.
0DTE is the DTE = 0 case
0DTE stands for zero days to expiry: an option traded on the day it expires.
That decides how much of the rest of the product applies to you: there is no separate same-day engine. A strategy declares which expiries it may trade, and 0DTE is what you get when that number is zero. The machinery that prices, fills and settles a 45-day position is the machinery that does it for a same-day one, which is also why you can ask for either, or both, in the same sentence.
What you cannot ask for is an underlying the hosted chains do not cover. There are six, all at minute resolution, and the app shows you which dates each one holds when you set a backtest up:
| Underlying | Roots | Settlement |
|---|---|---|
| SPX S&P 500 index | SPX, SPXW | Cash-settled, European |
| XSP Mini S&P 500 index | XSP | Cash-settled, European |
| RUT Russell 2000 index | RUTW | Cash-settled, European |
| SPY S&P 500 ETF | SPY | Physically settled, American |
| QQQ Nasdaq 100 ETF | QQQ | Physically settled, American |
| IWM Russell 2000 ETF | IWM | Physically settled, American |
Two of those columns change how a result should be read. Where an index lists its dailies under a separate weekly root (SPXW for SPX, RUTW for RUT), a same-day request is really a request for the weekly root, which is why a strategy naming only the monthly one would have nothing to trade on most days. And a short SPY, QQQ or IWM leg is American-style: it can be assigned before expiry and leave the long leg of your spread standing on its own. The index options never do that. They settle in cash.
What the backtest then does with it
Your sentence decides what is attempted. What the run reports depends just as much on how an attempt becomes a fill: which price a leg gets, when an order is allowed to fill at all, what commission is charged, and what the simulation deliberately refuses to model. That is a longer argument and it has its own page.
It is worth reading before you trust a number from any backtester, ours included: a same-day condor is four legs crossing a spread twice, so on a 0DTE strategy the fill assumption is frequently the whole result. The fill-price problem shows how to test how much of a result depends on it.
Three things 0DTE makes harder
Not every past weekday had a same-day expiry
Daily expirations were phased in over time. SPX did not always list one on all five weekdays, and the other five underlyings filled their calendars in on their own schedules, so a backtest window reaching back far enough contains sessions with no 0DTE contract to trade, and the engine passes over them. Nothing is wrong when that happens, but your strategy ran on fewer days than the window suggests. Ask how many trades it actually took; a good answer names the count, not just the average.
A condor is one managed position, not two spreads
An iron condor is a single position, and that is the unit a stop or a profit target acts on. Its two sides contribute their legs to that one position. They are not entered, stopped or closed separately. So if your rule manages the put side independently of the call side, say that: ask for two credit spreads rather than a condor, and you get two positions the engine runs on their own. Ask for a condor and you get one, however the sentence was phrased.
Orders fill whole or not at all
The simulator cannot report a partial fill. On a liquid SPX spread that is a fair approximation; on a wide same-day wing late in the session it is the assumption most likely to flatter you. It is one of several assumptions the methodology page lists.
Ask for one
The assistant comes with the app, and so does the data every backtest runs on: all six underlyings at minute resolution, so you have no data to source or connect. What it writes lands in your library as a real, versioned strategy: you can open it, read it, change it by hand, and run it again. And it can write and test all day without ever being able to place a live order.