There are two reasons that your trades may have closed automatically. Firstly your trades may have reached a SL or TP level which is set when opening a trade or modifying it. Secondly you may run out of margin and your trades will have closed automatically to protect your account from entering a negative balance. You can read more about our margin stop out levels here.