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
Hello everyone,
I programming MQL4 since some years so I can make indicators and EA without problems…
Now I’m studying MQL5 but I have some problems.
For example it’s so simple in MQL4 to count orders by type (open e pending)..
In MQL5, if I understood, I have to choose if I would to count pending or open orders… I can’t make a function that do all things like in MQL4…
In MQL4 I simply do something like this:
In MQL5 I can’t… I should create 2 functions, one to count pending orders and one to count open orders… It’s a ugly scenario for me…
Same thing for open an order (at market or pending): in MQL4 I created a function that open a trade (at market or pending) passing some data (type, price, sl, etc...)... In MQL5 I can't do something similar...
Where I'm wrong? There is a way to count orders by type or open an order link in MQL4 (without using MQL4 library).
Thanks