So, I have this MQL4 code of an EA that I have. I've created everything, it's working. But, it has a time function that after a certain period of time, like 4 hours, is going to close the open orders which work. But the problem is, whenever I set the time function to, like, say 20 hours, the code, it won't work. That is, it won't close from 10 hours above. So, I don't know the reason why. What do you think the reason is?
- MQL4| Open or close order after a certain number of hours have passed [Help]
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
- Time Functions in an EA
bravomalisco:
So, I have this MQL4 code of an EA that I have. I've created everything, it's working. But, it has a time function that after a certain period of time, like 4 hours, is going to close the open orders which work. But the problem is, whenever I set the time function to, like, say 20 hours, the code, it won't work. That is, it won't close from 10 hours above. So, I don't know the reason why. What do you think the reason is?
So, I have this MQL4 code of an EA that I have. I've created everything, it's working. But, it has a time function that after a certain period of time, like 4 hours, is going to close the open orders which work. But the problem is, whenever I set the time function to, like, say 20 hours, the code, it won't work. That is, it won't close from 10 hours above. So, I don't know the reason why. What do you think the reason is?
Is it checking the order open time or a set point in time ? (which changes if the ea reinitializes) . I'm guessing here without any code sample
bravomalisco: So, I have this MQL4 code of an EA that I have. I've created everything, it's working. But, it has a time function that after a certain period of time, like 4 hours, is going to close the open orders which work. But the problem is, whenever I set the time function to, like, say 20 hours, the code, it won't work. That is, it won't close from 10 hours above. So, I don't know the reason why. What do you think the reason is?
If you want help with your code, then show it! We cannot see your computer nor read your mind.
bravomalisco: What do you think the reason is?
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked, so we can't see your machine.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Always post all relevant code (using Code button) or attach the source file.
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