I have read many discussions, but none offer a simple solution, yet follow normal accounting for the transfer of stock. I have one share of Bigco purchased years ago at $500. I gave it to a relative as gift today. Market value of share is $1500.
Create an account called memo:
Create sub accounts called memo gift, memo cost of gift, memo unrecognized gain
Record in the securty register:
Deposit of $500 to cost of gift, deposit of $1000 to memo gain, payment of $1500 to memo gift expense.
all three are non tax accounts. When running reports, you can include or exclude those that are useful.