Swap between BTC and XRP and back again should show huge profit but shows huge loss instead

I swapped BTC for XRP when the price was high. Then I swapped back to BTC when the price was low. As with all other trading it should reflect a huge profit but transaction shows a huge loss. Why is this? Advise please. Should I have sold instead?