I don't understand what I am doing wrong here
but I bet its related to datetime expirrry =
int expiration=(int)SymbolInfoInteger(_Symbol,SYMBOL_EXPIRATION_MODE); if (expiration == true) Print("Pending Order Expiration is allowed on this symbol"); else { Print("Pending Order Expiration is NOT allowed on this symbol"); }
i tested this
(USDCAD,H4) Pending Order Expiration is NOT allowed on this symbol
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
order is created but its not expiring after 1 min