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
- Request Execution - Opening and Closing Positions - Trade - MetaTrader 5 for Android
- Request Execution - Opening and Closing Positions - Trade - MetaTrader 5 for iPhone
- Parabolic SAR - Trend Indicators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
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