A non scripting question. Very strange.

 

Hi there.

I'm just checking to see if this has happend to someone else aswell.

My robot I'm testing on a demo account is working fine. the problem is when I close the MT4 platfor to reboot or someting. For some strange reason it closes one of the open trades?

I can not figure out why. I do not think it's code related.

I'm using Gain as my broker. I've also sent them a mail, but have not heard back from them.. very strange. I would like to find out what it is and perhaps add some code to prevent this.

Thanks for all the input. :)

 
I think it really is a code issue. Check carefully deinit() part.
Reason: