Does anyone know of a way to determine, in an EA, when the market will close on Friday. I'm writing an EA and would like to program it to close any open/pending trades before the market closes on Friday. Currently it closes the trades first thing on Sunday but by then prices may have shifted and sometimes by a large amount either for or against you. The problem is that everyone uses different brokers which all have different times.
