• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Trading Heroes

Forex Trading Education

  • About
  • Articles
  • Resources
  • Shop
  • Login

TH One Cancels Other
EA for MT5
User Manual

Cancel pending order

How It Works

This EA will look for pending trades with a Comment in the market of the chart that it is attached to.

When a pending order with a Comment is triggered and becomes a live trade, this EA will cancel ALL other pending orders in that market with the same Comment.

This can be a huge help to traders who trade breakouts and retracements. 

Before you use this EA in a real-money account, be sure to test it in a demo account first, so you can practice using it and you understand how it works. 

How to Install this EA

Get instructions on how to install this EA here.

 

How to Use

Simply click and drag the EA onto the chart from the Navigator > Expert Advisors window.

Drag EA onto chart

There are no user inputs for this EA, so there is nothing to set.

Make sure that the Allow Algo Trading box is checked so the EA can execute trades, then click OK.

OCO start screen

Now you should see the name of the EA with a blue hat in the upper right corner of the chart. If you see this, the EA is ready to go.

EA attached to chart

Once the EA is activated on the chart, enter a trade by right-clicking on the chart and selecting Trade > New Order or just hit F9 on your keyboard.

You cannot enter a trade via the One-Click buttons because you need to be able to fill out the Comment field on the trade.

When you enter a trade, pick a Comment that you'll use for all of your OCO trades. It can be anything you want, but I would suggest making it simple so you don't make any mistakes. For example, you could use the Comment “8” to designate your OCO orders.

Enter the parameters of your pending trade, then enter your Comment and click the Place button.

Order example

Then enter an opposite pending order.

Once one of the pending orders get triggered, all of the pending orders in that market with the same Comment will be canceled.

For example, if the buy pending order gets executed first, then the pending sell orders will be canceled in the same market. The opposite will happen for a sell trade that gets executed first.

Only trades in the same market and with the same Comment will be affected by this logic. Trades without a Comment or with a different Comment will not be affected. 

If you want to manage more than one OCO trade, just use a different Comment.

If you don't have this EA yet, click this button to buy it now.

BUY NOW

 

Built-In Safety Precautions

Here's what will happen in special cases that you may not have thought of.

There are a few different ways that we could have gone in each scenario, but we decided to go with the safest option in each case.

What happens if an instant order with the same Comment, in the same market, is executed while pending orders are open?

In this case, all pending orders with the same Comment, in the same market, will cancel.

This is to prevent too many trades from being opened at the same time.

What if I try to open a pending order in the same market with the same Comment as an open order?

The new pending order will automatically cancel to prevent over trading.

To set up another OCO trade, use a different Comment.

Frequently Asked Questions

Click “+” to see the answer to each question.

Can this be installed on the mobile app?
No, custom EAs and indicators can only be installed on the desktop version of MetaTrader 5.
Does MetaTrader 5 have to be running all the time to manage trades?
Yes, you need to have the EA running on a computer at home or on a Virtual Private Server (VPS) at a hosting company.
Will this work on MetaTrader 4?
No, MT4 and MT5 use different programming languages, so you have to purchase the correct version.
What's your refund policy?
Since this is a downloadable product, there are no refunds. All sales are final.
Does this EA guarantee profits?
No, of course not. This EA is simply a tool. Your success or failure will depend on how you use this tool as part of a proven trading strategy. No EA can guarantee profits.
Is there a discount?
Yes, simply select cryptocurrency as your payment method to receive a discount.
Do you have backtesting results for this EA?
No, that is not possible because this EA only handles the entry of a trade. Therefore, you'll have to manage the trades and determine the exit, which will vary greatly between traders. Only EAs that handle the entry and exit can have backtesting results.
Where can I get help with installing this EA?
Common questions are answered in detail on the Help page here. If you do not see an answer to your question, you can also contact us via the Help page.
I don't have this EA yet, where can I buy it?

It can be purchased from our store here:

BUY NOW

 

One Cancels Other EA for MetaTrader 5

 

Footer

Company

  • Trading Courses and Education
  • Trading Blog
  • About
  • Contact
  • Beware of Imposters

Articles

  • Backtesting
  • Etheric Finance Podcast
  • Forward Testing
  • Funded Trader Programs
  • Podcast
  • Trader Life
  • Trading Psychology
  • Trading Software Tutorials
  • Trading Strategies

Community

  • YouTube
  • X
  • Instagram
  • Facebook

Trading involves risk and can result in the loss of your investment. Invest at your own risk. Past performance does not guarantee future results. All information on this site is for informational purposes only and is not trading, investment, tax or health advice. The reader bears responsibility for his/her own investment research and decisions. Seek the advice of a qualified finance professional before making any investment and do your own research to understand all risks before investing or trading. TrueLiving Media LLC and Hugh Kimura accept no liability whatsoever for any direct or consequential loss arising from any use of this information. This site is reader supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate, we earn from qualifying purchases. You are more powerful than you know, keep expanding.

 

Copyright © 2007–2025 TrueLiving Media LLC | Terms | Privacy | Risk