Lightspeed Stats

FREE: 3 Data-Driven Horse Racing Strategies That Could End Your Trading Frustration

Take the guesswork out of horse racing trading. Less research, fewer mistakes, and clearer choices & starting today!

By subscribing, you agree to receive emails from Lightspeed Stats. We'll respect your privacy and you can unsubscribe any time

Improvements to historical price snapshots for backtesting

By Lightspeed Stats •  Updated: 04/20/26 •  2 min read

We’ve made some improvements to our Betfair price importer that provides the prices for the backtesting.

Previously, we took a price snapshot once per second and wrote that to the DB for later retrieval in your strategies. 1-second intervals are obviously pretty granular (already resulting in about 10 million price snapshots per month of data!) and provide a good indicator of price trends and entry / exit points.

However when a race goes in-play, the prices obviously become very volatile and we’ve seen that the price can easily dip below or surge above the “snapshotted” price between snapshots, often for significant enough traded amounts that you would want to be aware of it in backtesting (where you’re basically always interested in whether the price touched a particular level).

To solve this problem without literally writing every tick to the database and needing a data-centre to rival OpenAI’s, we’re now analysing the ticks that make up each snapshot in memory and then storing the highest and lowest values as the snapshots.

The upshot of this is a more reliable indication of whether your entry or exit price was hit and therefore a closer correlation between your simulated backtesting results and your real life trading.

This will most benefit people who are exiting their trades in-running, or those doing lay the field type strategies.

bugs
News
Lightspeed Stats

Getting Started Guide

We just published a “Getting Started” training course to help you get the most out of the Lightspeed website. If you’re new, this will be

Read More »
bugs
News
Lightspeed Stats

Horse Racing Software hotfix

Following the migration yesterday (Nov 26th, we’ve applied a hotfix to resolve some bugs with the logging mechanism in the software. If you’ve seen any

Read More »