Download MetaTrader 5

SymbolSelect() - page 3

To add comments, please log in or register
Mahmood
75
Mahmood  
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?
Jason Crossfield
155
Jason Crossfield  
OrderSend("EURUSD",OP_BUY,1,MarketInfo("EURUSD",MODE_ASK),3,1.1000,1.1111,"",12345,0);
Mahmood
75
Mahmood  
jasonxfield:

 



Thank you guys 
Mahmood
75
Mahmood  
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?
123
To add comments, please log in or register