Download MetaTrader 5

EA to close all orders when one specific pair reaches TP

To add comments, please log in or register
MQL5 Cloud Network is a distributed computing network. Just give it a try!
grrbear
393
grrbear 2015.03.31 19:47 
i am using a method where i open a basket of orders trading only the majors. for my exits i want all pairs to be closed when the pair that had the setup reaches a certain price level. for example, if eurjpy shows the strongest entry setup, and the other majors are also showing a similar attitude, i will open all pairs, but i want all pairs closed when eurjpy reaches a certain tp level in pips. thank you
Baruch Fishman
705
Baruch Fishman 2015.03.31 20:28  
There are a million ways to do this but it really depends on your existing code.
grrbear
393
grrbear 2015.03.31 23:48  
bfis108137:
There are a million ways to do this but it really depends on your existing code.
thanks for the response. i use a simple equity ea with basic close all functions based on account balance, maybe this feature can be added to it. i am not sure if it is possible though since it is only an .ex4 file (?)
fsguanghui
1596
fsguanghui 2015.04.02 17:33  
grrbear:
i am using a method where i open a basket of orders trading only the majors. for my exits i want all pairs to be closed when the pair that had the setup reaches a certain price level. for example, if eurjpy shows the strongest entry setup, and the other majors are also showing a similar attitude, i will open all pairs, but i want all pairs closed when eurjpy reaches a certain tp level in pips. thank you
you may try this one, close all orders including open and pending orders once TP reach.. this EA only active towards specific pair.. you may attach on each pair you want to...
grrbear
393
grrbear 2015.04.02 18:35  
fsguanghui:
you may try this one, close all orders including open and pending orders once TP reach.. this EA only active towards specific pair.. you may attach on each pair you want to...

thank you. i need to be able to set it in pips instead of value. i also wanted an entry function where i can set a pending order and when it opens the ea will run a script of my choice(will be a batch order buy or sell script). this way it will automate the opening of multiple pairs based on a single pair pending order, and then close all orders when that pair reaches a certain pip profit

To add comments, please log in or register