The breakeven price of a number of trades is the weighted average of the entry prices. So enumerate all trades, sum up TradeLots*TradePriceOpen of all trades that are open and belong to that asset, and divide the result by the sum of all TradeLots.