There are two main order types in trading: a market order, which opens a trade at once at the current price, and a pending order, which waits for the price to reach a level you set. MetaTrader 5 has six pending orders, plus Stop Loss, Take Profit and trailing stop to close trades. This guide puts all of them on one map, with an example for each.

TL;DR
  1. A market order opens at once. A limit order enters at a better price than now, a stop order enters when the price moves through a level.
  2. A stop order fills at its price or worse, a limit order at its price or better. On a price gap that difference decides your entry.
  3. A stop limit order in MT5 waits for a breakout, then places a limit order to enter on the pullback.
Trade on the Go With RoboForex MobileTrader
Quotes, charts, market and pending orders in one app, on your phone or in Telegram.

What Are the Main Order Types in Trading?

An order is an instruction to the broker to buy or sell an instrument on set terms. Orders fall into three groups. Market orders open a trade now. Pending orders open a trade later, at a price you choose. Closing orders, Stop Loss, Take Profit and trailing stop, end a trade that is already open.

Every pending order answers two questions: is the level above or below the current price, and do you buy or sell there. The map below lists each order in MetaTrader 5 with the price that triggers it and the price it fills at.

MetaTrader 5 has one market order, six pending orders and three ways to close a trade.
OrderWhat it doesLevel against the current priceFills at
Market order: opens a trade now
Market buy or sellOpens a trade at onceNo level: buy at Ask, sell at BidThe best price available now
Pending orders: open a trade at your level
Buy LimitBuys after a fall to your levelBelow the priceYour price or lower
Sell LimitSells after a rise to your levelAbove the priceYour price or higher
Buy StopBuys when the price rises through your levelAbove the priceYour price or higher
Sell StopSells when the price falls through your levelBelow the priceYour price or lower
Buy Stop LimitAfter a rise to the stop price, places a Buy Limit lower downStop price above, limit price below the stop priceThe limit price or lower
Sell Stop LimitAfter a fall to the stop price, places a Sell Limit higher upStop price below, limit price above the stop priceThe limit price or higher
Closing orders: end an open trade
Stop LossCloses a trade that moves against youBelow a buy, above a sellIts price or worse
Take ProfitCloses a trade that reached your targetAbove a buy, below a sellIts price or better
Trailing stopMoves the Stop Loss after the priceA set distance behind the priceAs a Stop Loss

Buy orders trigger on the Ask price and sell orders on the Bid price.

MetaTrader 4 has the same market order and four pending orders. Buy Stop Limit and Sell Stop Limit exist only in MetaTrader 5.

How Does a Market Order Work?

A market order buys or sells at once at the best price available. A buy opens at the Ask price, the higher of the two quotes, and a sell opens at the Bid price, the lower one. The gap between them is the spread, the cost you pay on every entry.

A market order gives you speed and leaves the exact price open. Between the moment you press Buy and the moment the order fills, the quote can move. The difference between the price you saw and the price you got is called slippage. On a calm market it is usually a fraction of a pip. During news releases it can reach several pips, in your favour or against you.

The order window shows how your account fills market orders in the Type field at the top.

  • Market Execution: the order fills at the current market price, and slippage is possible.
  • Instant Execution: the order fills at the price you see. If the price moves beyond the allowed deviation, the terminal offers a new price, a requote, which you accept or decline.
  • Request Execution and Exchange Execution: the first asks for a quote before the trade, the second sends the order to an exchange. Both are rare on forex accounts.

Use a market order when getting into the trade now matters more than the exact price. For a planned entry at a chosen level, a pending order does the job.

Limit vs Stop Orders: Where Does Each One Sit?

A limit order enters at a better price than the current one, a stop order enters after the price moves through a level. Buy low, sell high: that is a limit. Buy higher on strength, sell lower on weakness: that is a stop. The ladder below shows where all four pending orders sit around the current price on a hypothetical EUR/USD at 1.1000, with support at 1.0950 and resistance at 1.1050.

Above the price you place Buy Stop and Sell Limit, below it Buy Limit and Sell Stop.
LevelBuy orderSell order
Above the current priceBuy Stop at 1.1060, above resistance: buy if the breakout carries onSell Limit at 1.1050, at resistance: sell if resistance holds
1.1000, current priceMarket buy at AskMarket sell at Bid
Below the current priceBuy Limit at 1.0950, at support: buy if support holdsSell Stop at 1.0940, below support: sell if the break carries on

Each pending order puts a different view of the same chart into practice: limits bet that a level holds, stops bet that it breaks. The settings of each of these four orders, step by step in the terminal, are in the guide to pending orders: Buy Limit, Sell Limit, Buy Stop and Sell Stop.

What Is a Stop Limit Order?

A stop limit order is a pending order with two prices: a stop price that activates it and a limit price where it actually trades. In MetaTrader 5 the stop price waits for the market to reach a level, and then the terminal places a limit order at the second price. The trade opens only if the market comes back to that limit price.

This suits a breakout followed by a retest. You want to buy after the price breaks resistance, and you want a better entry than the top of the breakout candle. Here is how a Buy Stop Limit works on a hypothetical EUR/USD trading at 1.0950, with resistance at 1.1000.

A Buy Stop Limit buys the pullback after a breakout, or it does not trade at all
Schematic on a hypothetical EUR/USD, no real prices. Stop price 1.1000, limit price 1.0980.
  1. Both prices go into the order window: Price is the stop price, Stop Limit is the limit price.
  2. Without a pullback to 1.0980 the Buy Limit waits unfilled.
  3. A Sell Stop Limit is the mirror image.
Source: RoboForex schematic of the MetaTrader 5 order rules. Drawn 30 November 2026.
  1. Place the order

    In the order window choose Buy Stop Limit. Enter 1.1000 in the Price field, the stop price, and 1.0980 in the Stop Limit field, the limit price. Nothing happens while Ask stays below 1.1000.

  2. The breakout triggers it

    Ask reaches 1.1000. The Buy Stop Limit disappears, and a Buy Limit at 1.0980 takes its place in the Trade tab.

  3. The market decides on the pullback

    If the price pulls back to 1.0980, the Buy Limit fills at 1.0980 or lower. You bought the breakout 20 pips below the breakout level.

    If the price keeps rising and never returns to 1.0980, the Buy Limit stays unfilled. You miss the move, and you also pay nothing for a breakout bought at the top.

A Sell Stop Limit is the mirror image. With support at 1.0900, set the stop price at 1.0900 and the limit price at 1.0920. When Bid falls to 1.0900, the terminal places a Sell Limit at 1.0920, and it fills if the price bounces back up to that level.

On stock platforms a stop limit order often works another way: a buy stop limit caps the entry with a limit at or above the stop price. If you read about stop limit orders elsewhere, check which of the two the platform uses. In MetaTrader 5 the limit price of a Buy Stop Limit sits below the stop price, and for a Sell Stop Limit above it.

Try Every Order Type on a Free Demo Account
Open a RoboForex demo account and place each order from this guide with virtual money at real prices.

Orders That Close a Trade: Stop Loss, Take Profit and Trailing Stop

Closing orders end a trade at levels you set in advance, so the trade closes even when you are away from the screen. You can attach them when you open the trade or add them later.

Stop Loss

A Stop Loss closes a trade when the price moves against you to a set level. It limits the loss on one trade to an amount you chose before you entered. For a buy it sits below the entry price, for a sell above it.

When the price reaches it, a Stop Loss closes the trade at the next available price, the way a stop order does. On a fast market or after a gap, that price can be worse than the level you set. The gap section below shows how much worse.

Take Profit

A Take Profit closes a trade when the price reaches your target. It fills like a limit order, at its price or better. For a buy it sits above the entry price, for a sell below it.

Trailing Stop

A trailing stop moves the Stop Loss after the price as the trade gains. Say you set a trailing stop of 30 pips on a EUR/USD buy from 1.1000. When the price rises to 1.1040, the Stop Loss moves up to 1.1010. If the price then turns down, the Stop Loss stays at 1.1010 and closes the trade with a 10 pip gain.

In MetaTrader 5 the trailing stop runs in your terminal, not on the broker's server. It moves the Stop Loss only while the terminal is open and connected. When you close the platform, the Stop Loss stays at its last level and still works, but it stops following the price. To keep a trailing stop working around the clock, traders run the terminal on a VPS, a remote computer that stays on all the time.

How Long Does an Order Stay Active?

A pending order stays active until it fills, until you delete it or until its expiry time. You set the expiry in the Expiration field of the order window.

A pending order stays active until it fills, you delete it or its expiry passes.
ExpirationThe order stays active
GTCGood till cancelled: until it fills or you delete it
TodayUntil the end of the current trading day
SpecifiedUntil the date and time you enter
Specified dayUntil the end of the day you pick

An expiry date suits an order tied to an event. A Buy Stop placed for a breakout after a central bank meeting loses its reason once the week is over, so it makes sense to let it expire on Friday.

The Fill Policy field decides what happens when the market cannot fill the whole volume at once. Fill or Kill fills the full volume or nothing. Immediate or Cancel fills what is available now and cancels the rest. Return fills what is available and keeps the rest of the order active. If the field is grey, your account allows only one policy, and the terminal applies it for you.

What Happens to Your Orders When the Price Gaps?

A price gap is a jump between two prices with no trades in between. On forex it happens most often between the Friday close and the Monday open, and on major news. A gap shows the real difference between stop and limit orders: a stop fills at the first price after the gap, a limit never fills worse than its level.

Take a hypothetical EUR/USD that closed on Friday at 1.1000 and opened on Monday at 1.1050. Here is what five orders placed before the weekend would do. The spread is left out to keep the numbers simple.

On a 50-pip gap, stops filled up to 30 pips worse and limits at their level or better
Order placed on FridayWhat happens on MondayFill against the order level, pips
Buy Stop at 1.1020Triggers at the open and buys at about 1.1050−30
Stop Loss at 1.1030 on a sell from 1.0980Closes the sell at about 1.1050: a loss of about 70 pips where the plan allowed 50−20
Sell Limit at 1.1040Sells at about 1.1050+10
Buy Stop Limit, stop 1.1020, limit 1.1010Triggers and places a Buy Limit at 1.1010, which waits below the market until the price falls back to itNo fill
Buy Limit at 1.0950Nothing, the price moved away from itNo fill

Pips, hypothetical EUR/USD, Friday close 1.1000, Monday open 1.1050, spread left out. Minus means a fill worse than the order level. The actual fill depends on the first prices available at the open.

Two practical steps follow from this. Before a weekend or a major release, check the open trades and pending orders that a gap could hit, and decide which ones to keep. Size every position so that a Stop Loss filled some pips worse than planned still keeps the loss within your limit. The RoboForex trading calculator shows the value of a pip for any volume, so you can check that margin in money before you enter.

Which Order Type Should You Use?

Choose the order by the job you want it to do. The table pairs common trading goals with the order that fits each one.

Five goals call for an order that opens a trade, three for one that closes it
Your goalOrder
Open a trade
Enter now at the current priceMarket order
Buy cheaper on a pullback to supportBuy Limit
Sell higher at resistanceSell Limit
Join a breakoutBuy Stop or Sell Stop
Join a breakout on the retestBuy Stop Limit or Sell Stop Limit
Close a trade
Cap the lossStop Loss
Take the gain at a targetTake Profit
Protect a gain while the trend runsTrailing stop

Most planned trades combine three orders: one pending order to enter, a Stop Loss to cap the loss and a Take Profit to collect the gain. Before you send them, set the volume from the distance to the Stop Loss. The guide on how to calculate lot size gives the formulas for a set risk.

Margin Call and Stop Out: Orders the Broker Places

Two events close or warn about trades without an order from you. Both depend on the margin level, the ratio of your equity to the margin held for open positions.

A Margin Call is a warning. It comes when losses on open trades bring the margin level down to a set threshold, and it tells you that the funds left are barely enough to keep the positions open. You can add funds or close part of the positions.

A Stop Out is the forced close. If the margin level keeps falling to the Stop Out threshold, the broker closes losing positions at the market price until the margin level is back above the threshold. The thresholds depend on the account type and are listed in its specification. A Stop Loss on every trade and a volume sized for it keep the margin level far from both.

Trade in RoboForex MetaTrader 5
All six pending orders, Stop Loss, Take Profit and trailing stop, on desktop and in the mobile app.

How to Place an Order in MT5

All order types in MetaTrader 5 go through one window. Practise them on a demo account first, where a wrong field costs nothing. Every field of that window, with screenshots, is covered in How to Place a Trade on MT5: Your First Trade Step by Step.

  1. Open the New Order window

    Select the instrument in Market Watch and press F9 on Windows or the New Order button on the toolbar.

  2. Choose the order type

    Keep the market execution type for a market order, or choose Pending Order in the Type field and then Buy Limit, Sell Limit, Buy Stop, Sell Stop, Buy Stop Limit or Sell Stop Limit.

  3. Set the volume and the prices

    Enter the volume and the order price. For a stop limit order also fill the Stop Limit field. Add Stop Loss, Take Profit and the expiration.

  4. Send and check the order

    Press Place for a pending order, or Buy or Sell for a market order. The order appears in the Trade tab, where a double-click lets you change or delete it.

A faster route works straight from the chart: right-click at the level you want and open the Trading menu. MetaTrader 5 offers the pending orders that fit that level, Buy Limit and Sell Stop below the price, Sell Limit and Buy Stop above it.

When the orders open and close the way you expect on the demo, the next step can be a real account with a small amount, such as a RoboForex cent account.

Conclusion

Order types in trading come down to three questions: enter now or at a level, enter on a pullback or on a breakout, and how to close. A market order enters now. Limit orders enter at a better price, stop orders enter on movement, and a stop limit order in MetaTrader 5 combines the two for a breakout with a retest. Stop Loss, Take Profit and trailing stop close the trade on your terms. Place each of them once on a demo account, and the order window will hold no surprises when you trade for real.

FAQ

What are the four main types of orders?
The four basic order types are the market order, the limit order, the stop order and the stop limit order. A market order fills at once at the current price. A limit order fills at your price or better, a stop order turns into a market order when the price reaches your level, and a stop limit order places a limit order once its stop price is reached.
What is the difference between a market order and a limit order?
A market order guarantees the trade and leaves the price open: it fills at once at the best price available. A limit order guarantees the price and leaves the trade open: it fills only at your price or better, and if the market never gets there, it does not fill.
What does buy stop mean in trading?
A buy stop is a pending order to buy above the current price. It triggers when the Ask price rises to your level and fills at that price or higher. Traders use it to join a breakout, for example above resistance or a range high.
What is the difference between a stop order and a stop limit order?
When its price is reached, a stop order trades at once at the next available price, so after a gap it can fill well away from your level. A stop limit order places a limit order instead, which fills only at its limit price or better. In MetaTrader 5 that limit sits on the other side of the stop price, so the trade opens on a pullback after the breakout, or not at all.
Does a trailing stop work when MetaTrader 5 is closed?
No. The trailing stop runs in the terminal and moves the Stop Loss only while the terminal is open and connected. When you close the platform, the Stop Loss stays at its last level on the server and still closes the trade there, but it no longer follows the price. A VPS keeps the terminal running around the clock.
Can a Stop Loss close a trade at a worse price than I set?
Yes. A Stop Loss closes the trade at the next available price once its level is reached. On a calm market that is at or very near your level. On a fast market or after a weekend gap the fill can be several pips or more beyond it, so size the position with that margin in mind.
Any information provided in articles on this website is based solely on the personal opinions of the authors. These articles should not be construed as trading recommendations or a call to action. The authors and RoboForex accept no responsibility for the results of any trades made on the basis of these recommendations and reviews. Past performance is not indicative of future results. Trading stocks and CFDs involves a high risk of capital loss.