I understand win rate is defined as number of profitable trades / total trades. 

If I place buy and sell orders separately by calling market_order methods, how does LEAN match my buy and sell orders? to check whether the trade is win or loss?