> For the complete documentation index, see [llms.txt](https://docs.tradeviewmarkets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tradeviewmarkets.com/accounts-and-platforms/trading-platforms/metatrader-5/trading.md).

# How to Trade in MetaTrader 5

Place market and pending orders in MetaTrader 5, understand execution modes and netting vs hedging, modify or close positions and export a report.

{% hint style="warning" %}
Practise on a demo account first. Orders on a live account use real money, and losses can exceed your deposit when you trade on margin. Results in a demo environment do not reflect live trading conditions.
{% endhint %}

## Orders, deals, and positions

* An **order** is your instruction to buy or sell. It can be a **market order** (execute now) or a **pending order** (execute when the price reaches a level).
* A **deal** is the executed trade that results from an order.
* A **position** is your open exposure in a symbol. On a **netting** account there is one position per symbol. On a **hedging** account each deal opens a separate position.

After you send an order, the **State** column in the Toolbox shows its progress: **Started**, **Placed**, **Partially filled**, **Filled**, **Canceled**, or **Rejected**.

## Open the order window

* Right-click a symbol in **Market Watch** and select **New Order**.
* Press **F9**.
* Select **New Order** on the Standard toolbar, or **Tools → New Order**.
* Double-click a symbol in **Market Watch**.

<figure><img src="https://1464240515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUxIYPiScWr2xuS89YX3%2Fuploads%2Fgit-blob-43c28a07cc2feb5d1d99d560f1a6ed59e6cf5830%2Fmarket-watch-new-order.png?alt=media" alt="New Order in the Market Watch context menu opens the order window" width="520"><figcaption><p>New Order in the Market Watch context menu opens the order window.</p></figcaption></figure>

## Place a market order

{% stepper %}
{% step %}

### Set the symbol and type

Check the **Symbol**. Keep **Type** as **Market Execution** (or **Instant Execution** or **Exchange Execution**, depending on the symbol).
{% endstep %}

{% step %} <img src="https://1464240515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsUxIYPiScWr2xuS89YX3%2Fuploads%2Fgit-blob-9e39e0cd2b43251693883a5ab6d7b95db67f4837%2Forder-window.png?alt=media" alt="The order window with the symbol, the type, the volume and the protection levels." data-size="original">
{% endstep %}

{% step %}

### Enter the volume and protection levels

Enter the **Volume** in lots. Enter **Stop Loss** and **Take Profit** as prices, or as a distance in points where the window allows it. Add an optional **Comment** of up to 31 characters.
{% endstep %}

{% step %}

### Choose the fill policy (Market Execution only)

Select **Fill or Kill** (execute the full volume or nothing), **Immediate or Cancel** (execute the available volume and cancel the rest), or **Return** (execute the available volume and keep the rest as an order).
{% endstep %}

{% step %}

### Send the order

Select **Sell** or **Buy**. The window reports success or the reason for a rejection. With **One Click Trading** enabled, the window closes automatically after a successful trade.
{% endstep %}
{% endstepper %}

### Execution modes

| Mode                   | What happens                                                                                                                                                                                              |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Instant Execution**  | The order is filled at the price shown. If the price moves outside the allowed **Deviation** during processing, the server can offer new prices, which you **Accept** or **Reject** within a few seconds. |
| **Request Execution**  | You request a price first, then confirm or reject it.                                                                                                                                                     |
| **Market Execution**   | The order is filled at the current market price without a new quote.                                                                                                                                      |
| **Exchange Execution** | Used for exchange-traded instruments. The order goes to the external system.                                                                                                                              |

## Place a pending order

Set **Type** to **Pending Order** in the order window, choose the order type, enter the **Price**, the optional **Stop Limit price** for stop-limit orders, the **Expiration**, and any Stop Loss and Take Profit, then select **Place**.

| Type                | Trigger                                                                                 | Use it when you expect                                 |
| ------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| **Buy Limit**       | Buy at an Ask price equal to or lower than the order price                              | The price to fall to your level and then rise.         |
| **Buy Stop**        | Buy at an Ask price equal to or higher than the order price                             | The price to keep rising after it reaches your level.  |
| **Sell Limit**      | Sell at a Bid price equal to or higher than the order price                             | The price to rise to your level and then fall.         |
| **Sell Stop**       | Sell at a Bid price equal to or lower than the order price                              | The price to keep falling after it reaches your level. |
| **Buy Stop Limit**  | When the Ask reaches the stop price, a **Buy Limit** is placed at the stop-limit price  | A breakout followed by a pullback to a better entry.   |
| **Sell Stop Limit** | When the Bid reaches the stop price, a **Sell Limit** is placed at the stop-limit price | A breakdown followed by a bounce to a better entry.    |

**Expiration** options are **GTC** (good till cancelled), **Today**, **Specified** (date and time), and **Specified day**.

{% hint style="warning" %}
On futures accounts, MetaTrader 5 at Tradeview routes market and limit orders plus Stop Loss and Take Profit only. Stop-limit orders are not supported for futures.
{% endhint %}

## Stop Loss and Take Profit

* **Take Profit** closes the whole position at a profit target. For a long position it is above the Bid. For a short position it is below the Ask.
* **Stop Loss** closes the whole position at a loss limit. For a long position it is below the Bid. For a short position it is above the Ask.
* If a Stop Loss or Take Profit cannot be executed on one tick, the server retries on the next tick.
* On a **netting** account, a new trade that increases or reverses the position replaces the previous Stop Loss and Take Profit. A partial close keeps them, and a full close deletes them.
* On a **hedging** account, each position keeps its own levels.

## Trade with one click and from the chart

1. Right-click the chart and select **One Click Trading**, or press **Alt+T**, to show the trading panel on the chart.
2. Enter the volume and select **SELL** or **BUY**.
3. Drag the Stop Loss, Take Profit, or pending-order line on the chart to change its price.

## Modify or close

1. In the **Trade** tab, right-click the position or order and select **Modify or Delete**.
2. Change the levels and select **Modify**, or select **Delete** to cancel a pending order.
3. To close a position, right-click it and select **Close Position**. Reduce the volume to close part of the position.
4. On a **hedging** account, right-click a position and select **Close By** to close it against an opposite position in the same symbol.
5. On a **netting** account, an opposite trade of the same volume closes the position, and a larger opposite trade reverses it.

## Use a trailing stop

1. Right-click the open position in the **Trade** tab.
2. Select **Trailing Stop** and choose a distance in points, or select **Custom**.

{% hint style="warning" %}
The trailing stop runs on your terminal. If the terminal is closed or offline, the Stop Loss stays at its last level. Stop Loss and Take Profit themselves are stored on the server. Tradeview services are not offered in the United States or to US Persons.
{% endhint %}

## Alerts, history, and reports

* Create an alert on the **Alerts** tab of the Toolbox (right-click → **Create**, or press **Insert**), or right-click a chart and select **Alert**.
* Open the **History** tab, right-click, and choose to view the history as **Positions**, **Orders**, or **Deals**, and select the period.
* Right-click in the **History** tab and select **Report** to save an HTML statement. The report includes deposits and withdrawals, closed and floating profit or loss, balance, equity, margin, drawdown, profit factor, and trade statistics.

## Read the account line

| Field            | Meaning                                                                           |
| ---------------- | --------------------------------------------------------------------------------- |
| **Balance**      | Funds in the account, excluding open positions.                                   |
| **Credit**       | Funds provided by the broker under a credit arrangement.                          |
| **Equity**       | Balance + Credit ± floating profit or loss − blocked amounts.                     |
| **Margin**       | Funds reserved for open positions and pending orders.                             |
| **Free Margin**  | Equity − Margin. Funds available to open new positions.                           |
| **Margin Level** | Equity ÷ Margin × 100 %. The account line turns red at a margin call or stop-out. |
