OrderSend() return value
The Book examples has some Errors ... Ignore that piece of code. Should be >
ubzen:
The Book examples has some Errors ... Ignore that piece of code. Should be >
. . . and make sure you Print() the error number if the OrderSend() failed . . . What are Function return values ? How do I use them ?
The Book examples has some Errors ... Ignore that piece of code. Should be >
Thanks all!
In the documentation it says that OrderSend() returns -1 on failure. But in the expert advisor example documentation here, it shows the following:
if(Ticket < 0) //Success
Directly after that it checks for the error number anyway. So I'm confused with this logic...