Foundations Beginner

Order types: what exactly is executed, and when

Lesson 4 of 10 ~9 min read

Listen to the lesson

Audio played live by your browser, with no audio file or extra download.

Preparing your device’s voice...
Ready to read the lesson aloud.

An order is a written instruction to your broker, accompanied by a condition: a price at which the order becomes active, a size, and a rule that determines how long it stays in force. The name of an order describes its condition, not its result, and no type of order promises you the price you will get.

What does a market order do?

A market order says: now, at what is available. What is available is the price at which the broker sells to you (ask) if you are buying, and the price at which the broker buys from you (bid) if you are selling. The price you see at the moment you press is the last price that reached your platform, not an offer guaranteed to you. So if the price changes between the press and the execution, your order is executed at a different price, and this is slippage.

In the documentation of one of the platforms, the broker sets for each instrument how this difference is handled. In one mode the broker decides the execution price, and your sending the order is advance consent to it. In another mode you set the largest difference you accept, and if the change exceeds it the broker returns new prices to you for you to accept or reject, which is called a requote.

How do you tell the four pending orders apart without memorising them?

A pending order waits for a price that has not yet arrived. It has four types, and one rule is enough to understand them: a limit waits for a price better for you than the price now, and a stop waits for a worse one. In a hypothetical example, with the price now 1.08500 to buy from you and 1.08520 to sell to you:

  • Buy limit: buys if the price at which the broker sells to you falls to its level or below, for example 1.08320, that is, 20 pips below the price at which the broker sells to you now.
  • Buy stop: buys if the price at which the broker sells to you rises to its level or above, for example 1.08720.
  • Sell limit: sells if the price at which the broker buys from you rises to its level or above, for example 1.08700.
  • Sell stop: sells if the price at which the broker buys from you falls to its level or below, for example 1.08300.

Buying at a lower price than now is a limit, and buying at a higher price than now is a stop. Selling at a higher price than now is a limit, and selling at a lower price than now is a stop. Whoever understands three of them can infer the fourth. Note also that buy orders are checked against the price at which the broker sells to you, and sell orders against the price at which the broker buys from you, because that is the price at which you will actually deal.

Hypothetical example: four pending orders around the price now
Buy orders
Checked against the price at which the broker sells to you, which is now 1.08520
Buy stop 1.08720
Above the price now. Buys if the price rises to it: a worse price for you than now
Buy limit 1.08320
Below the price now. Buys if the price falls to it: a better price for you than now
Sell orders
Checked against the price at which the broker buys from you, which is now 1.08500
Sell limit 1.08700
Above the price now. Sells if the price rises to it: a better price for you than now
Sell stop 1.08300
Below the price now. Sells if the price falls to it: a worse price for you than now
A limit waits for a better price than now, and a stop waits for a worse one.
The levels are 20 pips away from the price against which each order is checked.

A limit waits for a better price than now, and a stop waits for a worse one

Which orders close a position instead of opening one?

A stop-loss order and a take-profit order do not open a position; they are tied to an open position and close it, and the first may appear on your platform under the name “Stop Loss”. Mechanically, they are among the same four orders, pointed in the opposite direction. On a buy position, a stop-loss is a sell order that waits for a worse price, that is, a sell stop; and a take-profit is a sell order that waits for a better price, that is, a sell limit. That is why a stop-loss inherits all the behaviour of stop orders, which the next section explains.

What exactly does a stop-loss guarantee?

A stop-loss is an activation level, not an execution price. When the price reaches the level, a closing order is sent, and it is executed at the price available at that moment. In two ordinary circumstances that price may be worse than the level: when the price jumps on the release of scheduled data, and when the market opens its week at a price far from its closing price, which is the price gap.

Hypothetical example: you bought 0.1 lot at 1.08520 and placed the stop-loss at 1.08320. What you wanted was a maximum loss of 20 pips, that is, 75 riyals, because a pip at this size is 3.75 riyals. The market closed on Friday with the price at which the broker buys from you at 1.08400, eight pips above the stop, and then opened on Monday at 1.08020. The price never passed through the stop level at all; it jumped from above it to below it. So the closing is executed at the first available price, which here is 1.08020: a loss of 50 pips, that is, 187.5 riyals, two and a half times what you wanted. The difference, 30 pips or 112.5 riyals, is slippage in which nobody made a mistake; this is what a stop order does when there is no price between the two prices.

A stop-loss is a level, not a price: the week-opening gap An illustration, not a real price. Time runs from left to right, and the price rises upwards. A buy position of 0.1 lot opened at 1.08520, with its stop-loss at 1.08320. The market closed on Friday with the price at which the broker buys from you at 1.08400, eight pips above the stop, and stayed closed for about 49 hours, then opened on Monday at 1.08020, below the stop, so the closing was executed there. What you wanted was 20 pips, that is, 75 riyals. What happened was 50 pips, that is, 187.5 riyals. The slippage is 30 pips, that is, 112.5 riyals. Hypothetical example: a stop-loss on buying 0.1 lot, and the week-opening gap Illustration — not a real price. Time runs from left to right. Market closed About 49 hours Purchase 1.08520 Friday close 1.08400 Stop-loss 1.08320 Monday open Execution 1.08020 Friday Monday What you wanted: 20 pips, that is, 75 riyals What happened: 50 pips, that is, 187.5 riyals Slippage after the stop: 30 pips, that is, 112.5 riyals

The stop is a level, not a price: what you wanted, and what happened after the opening gap

This is different from the forced close-out that the previous lesson explained: that one is decided by the broker when the margin level in your whole account falls, and this one is an instruction you placed on a single position. As for where the stop is placed, and what governs its place, that is the subject of a lesson in the “Risk and psychology” level; this lesson explains what the order is, not where you place it.

Where does a trailing stop run?

A trailing stop moves the stop-loss level behind the price whenever the price moves in your favour. According to that platform’s documentation, this stop runs inside the platform’s software on your device, not on the broker’s server as an ordinary stop-loss does. That is why it stops moving if the software is closed, and the last level it reached remains an ordinary stop. Your platform may work differently, so read its documentation before you assume that the stop moves while your device is switched off.

What is a guaranteed stop-loss?

A guaranteed stop-loss order is the version that promises the closing price itself, however the price jumps. At the broker whose document was read, it is a product with a price: no payment is made when it is placed, and a fee is paid on it if it is activated. So read your broker’s terms before you assume otherwise. This lesson does not say who offers it or at what price.

How long does a pending order live?

Every pending order has a validity period that you choose when you place it. In the same platform’s documentation there are three basic options: it stays until you cancel it, it is valid for the current trading day only, or it stays until a date you specify. An order you left on “Good Till Canceled (GTC)” and then forgot does not end by itself, and it may be activated days later in a market you no longer follow.

Each order, what activates it, and what it does not promise
Order What activates it What it does not promise
Market orderYour pressThe price you saw at the moment you press
Buy limit, sell limitReaching a price better than nowThat the price reaches it at all
Buy stop, sell stopReaching a price worse than nowExecution at the level itself
Stop-lossThe price at which you close reaching its levelA cap on your loss after a gap
Take-profitA better price reaching its levelThat the price reaches it
Trailing stopThe price moving in your favourThat it moves while the software is closed, on the platform the lesson relied on
Guaranteed stop-lossReaching its levelThat it has no price; its price, if there is one, is in your broker’s terms
What you are not usually told

A stop-loss is usually presented among risk-management tools, and the word that goes with it in everyday speech is protection. But it is an activation level, and the two moments at which you expect it to protect you more than at others, the moment important data is released and the moment the week opens, are the two moments at which the price may jump over its level. The version that keeps this promise, where it is offered, has its terms and its price in the broker’s documents. There is no failing in this on the part of any particular broker; this is the nature of the tool.

A Gulf note

According to the schedules that the Chicago Mercantile Exchange (CME) has announced for currency contracts on its electronic platform, the week closes on Friday at four in the afternoon, Chicago time, and opens on Sunday at five in the evening. In Riyadh time that means the close is at about one in the early hours of Saturday when the United States is on its winter time, and at about midnight when it is on its summer time, and the open is at about two in the early hours of Monday in the first case and one in the second case; for Dubai time, add an hour. Spot forex, however, has no official schedule of its own, and what governs your account is your broker’s schedule.

So if your broker’s schedule is close to this schedule, a position you leave open on Friday evening stays for about two days in which you cannot close it, about 49 hours between the close and the open, and then the position reopens at whatever price the market opens at, and its stop-loss was not touched throughout that period. How the market’s closure intersects with working days and the weekend in Saudi Arabia and the UAE is the subject of the lesson on trading sessions in this level.

Summary

  • An order’s name describes its condition: a market order is executed now at what is available, a limit waits for a better price than now, and a stop waits for a worse one.
  • A stop-loss and a take-profit are opposite orders tied to an open position, and a stop-loss inherits the behaviour of a stop: an activation level, not an execution price.
  • When data is released and when the week opens, the stop may be executed far beyond its level, and the guaranteed version of it, where it is offered, has its terms and its price in the broker’s documents.
  • Today: in a demo account, place a pending order far from the current price, and a stop-loss on a small position, then find both in the order list, and read the name your platform gives each of them and its validity period.
Warning

Leveraged trading in CFDs carries high risk, and you may lose the entire amount you deposited. This lesson is an educational explanation of the nature of the product, not a recommendation to trade and not investment advice.

The next lesson brings together everything you pay in a single trade, what shows of it at the moment you press and what does not.