int start() // Special function start() { // Opening BUY OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Bid-15*Point,Bid+15*Point); return(0); // Exit start() }
Next time, please post on the Russian language forum
OrderSend returns -1 if it is not successful, you should code to check the error if this happends

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
<Russian Content deleted>
1. return value of 'OrderSend' should be checked 1.mq4 4 4
2. function must return a value 1.mq4 5 4
0 error(s), 2 warning(s), compile time: 967 msec