Hello, I am just starting to experiment in mql5 and I am still learning but I get an error in this code in price which doesn't make sense since it should just buy the symbol at whatever price as long as there is not an open order. If you could help me understand what is going on that would help me a lot. Thanks
- if i have many open orders, how to get the last order opened open price?
- help with code. Beginner.,
- Close all open trades at once
bdelphia:
Hello, I am just starting to experiment in mql5 and I am still learning but I get an error in this code in price which doesn't make sense since it should just buy the symbol at whatever price as long as there is not an open order. If you could help me understand what is going on that would help me a lot. Thanks
Hello, I am just starting to experiment in mql5 and I am still learning but I get an error in this code in price which doesn't make sense since it should just buy the symbol at whatever price as long as there is not an open order. If you could help me understand what is going on that would help me a lot. Thanks
Hi, this line, you need to end it with ';':
request.type_filling =ORDER_FILLING_FOK;
without ';', the compiler will not recognise that this line has ended, and will therefore give you an error in 'price' of the following line.
As mentioned already the missing ;
Okay Thank you

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