Download MetaTrader 5

MarketInfo: MODE_EXPIRATION always returns 0 on a CFD symbol

To add comments, please log in or register
David Saulnier
400
David Saulnier  
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

Simon Gniadkowski
Moderator
18018
Simon Gniadkowski  
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.
David Saulnier
400
David Saulnier  
Alright thanks.
whroeder1
15085
whroeder1  
DavidS777: expiration is always == 0
MarketInfo - MQL4 Documentation

MODE_EXPIRATION21Market expiration date (usually used for futures).
Are you trading futures with MT4?
David Saulnier
400
David Saulnier  
Yes I'm trading future with MT4. Why?
To add comments, please log in or register