Reply

Check Pending Order Exits Across Multiple Symbols

1 replies

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #117309

Hello,

 

this function checks if a pending order exits in another market. You can run this in EURUSD and check order in GBPUSD for example

 

Code for EA Wizard / code / CustomFunctions.mq4

int sqPendingOrderSymbolExists(int orderMagicNumber, string strSymbol) {
   for (int cc = OrdersTotal() - 1; cc >= 0; cc--) {
      if(OrderMagicNumber() == orderMagicNumber || OrderSymbol() == strSymbol) return 1; 
   }

   return 0;
}

It can be used in Wizard as shown in the example

0

SuperWutsch

Subscriber, bbp_participant, community, 11 replies.

Visit profile

6 years ago #144674

Hallo,

 

I was in holiday in the last time. So I have see your awnser today. Mutch THANKS !!!!!! to you for perfect help. !!!!  🙂  🙂  🙂  🙂  🙂

0

Viewing 1 replies (of 1 total)