Download MetaTrader 5
To add comments, please log in or register
How to test a program before buying?
Mahmood
75
Mahmood 2015.12.22 08:05 
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
7875
Keith Watford 2015.12.22 08:35  
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
158
peter.MT4Web 2015.12.22 08:40  

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

/
To add comments, please log in or register