Select Language

Place If-Done-OCO order

On MetaTrader4 (MT4) / MetaTrader5 (MT5), you can place If-Done-OCO orders. If-Done-OCO order stands for "If Done, One Cancels the Other" and sometimes it is called the "IFDOCO" order.

If-Done-OCO order is a type of order where you place a new limit/stop/stop-limit order while setting the take-profit and stop-loss levels. Once the profit or the loss cut has been confirmed, the other order will be automatically canceled.(*1)

Here we will look at how to place an If-Done-OCO order on MT4/MT5.

Switch between MT4/MT5 tabs to check the steps for each.

(*1)Stop-limit order is only available on MT5.

mt4
mt5

Step 1

Click "New Order" in the toolbar.

Related article: Open the new order window

Open the new order window Open the new order window

Step 2

Click the "Symbol" field to choose the symbol to place an order for.

Choose the symbol to place an order for Choose the symbol to place an order for

Step 3

Click the "Type" field and select "Pending Order".

Click the Type field and select Pending Order Click the Type field and select Pending Order

Step 4

Click the "Type" field and select a type of limit/stop order.

Select type Select type
  1. Buy Limit

    Buy Limit

    If you place a buy order by specifying a lower price than the current, select Buy Limit. Enter a price that is lower than the current Ask price.

  2. Buy Stop

    Buy Stop

    If you place a buy order by specifying a higher price than the current, select Buy Stop. Enter a price that is higher than the current Ask price.

  3. Sell Limit

    Sell Limit

    If you place a sell order by specifying a higher price than the current, select Sell Limit. Enter a price that's higher than the current Bid price.

  4. Sell Stop

    Sell Stop

    If you place a sell order by specifying a lower price than the current, select Sell Stop. Enter a price that's lower than the current Bid price.

Step 5

Set the trade volume in lots in the "Volume" field. Type the volume or select from the pull-down menu.

Set the trade volume for limit order Set the trade volume for limit order

Step 6

Set the limit/stop level in the "at price" field. Type the price or use the ▼▲ marks on the right side.

Set the price Set the price

Step 7

Set the stop-loss (S/L) value in the "Stop Loss" field, and the take-profit value in the "Take Profit" field. Type the value or use the ▼▲ marks on the right side.

Related article: Set or change T/P and S/L values

Set the stop-loss (S/L) and take-profit (T/P) prices Set the stop-loss (S/L) and take-profit (T/P) prices

Step 8

Set the expiration time for the limit/stop order in the "Expiry" field. To specify the date and time, open the calendar from the pull-down on the right side to select the date and time. Time is based on the server time.

Set the expiration time Set the expiration time

Step 9

In the "Comment" field, you can add comments to an order. Use them as notes for later reference.

Add comments Add comments

Step 10

Click "Place".

Click Place Click Place
caution If "Place" is not activated

When placing limit/stop orders, you have to specify a price that's certain points away from the current price. The difference between the two is called the stop level and it varies by the broker, account type, and symbol. If you can't click the "Place" button, adjust the price according to the stop level.

Related article: Check trading conditions

point Tick chart

In the new order window, you can check the tick chart. A tick is the smallest unit of data that represents price. Tick charts detect smaller price changes than any other chart, which will help you execute well-timed orders. From the new order window's tick chart, you can check the Bid, Ask, take-profit (T/P), and stop-loss (S/L) values.

Step 11

The order details will be added below the balance line in the "Trade" tab of the Terminal as a pending order.

If-Done-OCO order has been placed If-Done-OCO order has been placed

The order will be executed once the specified price is reached. The order details will be updated as an open position and moved above the balance line.

If-Done-OCO order has been executed If-Done-OCO order has been executed

Step 1

Click "New Order" in the toolbar.

Related article: Open the new order window

Click New Order in the toolbar Click New Order in the toolbar

Step 2

Click the "Symbol" field to choose the symbol to place an order for.

Click the Symbol field to choose the symbol to place an order for Click the Symbol field to choose the symbol to place an order for

Step 3

Click the "Type" field and select "Pending Order".

Click the Type field and select Pending Order Click the Type field and select Pending Order

Step 4

Click the "Type" field and select a type of limit/stop/stop-limit order.

Click the Type field and select a type of limit/stop/stop-limit order Click the Type field and select a type of limit/stop/stop-limit order
  1. Buy Limit

    Buy Limit

    If you place a buy order by specifying a lower price than the current, select Buy Limit. Enter a price that is lower than the current Ask price.

  2. Buy Stop

    Buy Stop

    If you place a buy order by specifying a higher price than the current, select Buy Stop. Enter a price that is higher than the current Ask price.

  3. Buy Stop Limit

    Buy Stop Limit

    Select Buy Stop Limit and specify a trigger price higher than the current. Once the trigger price is achieved, a buy limit order will be placed.

  4. Sell Limit

    Sell Limit

    If you place a sell order by specifying a higher price than the current, select Sell Limit. Enter a price that's higher than the current Bid price.

  5. Sell Stop

    Sell Stop

    If you place a sell order by specifying a lower price than the current, select Sell Stop. Enter a price that's lower than the current Bid price.

  6. Sell Stop Limit

    Sell Stop Limit

    Select Sell Stop Limit and specify a trigger price lower than the current. Once the trigger price is achieved, a sell limit order will be placed.

Step 5

Set the trade volume in lots in the "Volume" field. Type the volume or use the ▼▲ marks on the right side.

Set the trade volume in lots in the Volume field Set the trade volume in lots in the Volume field

Step 6

Set the limit/stop/stop-limit price (trigger price to activate stop-limit order) in the "Price" field. To place a stop-limit order, set the limit price in the "Stop Limit Price" field. Type the price or use the ▼▲ marks on the right side.

Set the limit/stop price in the Price field Set the limit/stop price in the Price field

Step 7

Set the stop-loss (S/L) value in the "Stop Loss" field, and the take-profit value in the "Take Profit" field. Type the value or use the ▼▲ marks on the right side.

Related article: Set or change T/P and S/L values

Set the stop-loss (S/L) value in the Stop Loss field, and the take-profit value in the Take Profit field Set the stop-loss (S/L) value in the Stop Loss field, and the take-profit value in the Take Profit field

Step 8

Set the expiration type for the limit/stop order. To specify the date, select "Specified" or "Specified day" in the "Expiration" field and specify the date and time in the "Expiration date" field. Time is based on the server time.

Set the expiration type for the limit/stop order Set the expiration type for the limit/stop order

Step 9

In the "Comment" field, you can add comments to an order. Use them as notes for later reference.

In the Comment field, you can add comments to an order In the Comment field, you can add comments to an order

Step 10

Click "Place".

Click Place Click Place
caution If "Place" is not activated

When placing limit/stop orders, you have to specify a price that's certain points away from the current price. The difference between the two is called the stop level and it varies by the broker, account type, and symbol. If the "Place" button is blue or not red, check your price and make sure the deviation isn't smaller than the stop level.

Related article: Check trading conditions

If Place is not activated If Place is not activated
point Tick chart

In MT5's new order window, you can check the tick chart. A tick is the smallest unit of data that represents price. Tick charts detect price movement faster than any other chart, which will help you execute well-timed orders. From the new order window's tick chart, you can check the Ask, Bid, take-profit (T/P), and stop-loss (S/L) values.

Step 11

Once the order is placed, the order details will be added below the balance line in the "Trade" tab of the Toolbox as a pending order.

Added below the balance line in the Trade tab of the Toolbox as a pending order Added below the balance line in the Trade tab of the Toolbox as a pending order

The order will be executed once the specified price is reached. The order details will be updated as an open position and moved above the balance line.

Updated as an open position and moved above the balance line Updated as an open position and moved above the balance line

Date

Created

 : 2022.08.19

Update

Last updated

 : 2024.08.15

Takayoshi Nakamaru

Manual production consultant, MBA

arrow
Takayoshi Nakamaru

Nakamaru is a manual production consultant at FINTECS, a company that specializes in creating manuals for their clients.
With a wide range of experience from fintech to entertainment, he presents what user-friendly manuals should be like.
He works with numerous large corporations as an external manual production project manager.

【Business information】
http://www.fintecs.co.jp/profile/

Supervisor

Akira Takagi

Systems engineer, MetaTrader administrator

arrow
Akira Takagi

After graduating from Computer Science at the Uninove, Brazil, in 2014, he has worked on various systems development projects.
He participated as a developer in the launch of forex services in 2019. Since then, he has also been involved in the development of MetaTrader plugins and APIs. He is certified by MetaQuotes as a MetaTrader5 Administrator and active in consulting and advisory as well.

Was this article helpful?

We hope you find this article useful. Any comments or suggestions will be greatly appreciated.  
We are also looking for writers with extensive experience in forex and crypto to join us.

please contact us at [email protected].

Thank you for your feedback.
Thank you for your feedback.

Disclaimer:arw

All information and content provided on this website is provided for informational purposes only and is not intended to solicit any investment. Although all efforts are made in order to ensure that the information is correct, no guarantee is provided for the accuracy of any content on this website. Any decision made shall be the responsibility of the investor and Myforex does not take any responsibility whatsoever regarding the use of any information provided herein.

The content provided on this website belongs to Myforex and, where stated, the relevant licensors. All rights are reserved by Myforex and the relevant licensors, and no content of this website, whether in full or in part, shall be copied or displayed elsewhere without the explicit written permission of the relevant copyright holder. If you wish to use any part of the content provided on this website, please ensure that you contact Myforex.

  • Facebook
  • Twitter
  • LINE

Myforex uses cookies to improve the convenience and functionality of this website. This website may include cookies not only by us but also by third parties (advertisers, log analysts, etc.) for the purpose of tracking the activities of users. Cookie policy

I agree
share
Share
Cancel