So don't live there. Move someplace that doesn't tax capital gains. If you're unable to do that then you're admitting that your country of residence has helped you in making those gains.
Every country taxes their residents' income one way or another.