 
    
            Count Total Open Positions by Trade Type and Pair
            
                 02 Jan 2015, 15:53
            
                    
How can I get a count of total open positions where the pair is "EURUSD" and the trade type is "Buy"?
 
    
            Count Total Open Positions by Trade Type and Pair
            
                 02 Jan 2015, 15:53
            
                    
How can I get a count of total open positions where the pair is "EURUSD" and the trade type is "Buy"?
9718853
02 Jan 2015, 16:00
var shortPositionsCount = Positions.Count(p => p.TradeType == TradeType.Sell); var longPositionsCount = Positions.Count(p => p.TradeType == TradeType.Buy);Adding 'Symbol' would keep the search to a single currency pair...
@9718853