when buy stop and sell stop expired ?

 

Hi....


When the buy stop and sell stop will expired ? is it possible to set the expired date ?


This is a code to execute sell stop:

TicketNumber6 = OrderSend(Symbol(), OP_SELLSTOP, lot, TargetPrice, 1, SL, TP, "comment", MagicNumber, 0, White);


And this is a code to execute byu stop:

TicketNumber3 = OrderSend(Symbol(), OP_BUYSTOP, lot, TargetPrice, 1, SL, TP, "comment", MagicNumber, 0, Green
 

OrderSend

The main function used to open market or place a pending order.

int  OrderSend(
   string   symbol,              // symbol
   int      cmd                // operation
   double   volume,              // volume
   double   price,               // price
   int      slippage,            // slippage
   double   stoploss           // stop loss
   double   takeprofit,          // take profit
   string   comment=NULL,        // comment
   int      magic=0            // magic number
   datetime expiration=0,        // pending order expiration
   color    arrow_color=clrNONE  // color
   );

Reason: