If you keep visiting the UK for more than 183 days, you are still considered a UK resident for tax purposes, which means you pay income and capital gains tax the same way as UK residents. Without a double taxation agreement, you may also have to pay tax in your current country of residence.