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.
Start the Debugger and check the value of "pair".
To add comments, please log in or register