Set the time
from now in seconds.
For example if you want the order to expire after 30 minutes then you have to use this:
PHP Code:
int expire_at = TimeCurrent() + (30 * 60 );
Quote:
Originally Posted by Dan7974
How do I code the expiration for my pending Orders?
i.e.,
PHP Code:
OrderSend(Symbol(),OP_BUYSTOP,0.1,Ask,25,Ask-50*Point,Ask+50*Point,"",0,Expiration, Green);
What do I set in the to make my pending Orders Delete in 1 hour?
|