I understand, but personally I would never calculate a position size based on an unrealised profit or loss, as this can work against you.

Worst case scenario: open position X very profitable > take a large position in Y > open position X ends with a big loss.