VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime
ACADEMY / Backtesting and validation

Free backtesting software for futures: what you can test

Free backtesting software comes in four types: a charting platform's strategy tester, a spreadsheet, an open-source code library and a broker's simulator. Each can replay one simple rule on historical bars. The limits begin when a futures idea needs adjusted roll data, realistic costs, many variants or a validation step.

By · Published · updated · Editorial policy

Contents
  1. Where can you backtest a futures strategy for free?
  2. How do free tools handle futures data and contract rollover?
  3. Do free backtesters include commission and slippage?
  4. Can free software validate a strategy and export it?
  5. Can you backtest options with free software?
  6. When should you move from free tools to a research platform?
  7. Frequently asked questions
  8. References

Where can you backtest a futures strategy for free?

Free backtesting software for futures comes in four types: a charting platform's built-in strategy tester, a spreadsheet, an open-source code library and a broker's simulator. Each one can replay a simple rule on historical bars at no cost. The limits start when the idea needs clean futures data, realistic costs, many variants or a validation step.

A backtest is a replay of a trading rule on old prices, trade by trade, with costs taken out, so you can see what the rule would have done. The four free types all do this replay. They differ in what they ask of you and in what they leave out.

  1. Charting platform strategy tester. You write a short script or pick a rule from a menu, press a button and read an equity curve. Fast to start, limited to the data the platform carries and the cost settings it offers.
  2. Spreadsheet. You paste bars into columns and build the rule with formulas. Every number is visible, which is the best way to learn, but each new idea means rebuilding the sheet.
  3. Open-source code library. You load your own data and code the rule in a programming language. The most flexible free option, and the one that needs the most work before the first result appears.
  4. Broker simulator. You trade a demo account on live or replayed prices. It teaches order handling and discipline, but it tests one day at a time; free day trading simulators versus backtesting shows why the two answer different questions.
A grid comparing four free backtesting tools, a chart platform tester, a spreadsheet, a code library and a broker simulator, on five abilities: no coding, futures data, cost settings, many variants and validation. Each cell is marked yes, partly or no, and no tool gets yes on every row. Each free tool has gaps Yes Partly No Chart Sheet Code Broker No coding Futures data Cost settings Many variants Validation
The four types of free backtesting tool differ in what they can and cannot test, not just in price.

My position: the first backtest is the cheapest step in strategy research, and free tools do it well. The expensive steps come after, and those are the ones a free backtester usually skips. The checklist in backtesting software compared lists the six things to check before paying for anything; the sections below show where each free type stops.

How do free tools handle futures data and contract rollover?

Most free tools load one continuous price series without adjusting for the price gap at each contract roll, so a strategy that holds a position across a roll date earns or loses a gap that no real account would have seen. A futures contract expires. To test several years you must join many contracts into one series. Contract rollover is the point where the series switches from the expiring contract to the next one, and on that day the two contracts usually trade at different prices.

Think of two trains on parallel tracks. You step from the first to the second while both move. If the second train is a few metres ahead, you did not travel those metres; you only changed trains. An unadjusted continuous series records the step as travel. A back-adjusted series shifts the older contract's prices by the gap so the join is smooth, and only the real movement within each contract remains.

A roll gap is not profit: in a hypothetical NQ example, an unadjusted continuous series jumps 100 points at each of two contract rolls, which a held long position books as gain, while a back-adjusted series joins the three contracts smoothly with the jumps removed A roll gap is not profit Hypothetical NQ, long held across rolls Unadjusted +100 pts +100 pts Adjusted Each jump books a fake gain. So: use a back-adjusted series.
An unadjusted continuous contract carries a price jump at each roll date that a held position would never have earned.

Hypothetical example

Suppose the expiring NQ contract closes at 20,000 on roll day and the next contract trades at 20,100. A long position held across the roll shows a gain of 100 index points, or $2,000 per contract at $20 a point, in an unadjusted series. In a real account the trader closed the old contract and opened the new one; the 100 points were never earned. Over 25 rolls in six years, gaps of this size add up to more than many strategies make in total.

Before you trust any multi-year futures result from a free backtesting website or chart platform, check three things:

  1. Which roll method the series uses. Look for words like back-adjusted, ratio-adjusted or unadjusted in the data description. If nothing is stated, assume unadjusted.
  2. Whether your strategy ever holds through a roll. A rule that is flat at every session close cannot be hurt by roll gaps. A swing rule that holds for weeks can be.
  3. Whether the roll dates match how you would trade. A series that rolls on expiry day puts your trades in a thin contract for the last week. Most traders roll days earlier.

The full set of settings, from tick value to roll date, is covered in futures backtesting done right: specs, rollover, tick value, costs. Spreadsheets and code libraries let you adjust the series yourself. Charting platform testers and broker simulators give you the series they have.

Do free backtesters include commission and slippage?

Many free tools default to zero commission and zero slippage, which makes strategies that trade often look better than they are, so enter a round-trip cost in the tool's own units before the first run and compare it with the average trade. Slippage is the difference between the price your rule assumed and the price a real order would have filled at. A market order at a bar close rarely fills exactly at that close.

Costs act like a toll on every trade. A strategy that crosses the toll booth twice a day pays far more per year than one that crosses twice a month, even if both capture the same total price movement. With the toll set to zero, the frequent strategy wins because it has the smoother curve. With a realistic toll, the order often reverses.

Hypothetical example

A frequent rule makes 2,000 trades with a gross average of $40 per trade, for $80,000 gross. A slow rule makes 200 trades with a gross average of $300 per trade, for $60,000 gross. Charge $50 per round trip to both. The frequent rule keeps $80,000 − $100,000 = −$20,000. The slow rule keeps $60,000 − $10,000 = $50,000. The tool with zero defaults ranked them the wrong way round.

Costs flip the ranking: in a hypothetical example a fast rule with ten times as many trades makes eighty thousand dollars gross but loses twenty thousand after a 50 dollar round-trip cost, while a slow rule with 200 trades makes sixty thousand dollars gross and keeps fifty thousand Costs flip the ranking Hypothetical: fast rule trades 10× more Fast gross +$80k Fast net −$20k Slow gross +$60k Slow net +$50k At $50 a trade, the slow rule wins. So: set costs before the first run.
Zero-cost defaults make a frequent-trading strategy look better than a slow one, and adding a fixed round-trip cost reverses the order.

To set the cost you need the contract's tick value. On E-mini Nasdaq-100 futures (NQ) the minimum tick is 0.25 index points, worth $5.00, and one point is worth $20 (CME Group contract specifications). Exchanges can change tick sizes and contract values, so confirm them on the exchange's contract page; the free futures contract calculator shows tick size, tick value and the profit or loss of a trade for the common contracts. With those numbers, two ticks of slippage on NQ is $10, and a broker commission in dollars is easy to add.

What a cost-inclusive report from AlphaPrime (Valynox) looks like is shown below. The run tested NQ daily bars from 2019-01-02 to 2025-06-30, long and short, one contract, with $20 commission and $10 slippage charged on every trade. The rule is a stand-in: an RSI rule as the only entry and exit, with no stop, target or filter, built from a standard indicator rather than the subject of this article. It is the one candidate the search kept out of 1,024 it tried, chosen for its return against its drawdown. Picking the kept one after the fact flatters it, and nothing here says the rule earned this money or that a reader can expect it.

Source: AlphaPrime product engine (CPU), run 2026-10-31. NQ daily bars, 2019-01-02 to 2025-06-30, long and short, 1 contract, $20 commission and $10 slippage per trade.

NumberResult
Net profit (closed trades)$174,845
Max drawdown$75,475
Trades328
Win rate57.93%
Profit factor1.31
Average trade$533.06
Time in market36.32%

The line to read first is the average trade of $533.06. Because commission and slippage were charged inside every trade, that figure is already net, and it is many times the $30 of cost the run charged per trade. A free tool that shows a gross average trade of $533.06 would need you to subtract the costs yourself and then ask whether the remainder still clears zero with room to spare. In AlphaPrime, the backtesting step charges commission and slippage and fills on the next bar in every evaluation, so the ranking of candidates during a search already reflects what an account would have paid.

Can free software validate a strategy and export it?

A free tool usually produces one in-sample result and stops, with no walk-forward windows, no check across the other candidates you tried and no export of the rules to a trading platform, so the later research steps happen by hand or not at all. In-sample means the data you used while choosing the rule and its settings. One in-sample result is the first step of the research path, not the last.

The research path has six steps: define the rule, run one backtest with costs, split in-sample and out-of-sample, walk-forward windows, stress tests and export to a trading platform; free tools cover the first two, the other four are done by hand or not at all Free tools stop after step two Free tool By hand Rule Backtest Split Walk-forward Stress test Export One backtest is step two of six. So: do the rest by hand, and log it.
The research path has more steps after the first backtest, and a free tool normally covers only the first one.

The steps after the first backtest can be done with free tools, but you do the work:

  1. Split the data by date. Choose a split date before you run anything, tune only on the earlier part, and run the finished rule unchanged on the later part. In a spreadsheet this means two copies of the sheet. In a chart tester it means changing the date range twice and writing both results down.
  2. Repeat the split along the history. Walk-forward analysis is a test that tunes settings on one window, runs them unchanged on the window that follows, moves forward and repeats, until the joined out-of-sample pieces form one result. Pardo (2008) describes this as the standard way to judge an optimised rule. By hand it means one tuning run and one test run per window.
  3. Try to break the rule. Double the slippage, shift each setting one step in both directions, and remove the five largest winners. Note which checks the rule survives.
  4. Count the candidates. Write down how many rule variants you tried before you kept this one. The more you tried, the more the best result is inflated by luck, as the next section explains.
  5. Move the rule to your trading platform. Most free testers keep the rule inside their own script language, so you rewrite it for the platform you trade on and check that the trade list matches.

A research platform does these steps for every candidate with the same settings. AlphaPrime runs walk-forward analysis as part of strategy validation and stops the later checks when a candidate fails an earlier one, and it exports strategy source code to six trading platforms, listed on the supported platforms for strategy export page. With a free tool, the same steps are possible, but each one is a manual job you must remember to do and record.

Can you backtest options with free software?

Options need a price history for every strike and expiry plus volatility data, which free tools almost never carry, so test the futures version of an idea first and treat options backtesting as a separate, harder project. A futures backtest needs one continuous price series per market. An options backtest needs one series for each strike and each expiry that your rule might trade, and the number of such series runs into the thousands for a single index.

Options also bring a second price dimension. Implied volatility is the level of expected movement that the market has priced into an option, and it rises and falls on its own, separate from the direction of the underlying. A rule that buys calls when the index dips can be right about direction and still lose because implied volatility fell after the dip. A futures backtest has no such second dimension; price is the whole story.

RequirementFuturesOptions
Data series neededOne continuous contractOne series per strike and expiry
Extra inputsNoneImplied volatility and the Greeks
Typical free-tool availabilityCommonRare
Cost modelPer-contract fee plus slippagePer-contract fee plus a wide bid-ask spread
Futures versus options backtesting: futures need one continuous series, no extra inputs, data is common in free tools and costs are a fee; options need thousands of series, volatility data, data is rare in free tools and costs are a fee plus a wide spread Options need far more data What each backtest needs Futures Options Series One Thousands Extra input None Volatility Free data Common Rare Costs Fee Fee + spread Free tools rarely carry options data. So: test the futures version first.
Options backtesting needs several data series per underlying where futures need one, which is why free tools rarely cover it.

The practical order is this: write the idea as a directional rule on the futures contract, test it on daily or intraday bars with costs, and only if it survives the checks in the previous section ask whether an option structure would express it better. The guide to options backtesting explains what data and cost assumptions the second project needs. A rule that fails on the futures has little chance of improving once a bid-ask spread and a volatility dimension are added.

When should you move from free tools to a research platform?

Move when your question changes from "does this one rule work" to "which of many rules and settings survive costs and out-of-sample checks", because at that point the number of variants, the need for one consistent cost setting and the validation steps outgrow what a free tool was built for. The trigger is the count of variants you test, not the size of your account.

The reason is selection. When you test many variants and keep the best, part of what you keep is a real pattern and part is noise that happened to fit that history. Bailey, Borwein, López de Prado and Zhu (2014) show that the more variants you compare on the same data, the longer the history you need before the best of them can be told from luck. Testing ten settings by hand and keeping one is mild. Testing a few hundred and keeping one is the point where an out-of-sample check becomes the only honest grade, and running a few hundred candidates through walk-forward windows by hand is like walking to Mars: possible in theory, not something anyone finishes.

A scale of variants tested per idea: one rule fits a free tool once costs are set; a few dozen settings need a free tool plus a log of every variant; hundreds of candidates need a research platform that applies the same checks to all Count variants, not dollars Variants tested per idea 1 rule Dozens Hundreds+ Free tool Free + log Platform Set costs Log variants Same checks More variants, more luck in the best. So: log every variant you try.
The decision to leave free tools depends on how many variants you test, not on how much money you trade.

Three markers on that scale:

  1. One rule, tested as written. A free backtester fits. Set the costs, check the roll method, read the average trade after costs and decide.
  2. A few dozen settings of one rule. A free tool still works, with a spreadsheet beside it to record every variant, the split date and the out-of-sample result of each. The record is what keeps you honest about how many you tried.
  3. Hundreds or more candidates. Every candidate needs the same costs, the same execution rule and the same walk-forward windows, and the ones that fail an early check should be dropped before they reach the later data. This is what a research platform is for; AlphaPrime's strategy validation applies the thresholds you set to every candidate in a search.

Your next step: take the last result you got from a free tool and write three things beside it. The roll method of the data. The cost per trade you entered, in the tool's units. The number of variants you tried before keeping this one. If the first is "unknown", the second is zero, or the third is more than about thirty, redo the run with an adjusted series, a cost at least two ticks above commission, and a date split chosen before you look at the result.

Frequently asked questions

Where can I backtest trading strategies for free?

Four kinds of free tool replay a rule on historical bars: a charting platform's built-in strategy tester, a spreadsheet, an open-source code library and a broker's demo simulator. The chart tester is the fastest to start, the spreadsheet shows every number, the code library gives the most control, and the simulator trades live prices one day at a time. All four test one rule at a time; validation across many variants is manual work.

What is the best free backtesting software?

The right type depends on what you want to test, not on a ranking. For a single rule with standard indicators, a chart tester with its date range and cost fields is enough. For learning how a backtest works, a spreadsheet is best because nothing is hidden. For your own futures data with an adjusted roll series, a code library is the only free type that lets you load it. Judge any tool by whether it lets you set costs, choose the data and split the dates.

Can free software backtest futures?

Yes, if the tool carries or lets you load futures bar data and lets you set a per-contract cost. The common gap is contract rollover: many free tools use an unadjusted continuous series, so a rule that holds positions across roll dates reports gains and losses that were never available. Check the roll method of the series and the tick value of the contract before you read a multi-year result.

Does free backtesting software include slippage?

Most free tools have a slippage field but set it to zero by default. Enter at least one tick per side for liquid futures, more for thin contracts or entries at volatile times, and rerun with double the slippage to see whether the rule depends on cheap fills. Compare the round-trip cost with the average trade after costs; the average trade should be several times the cost.

References

  • Bailey, D. H., Borwein, J., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the American Mathematical Society, 61(5), 458–471.
  • Pardo, R. (2008). The Evaluation and Optimization of Trading Strategies (2nd ed.). John Wiley & Sons.
  • CME Group. E-mini Nasdaq-100 Futures Contract Specs. https://www.cmegroup.com/markets/equities/nasdaq/e-mini-nasdaq-100.contractSpecs.html