Market on close orders (MOC Orders) are a useful order type for helping you secure a price at or close to the close of the day. They can help you get into or out of the market right at the closing price without having to place a market order immediately when the market closes.
Although not available in all markets or by all brokers, if you have access to them they warrant consideration for inclusion in your trading system. For example, some traders will want to exit at the close if a certain price level was breached during the trading day. This could be used to execute either a trade entry signal or a trade exit signal.
What Are Market-On-Close Orders?
A market-on-close order (usually abbreviated to MOC order) is simply a market order which is placed when the market is open, but does not activate before a certain time which is set depending on the exchange. The MOC order remains dormant until near the close at which time it becomes active.
Once the MOC order becomes active, it behaves like a normal at-market order.

Example of MOC Trading Strategies
A great example of an MOC trading strategy is a day trading system that enters on a limit order when there is a large dip in the market and then exits at the close. This type of day trading system is very easy to manage because you generate the signal to place the limit order to enter the market outside regular trading hours, and at the same time you place a contingent (If-Done) MOC order to exit at the end of the day. This style of system can be backtested using Amibroker on daily charts and provides excellent diversification to a portfolio of trading systems.
Benefits of Market On Close Orders
The main benefits of MOC orders is that you do not need to place a market order right at the close to get the closing price. This is useful in many situations where intraday price action provides you with the trading signal to place a trade at the close of the day.
This may be useful when you have a full time job or other responsibility that may at times prevent you from being at the computer when the market closes. It is also useful for trading systems where placing a trade the close of the day offers better profitability than waiting for the open the following day.
Being able to place market on close orders is also useful if you want to trade on some foreign exchanges that are not in your time zone. It is also useful if you want to place a trade but are not sure that you will be in front of your computer or able to call your broker just before the market closes.
This type of order can allow you to design a trading system that uses the closing price with some confidence that you will actually be able to execute your trades as the closing price.
Drawbacks of MOC Orders
The potential drawbacks of market-on-close orders are similar market on open orders…
… If you are going to place market on close orders and not be present at the close of the market you really do not know what price your order will be filled at. You must ensure you understand the full ramifications of this because markets can move a long way during the trading day if some extreme event occurs or there is a major announcement.
Should you use MOC Orders?
If they are available for you to use on the exchange and with the broker you use, Market On Close orders can be a helpful tool to ensure you can trade at the closing price. This certainty enables you to develop trading systems which trade at the close knowing that you should be able to replicate system results in the real world. They can add flexibility and also provide you with some certainty that your order will be placed at the close in case you are not at your computer when the market closes.
Regardless of how or why you use different order types, they should all be documented with reasons and instructions in your trading plan to ensure you (or the person placing trades for you) know exactly what you need to do in all situations. Review our discussion on how to build a winning trading plan here.
If you want to take control of your trading and finally build the confidence to follow your trading rules no matter what happens in the markets so you can sleep well at night and make great returns in the stock market then click the button below and join The Trader Success System to learn how to launch your systematic trading portfolio in just 6 weeks or less.
Frequently Asked Questions about Market on Close Order
Market on close order?
A Market-On-Close (MOC) order is a type of market order that executes at or near the closing price of the trading day. Here’s how it works and why it’s useful:
How It Works:
- The MOC order is placed during the trading session but remains inactive until the market is about to close.
- Once activated, it behaves like a regular market order, ensuring execution at the best available price at the close.
Benefits:
- Precision at Close: It allows you to trade at the closing price, which is often a key reference point for many trading strategies.
- Convenience: If you can’t monitor the market near the close, an MOC order ensures your trade is executed without needing to be present.
- Systematic Trading: MOC orders are particularly useful for systematic traders who design strategies that rely on the closing price for entries or exits.
Drawbacks:
- Uncertainty in Price: You won’t know the exact price your order will execute at until the market closes.
- Volatility Risk: If there’s a major announcement or event near the close, the price could move significantly before your order is filled.
MOC orders are great for strategies where closing prices are critical, like day trading systems that enter on a limit order during the day and exit at the close. They’re also handy for traders managing portfolios across time zones or with other commitments.
What is a market order when closed?
A Market-On-Close (MOC) order is a specific type of market order designed to execute at or near the market’s closing price. It’s not the same as a regular market order, which executes immediately at the best available price when placed. Instead, an MOC order remains inactive during the trading session and only activates as the market approaches its closing time.
Key Features of a Market-On-Close Order:
- Execution Timing: The order is triggered just before the market closes, ensuring it executes as close to the closing price as possible.
- Purpose: It’s often used by traders who rely on the closing price for their strategies, such as systematic traders or those managing end-of-day positions.
- Flexibility: It’s particularly useful if you can’t be present at the market close or if you’re trading in a different time zone.
Example:
Imagine you’re trading a stock priced at $50 during the day. You place an MOC order to sell your shares. The order will sit dormant until the market’s closing auction, where it will execute at the final price – say $50.10 or $49.90, depending on the closing auction dynamics.
MOC orders are a great tool for systematic trading strategies, especially those that rely on precise closing prices for entries or exits.
How do you place an order when the market is closed?
To place an order when the market is closed, you can use specific order types designed for execution at the next market session or at specific times. Here are the main options:
- Market-On-Open (MOO) Orders:
- A MOO order is a market order that remains dormant until the market opens. Once the market opens, the order activates and executes at the opening price.
- This is useful if you want to ensure execution at the open but can’t be present to place the order manually.
- Limit Orders:
- You can place a limit order outside of market hours, specifying the price at which you’re willing to buy or sell. The order will remain pending and only execute if the market reaches your specified price during the next session.
- After-Hours or Pre-Market Orders:
- Some brokers allow trading during extended hours (before the market opens or after it closes). These orders execute during these sessions but may have lower liquidity and higher spreads.
- Contingent Orders:
- You can set up orders that trigger based on specific conditions, like a price level being hit. These can be useful for automated execution when you’re not actively monitoring the market.
If you’re designing a trading system, incorporating these order types can add flexibility and ensure your trades align with your strategy, even if you’re not at your computer.
What does market close mean in trading?
In trading, market close refers to the official end of the trading session for a particular stock exchange. It’s the point at which regular trading hours conclude, and no further trades can be executed on that exchange until it reopens during the next session. For example, the New York Stock Exchange (NYSE) typically closes at 4:00 PM Eastern Time.
Key Points About Market Close:
- Closing Price: The last price at which a stock is traded during the session is known as the closing price. This price is often used as a reference point for technical analysis, portfolio valuation, and trading strategies.
- Closing Auction: Many exchanges have a closing auction process where buy and sell orders are matched to determine the final price. This auction can lead to increased volatility and volume near the close.
- After-Hours Trading: Some brokers allow trading after the market officially closes, but liquidity tends to be lower, and spreads can be wider during this time.
The market close is a critical time for traders, especially those using strategies that rely on end-of-day prices, like Market-On-Close (MOC) orders. These orders ensure execution at or near the closing price, which can be crucial for systematic trading systems.
Why do people use market on close orders?
People use Market-On-Close (MOC) orders because they offer several practical benefits for certain trading strategies and situations. Here’s why they’re popular:
- Execution at the Closing Price: MOC orders ensure your trade is executed at or near the official closing price of the market. This is critical for traders whose strategies rely on end-of-day prices, such as systematic traders or portfolio managers who rebalance based on closing prices.
- Convenience: If you can’t monitor the market as it closes (whether due to time zone differences, a full-time job, or other commitments) MOC orders allow you to automate the process and still trade at the close.
- Systematic Trading: For traders running systems that generate signals based on intraday price action but require execution at the close, MOC orders are a perfect fit. For example, a day trading system might enter on a limit order during the day and exit at the close using an MOC order.
- Foreign Markets: If you’re trading on exchanges in different time zones, MOC orders let you participate in the market close without needing to stay awake or actively manage the trade.
- Avoiding Slippage at the Open: In some cases, trading at the close can be more profitable than waiting for the next day’s open, especially if your system is sensitive to overnight gaps or slippage.
While MOC orders are incredibly useful, it’s important to understand their risks – like not knowing the exact price until the market closes, especially during volatile sessions.
What is a market on open order?
A Market-On-Open (MOO) order is a type of market order designed to execute at the opening price of the market. It’s placed when the market is closed and remains dormant until the market opens. Once the market opens, the order activates and executes at the best available price at that moment.
Key Features of MOO Orders:
- Execution Timing: The order is triggered right at the market open, ensuring you enter or exit a position at the opening price.
- Purpose: MOO orders are particularly useful for traders who want to act on overnight news or gaps, or for those whose strategies rely on the opening price.
- Convenience: If you can’t be present when the market opens – due to time zones, work, or other commitments – MOO orders allow you to automate the process.
Example:
Imagine you’re trading a stock that closed at $50 yesterday. You place a MOO order to buy shares. When the market opens today, the stock opens at $51 due to overnight news. Your MOO order executes at $51, the opening price.
While MOO orders offer convenience and precision, they come with risks – like not knowing the exact price until the market opens, especially in volatile conditions. If you’re considering using them, it’s essential to document their role in your trading plan and understand how they fit into your overall strategy.
What is an example of a market order?
A market order is the simplest type of trading order, where you instruct your broker to buy or sell a stock immediately at the best available price in the market. Here’s a straightforward example:
Imagine you want to buy shares of a stock, let’s say ABC Corp, which currently has a bid price of $10.25 and an ask price of $10.30. If you place a market order to buy, your order will execute at the ask price of $10.30 (assuming there’s enough volume available at that price).
If there isn’t enough volume at $10.30 to fill your entire order, the market order will move up to the next available price level, say $10.35, and continue until your order is completely filled. This is why market orders are fast but can result in slippage, especially in less liquid stocks or during volatile market conditions.
Market orders are great for ensuring execution, but the trade-off is that you don’t control the exact price you’ll get. For highly liquid stocks like Apple or Microsoft, this isn’t usually a big issue, but for smaller, less liquid stocks, the price could move significantly as your order is filled.
What happens if you sell stock after close?
If you sell stock after the market closes, the transaction typically occurs during after-hours trading (if your broker allows after hours trading and you have enabled it), which is a period when trading continues outside regular market hours. If you don’t have after hours trading then the order is placed in the next regular trading session.
However, there are a few key differences and considerations compared to trading during normal hours:
- Lower Liquidity: After-hours trading often has fewer participants, which means there’s less volume available. This can make it harder to execute large orders without impacting the price significantly.
- Wider Spreads: The bid-ask spread (the difference between the price buyers are willing to pay and the price sellers are asking) tends to be wider after hours. This can result in less favorable pricing for your trade.
- Price Volatility: Prices can be more volatile after hours due to lower liquidity and the impact of news events, earnings announcements, or other market-moving factors that are released after the regular session ends.
- Execution Risks: Not all brokers support after-hours trading, and those that do may have specific rules or limitations. For example, some brokers only allow limit orders during after-hours sessions to prevent trades at unexpectedly poor prices.
Selling after the close can be useful if you need to act on breaking news or adjust your position quickly, but it’s essential to understand the risks and ensure your broker supports it.
Can you cancel a market on close order?
Yes, you can cancel a Market-On-Close (MOC) order, but there are some important conditions to keep in mind. MOC orders remain dormant until a specific time near the market close, depending on the exchange. Once that activation time is reached, the order becomes live and can no longer be canceled or modified.
For example, on many U.S. exchanges, MOC orders typically become irrevocable around 3:50 PM Eastern Time, just 10 minutes before the market closes. If you want to cancel or adjust the order, you must do so before this cutoff time. After that, the order is locked in and will execute at the closing price.
This is why it’s crucial to understand the specific rules of the exchange you’re trading on and to monitor your orders closely if you think you might need to make changes.
Can I place sell order after market close?
Yes, you can place a sell order after the market closes, and the order will be executed on the next trading day. But it may be executed during after-hours trading, provided your broker supports it and if you have after-hours trading enabled. After-hours trading occurs outside regular market hours and allows you to buy or sell stocks during this extended session. However, there are a few key points to keep in mind:
- Broker Support: Not all brokers allow after-hours trading, so you’ll need to confirm whether your broker provides this service.
- Order Types: Many brokers only allow limit orders during after-hours trading to prevent trades at unexpected prices due to lower liquidity.
- Liquidity: After-hours trading often has fewer participants, which can make it harder to find a buyer or seller at your desired price.
- Wider Spreads: The bid-ask spread tends to be wider, meaning you might not get as favorable a price as you would during regular hours.
- Volatility: Prices can be more volatile due to breaking news or earnings announcements released after the market closes.
If you’re trading after hours, it’s essential to understand these risks and ensure your trading plan accounts for them.
Can you sell while the market is closed?
You can sell during after-hours trading, provided your broker supports it. After-hours trading takes place outside the standard market hours (typically 9:30 AM to 4:00 PM Eastern Time in the U.S.) and allows you to execute trades in an extended session.
Here’s what you need to know:
- Broker Support: Not all brokers offer after-hours trading, so check if yours does.
- Order Types: Most brokers only allow limit orders after hours, meaning you set the price at which you’re willing to sell. Market orders are usually not available due to the risks of low liquidity.
- Liquidity: After-hours trading has fewer participants, which can make it harder to find buyers at your desired price.
- Wider Spreads: The bid-ask spread tends to widen, so you might not get as favorable a price as during regular hours.
- Volatility: Prices can be more volatile due to news or earnings announcements released after the market closes.
If you’re considering selling after hours, it’s essential to understand these risks and ensure your trading plan accounts for them.
Which is better limit order or market order?
The choice between a limit order and a market order depends entirely on your trading goals and the specific situation. Here’s a breakdown of the key differences to help you decide:
- Market Orders:
- Execution Certainty: A market order guarantees execution because it fills at the best available price in the market at that moment. This is ideal when you need to enter or exit a position quickly, regardless of the price.
- Price Uncertainty: The downside is that you don’t control the price. In fast-moving or illiquid markets, you could experience significant slippage, meaning you might pay more (or sell for less) than expected.
- Best For: Traders who prioritize speed over price precision, especially in highly liquid markets.
- Limit Orders:
- Price Control: A limit order lets you specify the price you’re willing to pay (buy) or accept (sell). This ensures you won’t get a worse price than your limit, which is great for controlling slippage.
- Execution Uncertainty: The trade-off is that your order might not get filled if the market doesn’t reach your limit price. This can be frustrating in fast-moving markets.
- Best For: Traders who prioritize price precision and are willing to risk not getting filled.
If you’re trading a system, limit orders can be a game-changer because they reduce slippage and allow for more precise backtesting results. But if you’re reacting to breaking news or need to exit a position fast, market orders are the way to go.
What is the function of a market order?
The function of a market order is to execute a trade immediately at the best available price in the market. It’s the simplest and most straightforward type of order, designed for traders who prioritize speed and certainty of execution over price precision. Here’s how it works:
- Execution Priority: When you place a market order, it gets filled as soon as possible by matching with the best available bid (if you’re selling) or ask (if you’re buying) in the market at that moment.
- Certainty of Fill: Market orders are almost always executed, provided there’s enough liquidity in the market. This makes them ideal for situations where getting into or out of a position quickly is more important than the exact price.
- Price Uncertainty: The trade-off is that you don’t control the price. In volatile or illiquid markets, the price you get might be significantly different from what you expected due to slippage.
For example, if you’re buying a stock and the current ask price is $10.30, your market order will fill at $10.30 (or higher if there’s not enough volume at that price). Similarly, if you’re selling, it’ll fill at the best bid price available.
Market orders are great for fast execution but can be risky in low-liquidity or fast-moving markets.


This post is incredibly insightful! Mastering market-on-close orders can definitely make a significant difference in trading strategy. I appreciate the detailed explanation of how to pinpoint the best opportunities. Can’t wait to put these tips into practice!
Thank you for reading and taking the time to comment. I am glad you found the article helpful.
Great insights on market-on-close orders! I never realized how much precision at the end of the trading day could impact profitability. The tips you shared on timing and order execution are especially helpful. Looking forward to implementing these strategies in my trading!
I am glad you found the article helpful! Thank you for taking the time to comment and share your experience.
This post offers some fantastic insights into market-on-close orders! I appreciate the practical tips on timing and strategy—definitely going to implement these techniques in my trading practice. Thanks for sharing!
Great insights on market-on-close orders! I never realized how much they could impact my end-of-day trading strategy. The tips for timing and execution were particularly helpful. Looking forward to implementing these strategies for better profits!
This post offers some fantastic insights into market-on-close orders! I love the detailed explanation of how timing can significantly affect profits. Implementing these strategies could really enhance trading precision at the end of the day. Looking forward to trying these tips out!