I have what many here would regard an extremely basic (or even silly) question on capital gains tax (CGT) and stocks.
I have an account with an online trading platform. Over the course of the year I have sold some of those stocks and bought others. When it comes to doing my tax returns do I declare profits that I made on the sale of stocks even though I haven't withdrawn funds from the trading account or is it only when I withdraw funds that I declare the profits for CGT.