claudio_arrau2:
...
Thanks a lot, the file in the other post corrected the problem.
I just hope that it will be part of the official distribution of MQL5!
![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
Hi,
I am sending with an EA a BuyStop order, when testing, it gives always the error
CTrade::OrderOpen:Invalid Filling Type
Code is (utrade is created fom CTrade of course):
I also tried all other Filling Types:
ORDER_FILLING_FOK and
ORDER_FILLING_IOC
None of them works. I tried various Symbols as well. The broker allows "Filling: All".
Any idea? Is it maybe only a problem of the Tester? (it is weekend, cannot try on demo account).
When I use "Buy" instead of BuyStop (of course with slightly different parameters), then it works.
For the sake of completion (is not relevant for the problem):