Test a scenario
See what a market's price did after the days its score met a condition you set, against every day the test could measure.
Did the S&P 500 rise more often after days with a bullish bias? Scenario backtests answers questions like this from MarketBox's own stored daily scores. Set a condition, such as a total score of +5 or more, and the page shows how the price moved over the following sessions, side by side with Every tested day in the same history, matching days included.
That second group is what makes the result worth reading. A market that usually rose after a strong score tells you little if it usually rose anyway.
Set up a scenario
Step 1: Pick an instrument
Choose from the Instrument list. Futures show in the list but cannot be picked: their prices jump at each contract roll.
Step 2: Set the condition
Under When, pick the Total score, the Bias or a factor with stored scores for that instrument, such as Trend. For a score, choose Is (At or above, At or below or Equal to) and a Value. For the bias, choose a reading such as Bullish.
Step 3: Choose how far forward
Under Sessions forward, measure the price change 1, 5, 10, 20 or 60 trading sessions later. Each move starts at the first close after 05:45 UTC the next morning, the cut-off for that day's score, so no move starts before its score was set.
Tip
The scenario lives in the page's address. Bookmark or share it to come back to the same test.
Read the result
The reading above the charts sets the matching days against every tested day:
- Days met
- How many matching days have a measured outcome, and how many of them are independent: windows that share no session with each other.
- Rose after
- How often the price was higher at the end of the window, against how often it was higher after any tested day.
- Average and Median
- The typical change over the window, against the same figure for every tested day.
After each condition day draws each case's path as a faint line, session by session, with their median as a thick line and the median of every tested day as a dashed one. When the condition was met shades the matching dates on the price chart, so you can see whether they cluster in one stretch or spread across the history. The table below sets the two groups' Cases, Independent, Average, Median and Rose side by side.
When there are too few cases
Over longer windows, matching days in a row share sessions, so they are not separate results. A result needs at least 20 independent cases. With fewer, the page says why. When a nearby setting has enough cases, such as a looser value or a different window, it shows under Readable with one change: select it to run that test.
How it is measured
- Price changes only: no spreads, fees, dividends or carry.
- Some readings arrived later in the history, so early scores rest on fewer factors. The beside the title says how far the stored history for your test reaches.
Warning
A backtest describes past days. It runs no significance test, and a gap from every tested day is not a proven edge or a promise for the next time.