pls help me with ordersend expiration for 15 mins

 
zeeyeetee: I have a OP_SELLSTOP, how to setup expiration for 15 mins?

The two ways you could do it:

  1. Just before the OrderSend(), read the current server time with TimeCurrent() and add to it 900 seconds (15min) and use that as your Expiration value.
  2. Alternatively, place the order without an expiration, then read in its open-time and then add 900 seconds (15min) and then modify the order and set the expiration.
 
Fernando Carreiro:

The two ways you could do it:

  1. Just before the OrderSend(), read the current server time with TimeCurrent() and add to it 900 seconds (15min) and use that as your Expiration value.
  2. Alternatively, place the order without an expiration, then read in its open-time and then add 900 seconds (15min) and then modify the order and set the expiration.

thanks,

it works perfectly