Is there some method to check if the market is closed or open for trade. Except for getting an return code of 10018 when trying to place an order
- Please fix this indicator or EA
- Simple test to determine if market is closed?
- Market Open?
I will never understand why people are asking question without even checking what was already said about the question. (Nothing personal).
Anyway
Forum on trading, automated trading systems and testing trading strategies
How to find the Friday's market closing time?
Alain Verleyen, 2016.12.22 18:44
And even the code I used :
datetime from,to;
uint session=0;
while(SymbolInfoSessionQuote(_Symbol,FRIDAY,session,from,to))
{
printf("Quoting session %i start %02i:%02i to %02i:%02i",session,from/3600,(from%3600)/60,to/3600,(to%3600)/60);
session++;
}
session=0;
while(SymbolInfoSessionTrade(_Symbol,FRIDAY,session,from,to))
{
printf("Trading session %i start %02i:%02i to %02i:%02i",session,from/3600,(from%3600)/60,to/3600,(to%3600)/60);
session++;
}
So please don't come here talking about quality, when you have just posted rudeness and self-promoting.uint session=0;
while(SymbolInfoSessionQuote(_Symbol,FRIDAY,session,from,to))
{
printf("Quoting session %i start %02i:%02i to %02i:%02i",session,from/3600,(from%3600)/60,to/3600,(to%3600)/60);
session++;
}
session=0;
while(SymbolInfoSessionTrade(_Symbol,FRIDAY,session,from,to))
{
printf("Trading session %i start %02i:%02i to %02i:%02i",session,from/3600,(from%3600)/60,to/3600,(to%3600)/60);
session++;
}

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register