You can invest as long as you are resident abroad (i.e. as long as you account is marked as Non-resident).