EA Check open orders

 

hello,

I made a simple EA that reads from a CSV and opens the orders, there would be the possibility to check if there are already open orders for a symbol?

 
sartuxtips: would be the possibility to check if there are already open orders for a symbol?
  1. Perhaps you should read the manual.
    The function selects an order for further processing.
              OrderSelect - Trade Functions - MQL4 Reference

  2. Using OrdersTotal directly and/or no Magic number filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.)
              Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 and MetaTrader 4 - MQL4 programming forum
              MagicNumber: "Magic" Identifier of the Order - MQL4 Articles

Reason: