December 4, 2026

Automated Futures Trading Software: Rollover, Price Limits and Session Rules Your Bot Must Handle

Good automated futures trading software does more than turn signals into orders: it has to know which contract month it is trading, when that contract stops trading, how the exchange's price limits and halts change through the day, and how margin is marked to market every session. Using the E-mini S&P 500 (ES) as the example, CME's rulebook sets a 0.25-point tick worth $12.50, a Globex trading day that runs from 5:00 p.m. to 4:00 p.m. Chicago time, a ±5% price band overnight, downside limits and halts at 7%, 13% and 20% during the stock-market day, and a final settlement on the third Friday of the contract month. A bot that ignores those rules can backtest well and still fail live: a strategy left on an expiring month, a stop that cannot fill in a limit-locked market or a backtest built on misleading continuous-contract prices.

This guide is documentation research based on CME Rulebook Chapter 358, the NinjaTrader 8 Help Guide, CFTC investor education and broker policy pages, checked on December 4, 2026. We did not run live tests and make no claims about fills, speed or profitability. If you are still choosing a platform, start with our best trading bots for futures trading; for strategy ideas, see automated futures trading strategies.

Diagram of an E-mini S&P 500 trading day in Chicago time showing the overnight 5% price band, daytime 7%, 13% and 20% downside limits and halts, the 3:00 to 4:00 pm 5% band and the 4:00 to 5:00 pm break, followed by a contract calendar from front month to roll window to moving the bot and orders to expiry, and a tick-value example
The trading-day clock, contract calendar and money math a futures bot has to handle, using the E-mini S&P 500. Summarized from CME Rulebook Chapter 358, NinjaTrader 8 Help and CFTC materials. Illustration: Trading Bot Experts.

Why futures automation is different from stock or crypto bots

A stock or crypto bot usually trades one symbol that never expires. A futures bot trades a contract with a delivery month, a fixed multiplier, exchange-set price limits and an end date. The CFTC notes that most futures contracts are liquidated before their delivery date, which means almost every long-running futures strategy has to roll from one contract month to the next. Accounts are also adjusted to each day's market value at the close, so profit and loss settles daily rather than only when you exit.

Those mechanics touch four parts of an automated system:

  • Order logic: tick size and point value drive stop distances, position size and rounding.
  • Session logic: when the trading day starts and ends, and which price limits apply at each hour.
  • Calendar logic: which contract month is active, when to roll and what happens at expiry.
  • Data logic: how historical prices from several contract months are stitched together for backtests.

1. Contract specifications: tick size and point value

Every futures contract has a multiplier and a minimum price increment. For ES, CME Rule 35801 values each contract at $50 times the S&P 500 Index, and Rule 35802.C sets the minimum increment at 0.25 index points, or $12.50 per contract. Your software must round every price to a valid tick and convert points into dollars correctly.

Worked example. A strategy places a stop 8 points from entry on one ES contract. That is 32 ticks (8 ÷ 0.25) and $400 of risk (8 × $50) before slippage and fees. If the bot instead sizes positions as if each point were worth $5 or $1, it will take 10 or 50 times the intended risk. Hard-code nothing: read the multiplier and tick size from the platform's instrument settings, log them at startup and stop the bot if they do not match what you expect.

ItemE-mini S&P 500 (CME Rule)What the bot should do
Contract value$50 × S&P 500 Index (35801)Use the multiplier in sizing and P&L, never a hard-coded guess
Minimum increment0.25 points = $12.50 (35802.C)Round limit and stop prices to valid ticks before sending
SettlementCash settlement (35803)No physical delivery, but the position still ends at expiry
Last tradingEnds at the regular NYSE open on the final settlement day (35802.G)Roll or exit before then; do not expect a normal close that day
Final settlement priceSpecial opening quotation on the third Friday (35803.A)Expect the final price to come from index opening prices, not the last futures trade

2. Sessions and the daily break

Futures do not follow the 9:30 a.m. to 4:00 p.m. Eastern stock session. CME's ES chapter says the trading day generally starts with the CME Globex session at 5:00 p.m. Chicago time on the previous evening and closes at 4:00 p.m. Chicago time, which leaves a one-hour gap each weekday afternoon. All times in the rulebook are Chicago time, so a bot running on a server set to UTC or Eastern time needs an explicit time-zone conversion.

The session boundary matters more than it looks:

  • Bars and indicators: a "daily" bar that starts at midnight differs from one that starts at 5:00 p.m. Chicago time. Check which session template your platform and data feed use, and use the same one in backtests and live trading.
  • Daily loss limits: decide whether your bot resets its daily P&L at the exchange trading day or at midnight, and make the broker's statement match.
  • Orders across the break: decide whether working orders should stay open through the daily break and whether the bot should flatten before it. Test what your platform does to day orders at the session close.
  • Holidays and early closes: the rulebook describes different limit windows on days with an early scheduled close on the stock exchange. A hard-coded schedule will be wrong on those days.

3. Price limits and trading halts

CME Rule 35802.I sets ES price limits from a reference price set on the previous business day and offsets calculated as percentages of the S&P 500 Index close. How those limits apply changes during the trading day:

Window (Chicago time)Eastern timeRuleBot impact
5:00 p.m. to 8:30 a.m.6:00 p.m. to 9:30 a.m.No trading outside the ±5% band; if the main contract is limit bid or offered at 8:23 a.m. and still at 8:25 a.m., trading halts until 8:30 a.m.Overnight stops beyond the band cannot fill until the limit lifts
8:30 a.m. to 2:25 p.m.9:30 a.m. to 3:25 p.m.7% downside limit; futures halt when the stock market halts for a 7% or 13% decline and resume with the next limit (13%, then 20%); a 20% stock-market halt stops futures for the rest of the sessionExits can be frozen during a halt; the bot must detect it and not keep resending orders
2:25 p.m. to 3:00 p.m.3:25 p.m. to 4:00 p.m.Only the 20% downside limit appliesWider range late in the stock session
3:00 p.m. to 4:00 p.m.4:00 p.m. to 5:00 p.m.±5% band around the current day's reference price, with the lower limit no lower than the 20% limitLimits reset to a new reference after the stock close

Worked example (hypothetical round numbers). Suppose the rounded reference price is 6,000 and the index closed at 6,000. The 5% offset is 300 points, so overnight trading is confined to 5,700 to 6,300. The 7% offset is 420 points, so the first daytime downside limit is 5,580. A long position's protective stop at 5,650 overnight sits below the 5% band: if the market falls to 5,700 and locks there, no trade can print below 5,700, so the stop is never triggered and the position stays open until the limit lifts at 8:30 a.m. The rulebook rounds offsets and reference prices down to multiples of 0.50 points, so use the exchange's published limits rather than computing your own for live trading.

What to code for: treat "order not filled" and "market halted" as normal states, alert a human, avoid stacking duplicate orders when the market reopens and size positions so a locked market does not threaten the account. Our guide to trading bots and black swan events covers broader crash planning, and what is slippage explains why stop prices are not guaranteed fill prices.

4. Rollover: live orders and strategy instances

As expiry approaches, trading volume moves from the expiring contract to the next month, and a bot that keeps trading the old month will face thinner markets and then a contract that stops trading. Rollover is where platform behavior varies most, so read your platform's documentation rather than assuming it rolls everything for you.

Get the Top 5 Bots for Early Retirement report:

NinjaTrader 8 is a clear example. Its Help Guide says a batch rollover updates instruments across instrument lists and windows when today's date reaches the rollover date for the next contract month, but also states: "NinjaScript strategies aren't rolled forward. You must roll them over manually." In NinjaTrader's own example, ES 03-15 data merged into ES 06-15 on March 12, 2015, about a week before the March contract's third-Friday final settlement on March 20.

A rollover runbook for any platform:

  1. Record the roll date your platform or data vendor uses, and the expiry date for each contract month, in a calendar the bot can read.
  2. Decide the roll rule in advance: a fixed number of days before expiry, or when volume or open interest in the next month overtakes the front month.
  3. Before the roll, cancel working orders on the old month so nothing fills after you have moved.
  4. Close or spread the old position and open the new one, logging both legs and the price difference between months.
  5. Stop the strategy instance on the old contract and start it on the new contract; confirm its position matches the account. Our NinjaTrader position sync guide covers what happens when a strategy restarts.
  6. Check that charts, indicators and risk limits now point at the new month.

5. Backtest data: continuous contracts and merge policies

Because each contract month expires, long backtests need a continuous series stitched from many months. How the seams are handled changes your results. NinjaTrader's merge policy settings show the three common choices:

Policy (NinjaTrader name)How it worksGood forWatch out for
Merge back adjustedJoins each month at the rollover date and uses offsets to shift older prices to line up with the new front monthIndicators and returns measured in points without false gapsOlder prices no longer match what actually traded, so fixed price levels and percentage returns over long periods are distorted
Merge non back adjustedJoins months at the rollover date with raw prices and no offsetStrategies that reference actual historical price levelsRoll-day price gaps can trigger false signals or fake profits and losses
Do not mergeLoads only the selected contract monthTesting one contract's real pricesHistory is short, often too short for meaningful tests

Worked example (hypothetical). On the roll date the March contract trades at 5,000 and June at 5,040. A back-adjusted series adds 40 points to all older March data, so a historical swing low that actually traded at 4,800 shows as 4,840. A rule like "buy below 4,820" would act differently on adjusted and raw data. A bot that trades in points from its own entry is less affected than one that uses absolute levels.

Whatever you choose, use the same roll dates in backtests and live trading, and include the cost of rolling. Our guides on how to backtest a trading strategy and market replay software cover the broader testing process.

6. Expiration and delivery

Settlement type decides what happens if a bot forgets to roll. ES is cash settled: per CME Rules 35802.G and 35803.A, trading in the expiring contract ends at the regular NYSE open on the final settlement day, and open positions settle to a special opening quotation of the index on the third Friday. Many other futures, including some energy, metals and agricultural contracts, are physically delivered, and the CFTC notes most contracts are designed around actual delivery even though most are closed before it.

Brokers usually do not let retail accounts go to delivery. Interactive Brokers, for example, lists a futures close-out policy on its delivery and exercise page. Under policies like these, a bot that ignores expiry may find its position closed by the broker at a time and price it did not choose. Read your broker's policy for each market you automate, and stop the strategy well before any deadline it sets.

7. Margin and daily marking to market

Futures margin is a good-faith deposit, not the most you can lose. The CFTC says customer accounts are adjusted to each trading day's market value at the close, and warns that many individuals lose all of their money and can be required to pay more than they invested. Brokers set their own intraday and overnight margin requirements on top of exchange minimums and can change them at short notice, especially in volatile markets.

For a bot, that means:

  • Check available margin before every new order, not only at startup.
  • Know whether a lower intraday margin rate ends at a set time, and flatten or reduce size before the overnight requirement applies if your account cannot meet it.
  • Size positions from the dollar risk of the stop and the account equity, not from the smallest margin your broker allows. See position sizing in trading bot strategies.
  • Alert a human on margin calls, rejected orders for insufficient funds or broker liquidations.

In the US, regulated futures are generally section 1256 contracts, which are marked to market for tax purposes and reported on IRS Form 6781. Our trading bot tax guide has the basics; ask a tax professional about your situation.

Checklist: evaluating automated futures trading software

  1. Instrument data: Does it expose the multiplier, tick size and expiry for each contract, and can your code read them?
  2. Session templates: Can you set the exchange trading day and time zone, and do backtests use the same template as live trading?
  3. Price limits and halts: Does it report a halted or limit-locked market, and how does it treat orders during a halt?
  4. Rollover: Does it roll charts, orders and running strategies, or only some of them? Is the roll date configurable?
  5. Continuous data: Which merge or back-adjustment methods does it support, and which one did your backtest use?
  6. Expiry protection: Can the bot block new entries in an expiring month and flatten by a set time?
  7. Margin checks: Can it read account margin and buying power in real time and block orders that exceed your limits?
  8. Reconciliation and logs: After a restart, disconnect or roll, can it compare its position with the broker's and alert on a mismatch? Our live bot monitoring guide and VPS hosting guide cover the operations side.
  9. Testing: Can you paper trade through a roll date, an early close and a fast market before risking money? See how to test a trading bot before going live.

Frequently asked questions

What is the best automated futures trading software?

There is no single best choice for everyone. Pick software whose instrument data, session settings, rollover handling and margin checks fit the contracts you trade, then confirm them in paper trading through at least one roll. Our futures bot roundup compares specific platforms.

Do automated trading platforms roll futures contracts automatically?

Some roll charts and instrument lists but not running strategies. NinjaTrader 8, for example, says its batch rollover updates instruments in workspaces but NinjaScript strategies are not rolled forward and must be rolled manually. Check your platform's documentation and test it.

Can a futures stop order fail to fill?

Yes. A stop becomes a market or limit order only when triggered, and fills depend on available prices. If the market is halted or locked at a price limit, it may not fill until trading resumes, possibly at a worse price.

Which continuous contract should I use for backtesting a futures bot?

Back-adjusted data avoids false roll gaps and suits most indicator-based strategies; raw unadjusted data keeps true price levels. Use the same roll dates as live trading and check that your rules do not depend on prices that adjustment changes.

What time does the E-mini S&P 500 trade?

CME's ES rules describe a Globex trading day that generally starts at 5:00 p.m. Chicago time on the previous evening and closes at 4:00 p.m. Chicago time. Holidays and early closes change this, so check CME's current calendar before scheduling a bot.

Educational research based on CME Rulebook Chapter 358, the NinjaTrader 8 Help Guide, CFTC investor education, Interactive Brokers' delivery policy page and IRS Form 6781 information, checked on December 4, 2026. Exchange rules, platform features and broker policies change, so confirm them with the source before trading. We did not run hands-on tests, and this article contains no sponsored or affiliate links. Nothing here is trading, tax or legal advice. Futures trading is leveraged and risky, and you can lose more than your initial deposit.

Free Report

Before You Choose a Bot, Read This

Get our free Top 5 Bots for Early Retirement report plus The Bot Report newsletter — the bots we'd actually trust to compound over the long term.

By entering your email, you'll begin receiving The Bot Report newsletter as well as occasional updates. You can unsubscribe at any time. Our privacy policy.

Written by
Nathan Cole
12 min read

Pseudonymous contributor to TradingBotExperts covering trading technology, brokers, and automation.