I notice that this 013 error doesn't occur in every session. Under Linux/Wine it often does, but not always. So far it doesn't under Windows 10, but that's only one single session so far. I will run more Windows sessions to find out more.

However, the main problem still remains. My script knows the positions, but it's unable to close open positions from a previous session.

Last edited by Grant; 04/12/22 05:06.