Can you give a more detail or an example?
Ickyrus:
Can you give a more detail or an example?
Can you give a more detail or an example?
Hi Ickyrus,
I am trading 10 pairs at the same time.
On each pair I set in the morning two orders, one buy and one sell.
I need to write an EA that will close the opposite order for each pair if one of those 2 (on each pair) is triggered.
So that I have only one active order on each pair if one of the 2 orders (that was set in the morning) was triggered.
So I have 20 orders in the morning, and want to have only 10 active in the end, if everyone of them was triggered.
I hope this makes more sense now, thanks for help! =)
kr, John
Thank you ubzen - this is what I was searching for: One-Cancels-the-Other !
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I am trading several pairs and on each pair I have two orders.
How can I close the opposite one if one of these two is triggered?
Do I have to crawl thrue the Order-Pool and get the Order-ID and close it?
Is there a simple way to do that?
Thank you in advance!
Kind regards,
John