SymbolSelect()

Back to topics list  | 1 2 3 To post a new topic, please log in or register
avatar
26
Mahmood000 2015.12.18 19:03 #
 
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?

avatar
20
jasonxfield 2015.12.18 19:58 #
 
OrderSend("EURUSD",OP_BUY,1,MarketInfo("EURUSD",MODE_ASK),3,1.1000,1.1111,"",12345,0);

 


avatar
26
Mahmood000 2015.12.18 20:54 #
 
jasonxfield:

 



Thank you guys 
avatar
26
Mahmood000 2015.12.18 21:41 #
 
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?

Back to topics list   | 1 2 3  

To add comments, please log in or register