its in seconds since the unix epoch, its an absolute timestamp.
int time_to_close = TimeCurrent() + 3 * 60 * 60; // 3 hours from now
7bit:
its in seconds since the unix epoch, its an absolute timestamp.
Ah You are right i just made a mistake! Thanks for the quick reply!
I thought it wasn't possible to automatically cancel pending orders with ECN brokers? I have to cancel mine manually, which is both annoying and dangerous.
7bit:
its in seconds since the unix epoch, its an absolute timestamp.
Hey 7, thanks! I've been struggling w/ order expiration for some time, and you solved my problem..., again!
Can you take a look over here: https://www.mql5.com/en/forum/130180
For some reason, I'm now having a problem w/ my ordermodify all of the sudden and I think I'm missing something obvious.

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
I would like to use the expiration parameter for some pending orders. Somewhere i read it should be in seconds but in fact it's not working like that.
I would like to use it on 1Hbars and set it like after 3 hours the order should be deleted.
Maybe i'm blind but i could find it in the documentation. Can someone please explain me how it works?
Thanks in advance and sorry for my bad english!
Cheers