December 4, 2026
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.

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:
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.
| Item | E-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 increment | 0.25 points = $12.50 (35802.C) | Round limit and stop prices to valid ticks before sending |
| Settlement | Cash settlement (35803) | No physical delivery, but the position still ends at expiry |
| Last trading | Ends 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 price | Special opening quotation on the third Friday (35803.A) | Expect the final price to come from index opening prices, not the last futures trade |
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:
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 time | Rule | Bot 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 session | Exits 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 applies | Wider 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% limit | Limits 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.
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.
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:
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 works | Good for | Watch out for |
|---|---|---|---|
| Merge back adjusted | Joins each month at the rollover date and uses offsets to shift older prices to line up with the new front month | Indicators and returns measured in points without false gaps | Older prices no longer match what actually traded, so fixed price levels and percentage returns over long periods are distorted |
| Merge non back adjusted | Joins months at the rollover date with raw prices and no offset | Strategies that reference actual historical price levels | Roll-day price gaps can trigger false signals or fake profits and losses |
| Do not merge | Loads only the selected contract month | Testing one contract's real prices | History 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.
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.
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:
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.
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.
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.