I'm trying to access and calculate trade statistics (win ratios, profit, etc.) for total long and short positions, separately, over a period time prior to the current time and in OnEndOfAlgorithim().  How can this be done?  Net trade statistics (net of slippage and fees) is preferable.