Manages all open order (other pairs too)
What error do you get?
Replace OrderSelect(i, SELECT_BY_POS, MODE_TRADES) with if(OrderSelect(i, SELECT_BY_POS)) {/* */}
Replace Bid with MarketInfo(OrderSymbol(),MODE_BID)
Replace Ask with MarketInfo(OrderSymbol(),MODE_ASK)
Replace Point with MarketInfo(OrderSymbol(),MODE_POINT)
Replace Bid with MarketInfo(OrderSymbol(),MODE_BID)
Replace Ask with MarketInfo(OrderSymbol(),MODE_ASK)
Replace Point with MarketInfo(OrderSymbol(),MODE_POINT)
Well, it's already solved. Thank you.
Yes, You were using wrong prices in your sample.
I'm trying to write a code to manage all open orders regardless it's pairs. My idea is to attach it on one pair only but will manage orders from other pairs too.
But it seems this code is failed, any idea why?
Thank you