TH One Cancels Other
EA for MT5
User Manual
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.
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.
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.
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.
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.
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.