1 EA in 2 Charts (MQL4)

 
Mr Google says: 

Hi there, 

I have a problem and ask for help in the solution. 

I want to run an EA simultaneously in two charts. This goes not, they influence each other. What is the correct selection-value for each individual.

(I have already made ​​a copy of the EA and used in both copies of different ticket numbers. Unsuccessfully) 

// ------------------------------------------     

   total=OrdersTotal();   //   && OrderSymbol() == Symbol()) ???


   if(total<1) 

     {

      //--- no opened orders identified

      if(AccountFreeMargin()<(1000*Lots)) 

//------------------------------------------------------ 

What is the correct entry? Thanks in advance.

 
OrderMagicNumber - MQL4 Documentation
  • docs.mql4.com
OrderMagicNumber - MQL4 Documentation