Retcode 10017 means the broker's server has switched trading off. Check the symbol's Trade mode and your password, then rule out 10018 and 10027. Rss