There may be several reasons why a position may be closed. To verify, please go to the ACCOUNT HISTORY tab at the top of the xStation platform and select CLOSED POSITIONS tab.
Then select a date range and confirm.
On the list of displayed positions check the COMMENT column, which most often displays shortcuts specifying the reason / source of the closure:
TP stands for Take Profit
SL stands for Stop Loss
SO stands for Stop out
Remember that your position may also be closed as a result of expiration. CFD positions (except for Stocks CFDs and ETF CFDs) are closed without the Client's consent after 365 days from the date of opening the position at the first price provided by XTB after this period.
If you still need help with your question,