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
First parameter in OrderClose() is an order ticket. Instead of "i" you should use OrderTicket().
First parameter in OrderClose() is an order ticket. Instead of "i" you should use OrderTicket().
What a simple, what a big mistake?
Thanks a lot.
#4051 - Closed#4109 - Open
ERR_TRADE_NOT_ALLOWED
I already know #4109 error comes from Disabled " Enable Automated Trading ". So I get error code #4109 that is true but I need to get error code description, now I get description " no error " while I get error #4109
I try to use below part code of error for gets error number and description. So get right Error number but not error description.
Q: What could do for ErrorDescription, please?
( I am hard working on it right now )
Thanks in advance.
ErrorDescription(): it is function on libraries stdlib.mq4
you need import it to your EA or copy code to your EA.
ErrorDescription(): it is function on libraries stdlib.mq4
you need import it to your EA or copy code to your EA.
Thanks for your comment.
I try like below code, so am I doing wrong, please?
Thanks in advance.
you must get error.
you must get error.
Perfect! Thanks a lot.
#4109 - Closed#Time To Integer - Open
error: possible loss of data due to type conversion
I few times faced above error and I was fixed it with removing "#property strict" then I was not seen that error after it.
But know I need to fix it without remove "#property strict".
So, I need to convert Time to Integer, how can I do it right, please?
Thanks in advance.
Which integer do you need ?
https://docs.mql4.com/dateandtime