![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I tested the last code on real account and got the same errors:
There is a problem here There is a problem hereee The Buy order request could not be completed -error:4756
I also checked the journal tab and found the log:
Why is it like that ?
Try like these.
Why is it like that ?
Try like these.
What is the difference between OnTick() and OnStart() ?
Why is it like that ?
Try like these.
I tried your code but I get "4753" error!
I also tried to comment the filling_type code or test all the filling types methods. The only change happened when I used this code:
And got these new errors in journal tab:
2019.01.14 12:22:26.819 Trades '89412': accepted exchange buy 1.0K خساپا at market sl: 1297 tp: 1433
2019.01.14 12:22:26.828 Trades '89412': rejected exchange buy 1.0K خساپا at market sl: 1297 tp: 1433
check the return code of MqlTradeResult
I checked for retcode:
I checked for retcode: