I want to find at what hour the market closes on Friday.
I'm trying with the following script but it returns 0. However the market closes at 22:00.
How can fix the script in order to make it showing 22?
Out of interest, what does it show under Sessions when you right-click the instrument in Market Watch and select "Specification"?
Yes, but what does it say under Sessions in Specification? Does it match what you are getting?
Your script running:
Oddly, I too am using the demo from the MetaQuotes website but EURUSD runs up to midnight
You are right. It shows session from 00:00 to 24:00.
However the market close at 22:00.
If the data are from 00:00 to 24:00 you can't have 22:00 as result.
If you are using MT5 Metaquotes-Demo Server and you have only data up to 2016.12.16 21:45 there is something strange.
Please delete this topic. Nothing useful comes here.