VALYNOX
VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime
ACADEMY / Backtesting and validation

Futures settlement price vs close: which one your daily bar uses

The settlement price is the exchange's official daily price, built from a short closing window; the close is only the last trade. Fills in a daily-bar backtest happen at traded prices, while an open position's statement P&L and margin move on settlement, so check which price your daily bars hold before you trust a daily-bar result.

By · Published · updated · Editorial policy

Contents
  1. Futures settlement price vs close: what is the difference?
  2. How is the futures settlement price calculated?
  3. Why is settlement used for margin and mark-to-market?
  4. How much difference does it make for an end-of-day strategy?
  5. How do you check which price your data vendor provides?
  6. Frequently asked questions
  7. References

Futures settlement price vs close: what is the difference?

Futures settlement price vs close: the settlement price is the exchange's official daily price, set by a published method from trading in a short closing window; the close is only the last trade of the session. A daily bar can carry either one, so a backtest must know which price its bars hold before it reads signals or P&L.

The settlement price (期貨結算價) is the number the exchange publishes after each session and the clearing house uses to move cash between accounts. The close is the price of the final trade before the session ends. On most days they sit a few ticks apart; on a thin day they can sit further apart, because the settlement is a calculation and the last trade is one print. A backtest replays rules on old prices, which is what backtesting in trading means, so it inherits whatever price the daily bar holds without knowing which one that is.

QuestionSettlement priceLast trade (close)
Who sets itThe exchange, by a published formulaThe market: whoever traded last
When it is fixedAfter the closing windowAt the final trade
What it is used forMargin and daily P&L on open positionsCharts and most backtest fills
Can the two differYes, usually by a few ticks
Two prices for the same day: the exchange sets the settlement price from the closing window and uses it for margin and P&L, while the market's final trade sets the close used for charts and fills, and the two usually differ by a few ticks Two prices, two jobs Who sets it, when, what for Settlement Last trade The exchange Closing window Margin and P&L The market Final trade Charts and fills They differ, usually by a few ticks. So: never treat them as one price.
Two prices for the same day, two different jobs. The settlement pays the bills; the last trade is what you could have traded.

How is the futures settlement price calculated?

Exchanges build the daily settlement from trading in a short window at the end of the session, not from the single last print. The common method is a volume-weighted average of the trades in that window; when trades are thin, the exchange uses the midpoint of the bid and ask instead, or prices the far months from their spread to the active month. The exact window and method are published on the exchange's contract page, and exchanges change them from time to time, so read the current rule for your market there.

The final settlement price (最後結算價) is a different number for a different day. The final settlement price is the value used to close out every open contract at expiry, and it comes from the underlying index, not from futures trades. For TAIEX futures, the exchange publishes it from the index over the last 30 minutes of the final settlement day; the free TAIEX futures settlement dates tool lists those days, and TAIEX futures settlement day explained covers how the final price is set.

Trade prints in the last minutes of a session: the prints inside the closing window combine into one weighted settlement value, while the final print, the last trade, sits a tick away from it Settlement is an average Window average vs one final print Closing window Last trade Settlement The last trade is one print in it. So: expect a few ticks of gap.
The settlement is a weighted average of the closing window; the last trade is one print inside it.

Why is settlement used for margin and mark-to-market?

The clearing house moves cash between accounts every day on the settlement price, so an open position's daily gain or loss and any margin call follow settlement, not the last print. Mark-to-market is the daily revaluation of every open contract at the settlement price, with the difference from the previous day paid in cash. A single last trade could be pushed by one small order; an average over a window is harder to move, which is why the exchange uses it to settle money.

Hypothetical example

You buy one NQ contract at 18,000.00 on Monday. Monday settles at 18,040.00: 40 points × $20 = $800 credited. Tuesday settles at 18,010.00: $600 debited. On Wednesday the last trade prints 18,050.00 but the settlement is 18,049.50: $790 credited, not $800. The chart shows 18,050.00; the statement moved on 18,049.50. The $10 gap is two NQ ticks.

One hypothetical long NQ contract over three days: Monday settles 40 points above the entry and 800 dollars is credited, Tuesday settles 30 points lower and 600 dollars is debited, Wednesday settles 39.5 points higher and 790 dollars is credited; the last trade of each day plays no part Cash moves on settlement One long NQ, hypothetical Mon Tue Wed +40 pts −30 pts +39.5 pts +$800 −$600 +$790 The last trade played no part. So: your P&L follows settlement.
Cash moves once a day, on the settlement price. The last trade of each day plays no part in the transfer.

How much difference does it make for an end-of-day strategy?

For an end-of-day strategy the fill price and the bookkeeping price are separate events, and the gap between them is usually a few ticks that shifts the daily equity curve but not the closed-trade result. A daily-bar rule reads the bar close as its signal and fills at a traded price; the statement marks the open position at settlement that evening. Closed-trade profit comes only from fills, so settlement changes the shape of the open-equity path and the drawdown you see day to day, not the profit of a finished trade. The NQ tick is 0.25 points worth $5.00, so a two-tick gap is $10 per contract per day; the free futures contract calculator converts the gap for other contracts. AlphaPrime (Valynox) fills every daily-bar order at the next bar in its backtesting, with commission and slippage charged in each evaluation, so the fill side of this gap is already in the result; the settlement side belongs to the statement.

One daily bar: the last trade is where the signal is read and the fill happens, a separate settlement tick marks the open position for statement P&L, and the small gap between them is what a daily-bar backtest must account for Two prices on one bar Fill price vs statement mark Gap Settlement Statement P&L Last trade Signal and fill Fills: trades. Marks: settlement. So: a few ticks shift daily equity.
Signal and fill use traded prices; the open position is marked at settlement. The small gap is what a daily-bar backtest must account for.

The run below shows what a daily-bar strategy looks like when nearly every day ends with an open position. It tested NQ daily bars from 2019-01-02 to 2025-06-30, long and short, one contract, with a Candlesticks rule as the only entry and exit, no stop, target or filter. That is a stand-in rule built from standard indicators, not the settlement question itself. The candidate is the one the search kept out of 1,024 it tried, 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)$182,005
Max drawdown$131,125
Trades64
Win rate54.69%
Profit factor1.759
Average trade$2,843.83
Time in market93.88%
Four steps to check which close a data file holds: pick five dates including an expiry day, copy the exchange settlement, copy the vendor close and the last trade, then match them, note the answer and fill on the next bar Check your close in 4 steps Do this once per data file 1. Five dates Add an expiry day 2. Settlement From the exchange 3. Vendor close And the last trade 4. Match, note Then fill next bar
The summary of the daily-bar NQ run. Look at the time in market: a position was open at almost every settlement, so the statement equity of this strategy would move on settlement prices while its closed-trade profit comes from fills. NQ · daily · 2019-01-02 to 2025-06-30 · CPU engine backtest

With 93.88% time in market, the position is marked at settlement on almost every evening of the period, and the daily open-equity path a broker statement would show differs by a few ticks a day from the close-based path a chart shows. If those ticks matter to your rule, you are really trading inside the closing window, and daily bars cannot show it; high frequency data backtesting and tick data backtesting for futures explain what finer bars add.

How do you check which price your data vendor provides?

Compare your daily bar close with the exchange's published settlement for several dates, find out whether the vendor supplies a separate settlement field, and set the backtest's session and fill price to match before trusting any daily-bar result. Vendors deliver the daily close in three ways, and the file rarely says which.

  1. Pick five to ten dates, including one quiet day and one volatile day.
  2. Write down the exchange's settlement for each date from its daily bulletin or settlement page.
  3. Write your bar's close next to it. Matching every time means the close is the settlement; differing by a few ticks means it is the last trade.
  4. Look for a separate settlement field in the vendor's documentation or file columns.
  5. Set the backtest to match: fill at the last trade or the next open, and mark open positions at settlement where the field exists.
QuestionClose = last tradeClose = settlementSeparate settlement field
What the daily close holdsThe final printThe exchange's calculated priceThe final print
Is the settlement availableNoYes, as the closeYes, in its own column
What to set in the backtestFill at last trade or next openFill at next open, since the settlement was not a tradable printFill at traded prices; mark open positions at settlement
Three ways a data vendor delivers the daily close: close as last trade with no settlement, so fill at the last trade or next open; close as settlement, so fill at the next open; a separate settlement field, so fill at traded prices and mark open positions at settlement What does your close hold? Where is settlement? What to set? Close = last trade Fill at last trade or next open none Close = settlement Fill at next open as close Separate field Fill at trades, mark at settlement own column
Three ways a vendor delivers the daily close, and the backtest setting that fits each one.

Stocks and ETFs have no daily settlement price; their official close is the exchange's closing price, so the question does not arise there, as the guide to backtesting Taiwan stocks and ETFs shows. For futures, do the five-date check now: open your daily file, write each close beside the exchange's settlement, and set the fill price in your backtest to whatever the bar turns out to hold.

Frequently asked questions

Is the daily close the settlement or the last trade?

It depends on the data vendor, and the file usually does not say. Some vendors put the last trade in the close field, some put the exchange settlement there, and some give both in separate columns. Compare a few dates against the exchange's published settlement to find out which one you have.

Does the settlement price matter if I close every position before the session ends?

Not for your cash flow, because mark-to-market only applies to positions open at settlement. It still matters for your data: if the vendor's close is the settlement, a rule that reads the daily close as a signal is reading a price that was never a single trade. Set the fill to the next bar's open in that case.

What is the final settlement price?

The final settlement price (最後結算價) is the value used to close out all open contracts when a futures contract expires. It is calculated from the underlying index on the final settlement day, not from futures trades, so it is a different number from the daily settlement. The exchange's contract page states the exact method for each market.

Which price should my backtest use for profit and loss?

Use traded prices for fills: the last trade or, more realistically, the next bar's open after the signal. Use the settlement, where your data provides it, to mark open positions at the end of each day, because that is what your broker statement does. Closed-trade profit comes from fills either way.

References

  • CME Group. E-mini Nasdaq-100 Futures Contract Specs. https://www.cmegroup.com/markets/equities/nasdaq/e-mini-nasdaq-100.contractSpecs.html
  • Taiwan Futures Exchange. Mini-TAIEX Futures. https://www.taifex.com.tw/enl/eng2/mTX