Bitcoin has 3 mechanisms built in to make it almost always increase in value, halving of the rewards, finite total+lost bitcoins, and increasing complexity when more people are mining.
In the end all you're doing is buying electricity and converting it to bitcoin, anything above that cost is based on future costs when the rewards halve.
All this means you should never sell your bitcoins, which means it's a terrible currency