Create your own
Lesson illustration

Choosing the Right Order Type for Execution and Slippage

Welcome to your third lesson. In our previous session, we learned how to decipher the language of the market by interpreting the various identifiers for equities, ETFs, and commodity futures. You now have the tools to pinpoint the exact instrument you want to trade on exchanges like the LSE and NYSE. The logical next step is to learn how to actually execute a trade.

This lesson focuses on the "how" of buying and selling. We will explore the three fundamental types of orders you can give your broker: market, limit, and stop orders. Our goal is to understand the mechanics of each and, crucially, to learn how to select the right one for a given trading scenario. To do this, we must also grapple with two critical real-world concepts: liquidity and slippage. Think of an order as an instruction you send to the market; this lesson is about understanding the different instructions and their consequences.

1. The Three Primary Order Types

When you decide to buy or sell an asset, you don't just click a button that magically executes the trade at the price you see on the screen. You must submit an order, which is a precise set of instructions for your broker. From your perspective as a developer, you can think of an order as an API call to the exchange, where you specify parameters like the instrument, the quantity, and the execution logic. The type parameter in this call is what we'll focus on.

To get a clear overview of the three main order types, please watch the following video from Charles Schwab.

Understanding Market, Limit, and Stop Orders

This video provides an excellent introduction to market, limit, and stop orders. Please watch the following segments: The introduction explaining what an order is (order types). The section on market orders, which prioritises speed. The section on limit orders, which prioritises price. The section on stop orders, which act as triggers.

As you watch, notice the core trade-off each order type represents: speed of execution versus control over the price.

Now that you have a visual introduction, let's formalise these concepts.

a) Market Order: Certainty of Execution

A market order is the most straightforward instruction: buy or sell immediately at the best available current price.

  • Priority: Speed.
  • Use Case: You are confident in the current price and want to enter or exit a position as quickly as possible.
  • Risk: You don't have control over the exact execution price. The price can change in the milliseconds between placing the order and its execution, especially in a fast-moving or illiquid market.

b) Limit Order: Certainty of Price

A limit order gives you control over the price, but not the execution.

  • Priority: Price.
  • Mechanics:
    • A buy limit order sets the maximum price you are willing to pay. It is placed at or below the current market price.
    • A sell limit order sets the minimum price you are willing to accept. It is placed at or above the current market price.
  • Use Case: You have a specific target price for entry (e.g., buying a dip) or exit (e.g., taking profit at a resistance level) and are willing to wait for the market to come to you.
  • Risk: The market may never reach your limit price, and your order may never be filled.

c) Stop Order: A Conditional Trigger

A stop order (or stop-loss order) is a dormant order that activates and becomes a market order only when a specific price level (the "stop price") is reached.

  • Priority: Risk management or entering trades on momentum.
  • Mechanics:
    • A sell stop order is placed below the current price to limit losses on a long position. If the price falls to your stop price, it triggers a market order to sell.
    • A buy stop order is placed above the current price. This can be used to limit losses on a short position or to enter a long position once the price breaks above a key level, confirming upward momentum.
  • Use Case: Automating your risk management plan or entering a trade once your thesis is confirmed by price action.
  • Risk: Once triggered, it becomes a market order. This means it is subject to the same price uncertainty as a standard market order, which can be significant in a volatile market.

To solidify your understanding, please read the following guide. It provides detailed definitions and examples that will be very useful.

3 Order Types: Market, Limit, and Stop Orders

This article from Charles Schwab provides excellent written explanations with clear diagrams for each order type.

Please read the first three main sections: Start with the section on market orders. Continue with the explanation of limit orders. Finally, read the description of stop orders. Pay close attention to the diagrams, which visually contrast how the different orders are placed relative to the current market price.

2. Liquidity, the Order Book, and Slippage

Why is there a risk that your market order will execute at a different price than you expected? The answer lies in the concepts of liquidity and slippage.

Every market operates on an order book, which is a real-time list of all outstanding buy and sell limit orders.

  • The bid side shows all the buy limit orders, sorted by price from highest to lowest. The highest bid is the "best bid".
  • The ask (or offer) side shows all the sell limit orders, sorted from lowest to highest. The lowest ask is the "best ask".

The difference between the best bid and the best ask is the bid-ask spread.

Liquidity refers to the depth of this order book. A highly liquid market (like for LME Copper futures or a large-cap stock like Glencore) has a large volume of orders at many price levels near the current price, and a narrow bid-ask spread. This means you can execute large trades without moving the price much. An illiquid market is the opposite.

When you place a market order, you are agreeing to "cross the spread". A market buy order consumes the volume available at the best ask price. If your order is larger than the volume at that price level, your order "slips" to the next-best ask price, and so on, until your entire order is filled.

Slippage is the difference between the expected price of a trade and the average price at which the trade is actually executed. It's a direct consequence of your order consuming available liquidity.

The following video provides a fantastic and concise visual explanation of this exact process.

Slippage explained | Trading concept to know

The presenter uses an order book from a crypto exchange to visually demonstrate how a large market order can cause slippage. The principle is identical for stocks and commodities.

Watch from the beginning until the end of the example. Focus on how the sell order in the example consumes successive levels of the buy-side (bid) of the order book, resulting in a lower average execution price than the initial best bid.

The key takeaway is that slippage is a primary concern for market orders and stop orders. Limit orders, by their nature, protect you from negative slippage because they define the worst price you're willing to accept.

Price gaps, often occurring overnight due to news, can cause extreme slippage, especially for stop orders.

3 Order Types: Market, Limit, and Stop Orders

Let's return to the Schwab article to see a practical example of how this plays out.

Please read the section titled What are price gaps?. The diagram showing a "gap down" perfectly illustrates why a stop-loss order is not a guarantee of execution price, only execution itself.

3. Making the Choice: Scenarios

Let's apply this knowledge to practical scenarios related to your goal of trading industrial metals and related companies.

ScenarioYour GoalPrimary ConcernRecommended OrderRationale
Entering a TradeYou see that copper prices are rising sharply on positive economic data and you want to buy Freeport-McMoRan (FCX) immediately to catch the momentum.Speed. You fear missing the move.Market OrderGuarantees immediate execution. You accept the risk of minor slippage to ensure you get into the position quickly.
Entering a TradeYou believe Glencore (GLEN.L) is overvalued at its current price of £4.80. Your analysis suggests it's a good buy at £4.50.Price. You are only willing to buy at your target price or better.Buy Limit Order at 450p.This ensures you don't overpay. If the price never drops to £4.50, your order won't execute, which is acceptable under your thesis.
Exiting a TradeYou are holding a long position in LME Aluminium futures. You have a profit target in mind.Price. You want to lock in your profit at a specific level.Sell Limit Order at your target price.This automatically sells your position if the market rallies to your predefined exit level, securing your gains.
Exiting a TradeYou bought shares in a junior mining company. It's a speculative position, and you've decided you will not tolerate a loss of more than 15%.Risk Management. You need a hard backstop to prevent a large loss.Sell Stop Order 15% below your entry price.If the stock falls to your stop price, it triggers a market order to sell, getting you out of the position and capping your loss (though slippage can mean the final loss is slightly larger).

Conclusion

You have now learned the fundamental mechanics of placing trades. This moves you one step closer to actively participating in the market. Knowing which order type to use is not just a technical detail; it is a core part of implementing a trading strategy and managing risk.

Key Takeaways:

  • Market Orders prioritize speed. Use them when immediate execution is more important than the exact price.
  • Limit Orders prioritize price. Use them to enter or exit at a specific price level or better, accepting that the order may not be filled.
  • Stop Orders are triggers that become market orders. They are essential for automating risk control (stop-loss) and for entering trades based on momentum breakouts.
  • Liquidity determines how easily you can trade. Slippage is the execution cost you pay for immediacy in markets, and it primarily affects market and stop orders.

In our next and final lesson for this module, we will put all the pieces together. We'll learn how to calculate the full profit or loss of a trade, factoring in transaction costs, currency conversions, and any distributions like dividends. This will complete our foundation in the mechanics of trading.

Can't find a good explanation? Sign up and we'll make it for you

Sign up