I have a big problem with retrieving trading hours from the symbol information. I use the function " if (SymbolInfoSessionTrade(symbol, ENUM_DAY_OF_WEEK(day), 0, openTime, closeTime)) " which works fine only for currency pairs and indexes, but doesn't work for stocks and ETF. I don't understand why, do you have any idea?
The stocks also have this information, as shown below, so I don't think is a matter of missing information
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello there,
I have a big problem with retrieving trading hours from the symbol information. I use the function " if (SymbolInfoSessionTrade(symbol, ENUM_DAY_OF_WEEK(day), 0, openTime, closeTime)) " which works fine only for currency pairs and indexes, but doesn't work for stocks and ETF. I don't understand why, do you have any idea?
The stocks also have this information, as shown below, so I don't think is a matter of missing information