Download MetaTrader 5
To add comments, please log in or register
Do you know that MQL5 has structures?
Mahmood
75
Mahmood 2015.12.18 18: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?
Jason Crossfield
155
Jason Crossfield 2015.12.18 18:58  
OrderSend("EURUSD",OP_BUY,1,MarketInfo("EURUSD",MODE_ASK),3,1.1000,1.1111,"",12345,0);
Mahmood
75
Mahmood 2015.12.18 19:54  
jasonxfield:

 



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