Parameter 'Expiration' only for pending orders.
Generate an Expert Advisor using the MQL5 Wizard and you will see this description:
Expiration of pending orders (in bars)
If the pending order doesn't open by then, it will be deleted by the server.
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
Some functions require datetime expiration parameter. I don't really understand what is it for, example I want to create condition to open a long position:
Is "expiration" the time that this long position must be close? How can I set it if I don't want to close position by time?