SymbolSelect() - page 3

 
honest_knave:

Quite right WHRoeder, I was guilty of a quick reply without giving too much thought to the rest of the code.

 or

 


Is it a complete code which open a EURUSD trade without an opened chart?
 
OrderSend("EURUSD",OP_BUY,1,MarketInfo("EURUSD",MODE_ASK),3,1.1000,1.1111,"",12345,0);
 
jasonxfield:

 



Thank you guys 
 
honest_knave:

As GumRai wrote, you don't "select" a pair before using OrderSend... There is no need to use SymbolSelect()

 

  

 Or if you want to use a variable:

 

 

Jasonxfield recommended another code, what's the difference between your code and his one?
Reason: