MarketInfo: MODE_EXPIRATION always returns 0 on a CFD symbol

double expiration = MarketInfo("#NQH4", MODE_EXPIRATION);

expiration is always == 0

any idea to fix this ? or do you think this is a problem from broker transmitting info to MT4?

thanks for help

DavidS777:

expiration is always == 0

any idea to fix this ? or do you think this is a problem from broker transmitting info to MT4?

The only place that info comes from is your Broker, talk to them and ask for an explanation.
Alright thanks.
DavidS777: expiration is always == 0
MarketInfo - MQL4 Documentation

MODE_EXPIRATION21Market expiration date (usually used for futures).
Are you trading futures with MT4?
Yes I'm trading future with MT4. Why?