Thread: Expiration
View Single Post
  #2 (permalink)  
Old 01-13-2008, 10:55 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
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 View Post
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,ExpirationGreen); 
What do I set in the
PHP Code:
Expiration 
to make my pending Orders Delete in 1 hour?
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote