Order Types

What is Market on Close (MOC) Order?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionA market-on-close (MOC) order is an instruction to buy or sell at the official closing price of the session, whatever that price turns out to be. It is an order type of US exchanges, where it executes in the closing auction. NSE has no MOC order: its cash-market closing price is the volume-weighted average of the last 30 minutes, so a stock that last traded at ₹1,519 can close at ₹1,511.70 (illustrative).
Formula
NSE cash-market closing price = Σ (Trade price × Quantity) from 15:00 to 15:30 ÷ Σ Quantity from 15:00 to 15:30
Example
(₹1,506 × 2,00,000 + ₹1,510 × 3,00,000 + ₹1,515 × 5,00,000) ÷ 10,00,000 = ₹1,51,17,00,000 ÷ 10,00,000 = ₹1,511.70 (illustrative, trades grouped into three 10-minute blocks)

How an MOC order works on US exchanges

  1. You enter the order with a quantity and no price. It joins the closing auction instead of the continuous order book.
  2. The exchange stops accepting most new MOC orders shortly before the 4:00 pm close (about ten minutes before on the main US exchanges; check the exchange’s current rules).
  3. In the final minutes the exchange publishes the imbalance between buy and sell interest, which draws in offsetting orders.
  4. At the close, a single auction price is struck. Every MOC order that matched fills at that one price, which becomes the official close.

Index funds, rebalancing desks and end-of-day systems use MOC because they need to trade at exactly the price their benchmark uses. The trade-off is the same as any market order: certainty of trading at the benchmark price, no control over what that price is. On a heavy rebalancing day the closing price can sit well away from where the stock traded a few minutes earlier. Indian traders meet the term in books, courses and on global platforms, but NSE works differently.

How the closing price is set on NSE

WindowTimeWhat happens
Pre-open9:00 to 9:15Order collection and a call auction that sets the opening price for cash stocks
Normal market9:15 to 15:30Continuous trading against the live order book
Closing price window15:00 to 15:30The cash-market closing price is the volume-weighted average of trades in these 30 minutes
Post-close session15:40 to 16:00Cash-market orders trade at that closing price, when a matching order exists
F&OUp to 15:30No post-close session. Futures daily settlement uses a last-30-minute average of the contract; index options settle on the index closing value on expiry

Worked example: last price vs closing price

Illustrative large-cap NSE stock. Between 15:00 and 15:30 it trades 2,00,000 shares around ₹1,506, then 3,00,000 around ₹1,510, then 5,00,000 around ₹1,515, with a final tick at ₹1,519. The closing price is the weighted average of those 10,00,000 shares, ₹1,511.70, even though the screen showed ₹1,519 at 15:29.

Last traded price
₹1,519.00
Official close (30-min average)
₹1,511.70
Gap per share
₹7.30
On 500 shares
₹3,650

A trader selling 500 shares with a market order at 15:29 receives about ₹1,519 a share, ₹3,650 more than a seller in the post-close session at ₹1,511.70. On another day the order of prices is reversed. Neither route is better in general; they answer different needs.

Getting a close-like fill in India

Post-close session order

Place a cash-market order between 15:40 and 16:00. It trades at the closing price if there is an order on the other side, so fills are not guaranteed.
Closest match to MOC; cash market only

Spread across the last 30 minutes

Split the quantity into equal slices from 15:00 to 15:30. Your average lands near the closing price because you traded in the same window it is built from.
Used for larger orders

Market order near 15:29

Simple and certain to fill in liquid stocks, but the fill is the price at that moment, not the 30-minute average.
Expect a difference from the close

Limits, mistakes and journal tips

  • If your system is tested on closing prices, log the official close next to every fill and tag the trade “close benchmark”. The gap between the two is an execution cost the backtest did not include.
  • Comparing your fill with the last traded price instead of the official close. Contract notes and backtests that use closing prices will not match your exit.
  • Assuming the post-close session is liquid. Volume is far lower than in normal hours, and an order can stay unmatched.
  • Holding Nifty options into the expiry close for a “closing price” exit. Index options settle on the index closing value, and you give up control of the exit price for the last half hour.
  • Ignoring index rebalancing days, when large funds trade near the close and the last-30-minute average can move more than usual.
For traders in India
SEBI has consulted on a closing auction session for the cash market; if one is in force when you read this, the closing price is set differently, so check the current NSE circular. The post-close session applies to the cash market only. For F&O, square off or roll before 15:30. Nifty weekly options expire on Tuesday and settle on the index closing value; Bank Nifty and stock F&O expire monthly on the last Tuesday.

Reference guide

ContextValueReading
Wanting the official close as your exit price on an NSE stockUse the post-close sessionOrders placed from 15:40 to 16:00 trade at the closing price, if a matching order exists
Market order at 15:29 expecting the closing priceMismatchYou get the price at that moment; the NSE close is a 30-minute average and can differ by several rupees
Looking for an MOC button on Nifty futures or optionsNot availableNSE has no MOC order and no post-close session for F&O; plan exits inside normal market hours

Questions

What is a market-on-close order?

An order to trade at the official closing price of the session, with no price limit. On US exchanges it executes in the closing auction.

Can I place a market-on-close order in India?

NSE has no MOC order type. The nearest equivalent for cash stocks is an order in the post-close session from 15:40 to 16:00, which trades at the closing price if a matching order exists.

How is the NSE closing price calculated?

For the cash market it is the volume-weighted average price of trades in the last 30 minutes, 15:00 to 15:30. Check the current NSE circular, since SEBI has consulted on a closing auction.

Why is my sell price different from the closing price?

Your market order filled at the live price when you sent it. The close is an average over 30 minutes, so the two usually differ.

Is there a post-close session for F&O?

No. The post-close session is for the cash market. F&O positions must be closed during normal hours, by 15:30.

Related terms