How can I get expiration date from a Future Index?

Glayton Teixeira de Araújo  

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'

Documentação sobre MQL5: Informações de Mercado / SymbolInfoInteger
Documentação sobre MQL5: Informações de Mercado / SymbolInfoInteger
  • www.mql5.com
SymbolInfoInteger - Informações de Mercado - Referência MQL5 - Referência sobre algorítimo/automatização de negociação na linguagem para MetaTrader 5
Files:
Description.png  16 kb
Reason: