Posting Bitcoin as collateral for a loan is not a sale in Germany, because section 39 of the Fiscal Code keeps the coins attributed to you for tax purposes. Tax arises only when the collateral is liquidated, and then the one thing that decides the bill is how long you held the coins beforehand.