How can I get expiration date from a Future Index?
This property is for futures only.
Documentation: Symbol Properties
SYMBOL_EXPIRATION_TIME
Date of the symbol trade end (usually used for futures)
datetime

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
- www.mql5.com
Symbol Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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
Hi,
How can I get de expiration date from a Future Index, like the Description window (attached image)?
I tried use the code below, however dind't work.
datetime m_Expiration = (datetime)SymbolInfoInteger(_Symbol, SYMBOL_EXPIRATION_TIME);
the date returned is D'1970.01.01 00:00:00'