MT5 'CLOSE BY' ORDER

 

I opened 2 long positions for Nasdaq and closed them normally, then I found out that one of the positions was closed as "Close By" with another short position I had. 

I did not select Close By, can it be somehow triggered by another action?

Any idea?