start from the assumption that capital gains are only when you have closed a transaction in profit, if you earn but do not close you do not pay any capital gains