Closing opened order after a definite number of seconds or minutes - page 2

 
but if I wanted to close all trades after 50 minutes after the first trade?
 
kji:
but if I wanted to close all trades after 50 minutes after the first trade?

Wait 3 years and you might get a reply . . .

Thread start date - 2010.11.16

 

I urgently need an answer to this question please... 


I open many trade of the same currency  at a time 


How can I write mql4/5 program that will close all 

The trade when any(one)  of those trade is closed by either stop loss 

Or take profit. I start my trading 7am everyday and I open 

Multiple trades. How can I do it. 
 
nelsino412:

I urgently need an answer to this question please... 


I open many trade of the same currency  at a time 


How can I write mql4/5 program that will close all 

The trade when any(one)  of those trade is closed by either stop loss 

Or take profit. I start my trading 7am everyday and I open 

Multiple trades. How can I do it. 

Forum on trading, automated trading systems and testing trading strategies

Welcome,

  • Usually people who cannot code do not receive free help on this forum, although it could happen if you are lucky. Be patient.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free).

Good luck. 

Given the urgent nature of your request, I'd suggest the Freelance section to be your most expeditious solution.
 
nelsino412: Multiple trades. How can I do it. 
You know how many trades you opened. Count in a OrderSelect loop how many are left. If the count goes down close all the remaining.
  1. Using OrdersTotal directly and/or no Magic number filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.) Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
  2. In the presence of multiple orders (one EA multiple charts, multiple EA's, manual trading)
  3. learn to code it, or pay (Freelance) someone to code it. We're not going to code it for you. We are willing to help you when you post your attempt (using SRC) and the nature of your problem.
 
Comments that do not relate to this topic, have been moved to "Off Topic Posts".