OrderSend() Expiration parameter
its in seconds since the unix epoch, its an absolute timestamp.
int time_to_close = TimeCurrent() + 3 * 60 * 60; // 3 hours from now
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!
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.
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