Never sell in Thailand or any profit is treated as personal income which means taxes far higher than which might be considered normal capital gains levels depending on which country you're from.
Now I'm not 100% sure on this but I would treat anything bought, traded and eventually sold on a Thai exchange as Thai income which means it would be taxed even if you're non resident - for example, less than 180 days.