How can I Close an untriggered Pending-order based on time..
Hie Guys,
May anyone help, I would like to code a Line that Closes/Deletes a Pending order,
if not triggered, after a certain period of time (say 20 seconds). I have inserted question marks (?????)
in the code below, indicating where I would like to insert the line.
<CODE REMOVED>
Please read some other posts before posting . . .
Please edit your post . . . please use the SRC button to post code: How to use the SRC button.
Hie Guys,
May anyone help, I would like to code a Line that Closes/Deletes a Pending order,
if not triggered, after a certain period of time (say 20 seconds). I have inserted question marks (?????)
in the code below, indicating where I would like to insert the line.
Hie Guys,
May anyone help, I would like to code a Line that Closes/Deletes a Pending order,
if not triggered, after a certain period of time (say 20 seconds). I have inserted question marks (?????)
in the code below, indicating where I would like to insert the line.
//-----
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderSymbol() == symbol && OrderMagicNumber()==Magicbuy)
{
if ( ???????????) // checks if 20 seconds has elapsed since opening order.....
{
OrderDelete(order_ticket);
return(0);
}
//-----
Thank you...