How to tell if Market is closed?
please take a look at this link:
https://www.forexfactory.com/thread/1121193-prevent-every-trade-before-executing-my-isallowed
please take a look at this link:
https://www.forexfactory.com/thread/1121193-prevent-every-trade-before-executing-my-isallowed
You agree to website policy and terms of use
Oanda recently "upgraded" all of its clients to the V20 servers, but the servers are giving a value of "true" even if the market is closed for:
This method for determining if the market was closed worked perfectly fine prior to the "upgrade", but now it's useless and I'm looking for a good way to check if the market is closed without having to ask the user to input the day of the week and hour+minute+second that the market closes on their broker's server.
Here's what I have now and I'm really hoping there's a better way of doing this because I'd hate for the user to have to manually enter the day of week and time that market closes on their broker's server:
-----------------------------
I also came up with this, although there's a few major drawbacks: