Download MetaTrader 5

Error unknown symbol name eurusd; for OrderSend func2

To add comments, please log in or register
Mahmood
75
Mahmood  
I use this line in my ea to open a trade
OrderSend (pair,action,volume(),MarketInfo(pair,MODE_ASK),3,stopLose1,takeProfit1,"",0,0,Green)

I recive error:
Error unknown symbol name eurusd; for OrderSend function 

I test this line in an ea which contains only this OrderSend line it works without any error
Keith Watford
Moderator
10614
Keith Watford  
I recive error:
Error unknown symbol name eurusd; for OrderSend function 

 Is there a symbol with the name "eurusd"?

Maybe it is "EURUSD" or has a prefix or suffix 

 

I test this line in an ea which contains only this OrderSend line it works without any error 

Not possible that an EA with just the OrderSend line will work at all.

There has to be other lines that declare and give values to the variables. 

peter.MT4Web
157
peter.MT4Web  

Start the Debugger and check the value of "pair".

To add comments, please log in or register