Download MetaTrader 5

Expiration Date on Pending order

To add comments, please log in or register
Baptiste George
530
Baptiste George  

Hi,

I wanted to use the expiration date on pending order.

void openShortLimitTrade_RSI(double value) { // TrailingStopDistance
   int ticket = OrderSend(Symbol(),OP_SELLLIMIT,Lots,value,slippage,0,0,"RSI_EA",MagicNumber2,TimeCurrent()+60*60,Red);
   PlaySound("alert.wav");
....

}‌

While backtesting I thought the pending order not triggered would have been deleted after 1 hour?

Please help.‌

whroeder1
17081
whroeder1  
Frenchytrader: While backtesting I thought the pending order not triggered would have been deleted after 1 hour?
  1. It should, unless your broker doesn't allow expiration.
  2. Check your return codes (OrderSend.) What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
To add comments, please log in or register