Oisigma/Blog
Research & notes

Where Long Price Histories Come From

A 97-year test needs 97 years of data, and data that old does not arrive in one tidy file. Where it comes from, how gaps are handled and which choices are made along the way are part of the result, not a footnote to it. This article sets out where Oisigma's price histories came from, as documented in the FAQ and the working paper, and why data handling deserves the same scrutiny as the model.

Why is data handling part of a result?

A containment rate is a property of a band and a data series together. Run the same band on two versions of the same market's history and the numbers can differ, because the band only ever sees what the series says happened.

The mechanics make this concrete. Oisigma's band is built from a rolling window of recent percentage returns, 60 bars by default, and it is scored on whether the next close lands inside it. A single bad print, or a share split left unadjusted, creates a return that never happened. That one false return can register as a close outside the band, and it then sits in the window for the next 60 bars, widening every band drawn in that time. One data error can touch dozens of scored days.

The reverse also happens. A missing stretch of data can hide a real move, and a series stitched from two sources can carry a jump at the seam that belongs to neither market. None of these are model problems, but all of them change the number. That is why a published result is only as checkable as its data is documented.

Where did the series come from?

The FAQ sets out the sources. Financial Modeling Prep, usually shortened to FMP, supplied most of the long daily series for equities, ETFs, FX, commodities and crypto. Where that source left gaps, curated CSV files in the Yahoo Finance format filled them. VIX data, used to identify high-volatility conditions, came from FMP starting in 2005.

The working paper's Appendix D itemizes the tickers, dates and data-handling choices, and the FAQ states that the numbers are reproducible from documented data and code. Those are the documented facts about sourcing, and this article does not add to them. Anyone who wants the detail behind a particular series can find it in the working paper.

The long series and the short ones

Only one series in the study runs for 97 years: the S&P 500 cash index, starting in 1928. Over 1928 to 2024, the inner band contained the next close on 71.2% of 24,248 days, and that figure sits within a wider study of 40 instruments in five asset classes. Past behavior is not a guarantee of future results.

Every other instrument has a shorter history. On the Proof page, EUR/USD runs from 2004, ES and ZN futures from 2005, gold futures and oil futures from 2000, Bitcoin from 2014 and Ethereum from 2018. Stating each start date matters, because a result across many markets mixes histories of very different lengths, and a market with ten years of data has lived through far fewer regimes than one with a century.

The S&P 500 cash index also carries a quirk of its own. It is not tradable. SPY is its tradable wrapper, and SPY's own series in the study starts in 1995. The long history exists for the index, not for any instrument a trader could have held across all 97 years. The 97-year test post covers what that long series shows.

What does filling gaps mean?

A data gap, in this sense, is a stretch of history or a ticker that the main source did not cover in full. It is a different thing from a price gap, where one session opens away from the previous close. Price gaps are real market events and belong in the data; the post on gaps and volatility bands covers how the band treats them.

The documented fact is that curated Yahoo Finance-format CSVs filled the source gaps, with handling choices itemized in Appendix D. Beyond that, this article does not describe how individual gaps were treated, because the live pages do not.

What can be said in general is which questions matter for any long backtest built from more than one source. Which source covers which period? Where are two sources joined, and does the join create a jump? How are splits and other corporate actions handled? Was anything dropped, and why? A study that answers those questions in writing is easier to trust than one that does not, whatever its headline number.

Why do closes matter so much?

The band is built and scored on closing prices. That makes the accuracy of the close the single most important field in the data. An error in an intraday high or low would not change a containment figure at all; an error in a close changes both the band and the score.

It is also why the band works on chart types that use real closes, such as standard candles, OHLC bars, line and area charts, while charts with synthetic closes, such as Heikin Ashi or Renko, display the bands but fall outside the paper's statistics. The post on why closing prices matter explains the reasoning.

What can a reader check?

The most direct check is to rerun the containment test on a different data source. If a second vendor's history of the same market gives a materially different containment rate, that difference is information about the data rather than about the band, and it is worth knowing which. The guide to backtesting a band indicator sets out the method.

A reader can also go straight to Appendix D and compare the documented tickers and dates with the rows on the Proof page. A result that names its sources can be checked against them. Like the rest of the study, this concerns calibration only, not the profitability of any use of the range.

The takeaway

Long price histories are assembled, not found. Oisigma's came mostly from FMP, with curated Yahoo Finance-format CSVs filling gaps and VIX from FMP from 2005, and the tickers, dates and handling choices are itemized in the paper's Appendix D. Only the S&P 500 cash index runs back to 1928. Because a single data error can move both the band and its score, the documentation of the data is part of the evidence, not an appendix to it.

Frequently asked questions

Is free historical stock data good enough for backtesting? It depends on the test. For a close-based coverage test, what matters most is clean closing prices and consistent handling of splits and other corporate actions. Checking a sample of the series against a second source is a simple way to catch the errors that matter.

Do different data vendors give different backtest results? They can. Small differences in closing prices, adjustment methods or the treatment of holidays and missing sessions all change the return series, and a rolling band carries any error forward for the length of its window. Documenting the source and the handling choices is what lets two results be compared.

Why is the S&P 500 index used for the longest test instead of SPY? Because the index has a daily history running back to 1928, while SPY's series in the study begins in 1995. The index itself cannot be traded, so the long result describes the index's behavior rather than any tradable product's.

If you want to see the range on the data your own charts use, the 30-day free trial gives full access to the indicator on TradingView, then $15 a month, and you can cancel anytime. You can start the trial here.

‍

Now, your charts

Curious how this looks on your charts?

Try it free for 30 days and see the range update as new bars print, on whatever symbols and timeframes you actually trade.

Start your free trial
Complete checkout
Read the paper

30 days free, then $15/mo. Cancel anytime from your account.

Pick up where you left off.