Forex Market Hours
- www.mql5.com
SYMBOL_START_TIME | Date of the symbol trade beginning (usually used for futures) | datetime |
SYMBOL_EXPIRATION_TIME | Date of the symbol trade end (usually used for futures) | datetime |
https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants
- www.mql5.com
|
SYMBOL_START_TIME |
Date of the symbol trade beginning (usually used for futures) |
datetime |
|
SYMBOL_EXPIRATION_TIME |
Date of the symbol trade end (usually used for futures) |
datetime |
https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants
It's not working as expected.
printf(TimeToString(SymbolInfoInteger(Symbol(),SYMBOL_START_TIME),TIME_DATE|TIME_MINUTES));
printf(TimeToString(SymbolInfoInteger(Symbol(),SYMBOL_EXPIRATION_TIME),TIME_DATE|TIME_MINUTES));
The testing result is :
2011.02.26 11:23:35 testing (EURUSD,H1) 1970.01.01 00:00
2011.02.26 11:23:35 testing (EURUSD,H1) 1970.01.01 00:00
The result should be:
2011.02.28 00:00
2011.03.04 23:00
Hi guys,
Is it possiable to know when is the market weekly opening and closing time by MQL5 code?