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!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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...