Check Pending Order Exits Across Multiple Symbols
1 replies
tomas262
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
SuperWutsch
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. !!!! 🙂 🙂 🙂 🙂 🙂
Viewing 1 replies (of 1 total)