I will never understand why people are asking question without even checking what was already said about the question. (Nothing personal).
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 :