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 anything
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 (https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_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?
i made two EA ...
v1 for check last order but its problem, if at a time 3 order came , its only opening order for latest one
where v2 select one order and check others, which not properly working
like here:
ticket sym type comments
2000 GU Buy A1
2005 GU sell anything
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 (https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_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?
i made two EA ...
v1 for check last order but its problem, if at a time 3 order came , its only opening order for latest one
where v2 select one order and check others, which not properly working