as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
how to realize capital gains before going from non-resident alien to resident alien in usa
user
is this possible and will it have the intended effect? from the us tax perspective, it most definitely is and will. is my plan not very similar to wash sale? yes, except that wash sale rules apply for losses, not gains. in any case, since you're not a us tax resident, the us wash sale rules won't apply to you.
assistant