please help me about selecting and comapre orders

 

suppose i hv 5 opened order where 3 are GU and 2 EU

like here:

ticket    sym   type    comments

2000     GU    Buy       A1

2005     GU    sell      

3005     EU    Sell       A1

4005     EU    Sell       3005

5005     GU    buy       2000


so i want select first order and compare it with others 4 orders, in others 4 order 2  are GU and 1 buy 1 sell, so it will compare with same symbol and order type. if match do this or break and go next step

next again start with 2nd order and then compare below 3 orders who are in same sym and type, if match do this or break and go next step

next same .......................

is it possible?

 
can anybody help me please?
 
Hefajatur Rahman:
can anybody help me please?
Looks like you need to explain more.... I couldn't understand what you want
 

i want to select first order and compare with below others orders

then refresh and select 2nd order from list and compare with below others orders

and go on until last order


here are the attachment of my last 2 EA i made, but they select only last one

https://www.mql5.com/en/forum/87499

EA placing same order copy of previous order
EA placing same order copy of previous order
  • www.mql5.com
i m in trouble, suppose my signal provider open 5 orders in diff pair at a time or in 5 sec, my EA only select last opened order where others are...
 
Hefajatur Rahman:

suppose i hv 5 opened order where 3 are GU and 2 EU

like here:

ticket    sym   type    comments

2000     GU    Buy       A1

2005     GU    sell      

3005     EU    Sell       A1

4005     EU    Sell       3005

5005     GU    buy       2000


so i want select first order and compare it with others 4 orders, in others 4 order 2  are GU and 1 buy 1 sell, so it will compare with same symbol and order type. if match do this or break and go next step

next again start with 2nd order and then compare below 3 orders who are in same sym and type, if match do this or break and go next step

next same .......................

is it possible?

Yes, it is possible.
 
Irwan Adnan:
Yes, it is possible.
can u update my code if possible?
Reason: