What is Market on Close (MOC) Order?
Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy
How an MOC order works on US exchanges
- You enter the order with a quantity and no price. It joins the closing auction instead of the continuous order book.
- 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).
- In the final minutes the exchange publishes the imbalance between buy and sell interest, which draws in offsetting orders.
- 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
| Window | Time | What happens |
|---|---|---|
| Pre-open | 9:00 to 9:15 | Order collection and a call auction that sets the opening price for cash stocks |
| Normal market | 9:15 to 15:30 | Continuous trading against the live order book |
| Closing price window | 15:00 to 15:30 | The cash-market closing price is the volume-weighted average of trades in these 30 minutes |
| Post-close session | 15:40 to 16:00 | Cash-market orders trade at that closing price, when a matching order exists |
| F&O | Up to 15:30 | No 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.
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
Spread across the last 30 minutes
Market order near 15:29
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.
Reference guide
| Context | Value | Reading |
|---|---|---|
| Wanting the official close as your exit price on an NSE stock | Use the post-close session | Orders 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 price | Mismatch | You 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 options | Not available | NSE 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.